diff --git a/docusaurus.config.js b/docusaurus.config.js index b3181c76..7a37b2ae 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -27,7 +27,6 @@ const config = { plugins: [ "docusaurus-node-polyfills", - path.join(__dirname, "/plugins/monaco-editor"), [ "@docusaurus/plugin-client-redirects", { diff --git a/plugins/monaco-editor/index.js b/plugins/monaco-editor/index.js deleted file mode 100644 index c46e3d9c..00000000 --- a/plugins/monaco-editor/index.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin"); - -module.exports = function (context, options) { - return { - name: "monaco-editor", - configureWebpack(config, isServer) { - return { - module: { - rules: [ - { - test: /\.ttf$/, - type: 'asset/resource' - } - ], - }, - plugins: [ - new MonacoWebpackPlugin({ - languages: ["typescript"], - }), - ], - }; - }, - }; -}; diff --git a/tsconfig.json b/tsconfig.json index 0a96e5e3..939738ff 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,5 +4,6 @@ "compilerOptions": { "baseUrl": ".", "jsx": "preserve", + "esModuleInterop": true } }