From 6b31e126fd53bb61f89bc3cc65383981c74265d2 Mon Sep 17 00:00:00 2001 From: zhipenglin Date: Wed, 24 Apr 2024 14:31:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=BA=93shared=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/modulefederation.config.js | 4 ---- package.json | 2 +- template-libs-example/src/preset.js | 7 ------- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/modulefederation.config.js b/lib/modulefederation.config.js index 7a49dea..af02cce 100644 --- a/lib/modulefederation.config.js +++ b/lib/modulefederation.config.js @@ -50,10 +50,6 @@ module.exports = { singleton: true, requiredVersion: false }, '@kne/global-preset': { singleton: true, requiredVersion: false - }, '@monaco-editor/loader': { - singleton: true, requiredVersion: false - }, '@monaco-editor/react': { - singleton: true, requiredVersion: false } } }; diff --git a/package.json b/package.json index 679937b..888f154 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kne/modules-dev", - "version": "2.0.22", + "version": "2.0.23", "description": "用于辅助在项目内启动一个规范化组件开发的环境", "publishConfig": { "source": "src/index.js", diff --git a/template-libs-example/src/preset.js b/template-libs-example/src/preset.js index ce3d111..87e9581 100644 --- a/template-libs-example/src/preset.js +++ b/template-libs-example/src/preset.js @@ -4,16 +4,9 @@ import {Spin, Empty, message} from 'antd'; import axios from 'axios'; import {preset as remoteLoaderPreset} from '@kne/remote-loader'; import omit from 'lodash/omit'; -import monacoLoader from '@monaco-editor/loader'; window.PUBLIC_URL = process.env.PUBLIC_URL; -monacoLoader.config({ - paths: { - vs: 'https://registry.npmmirror.com/monaco-editor/0.48.0/files/min/vs' - } -}); - const componentsCoreRemote = { remote: "components-core", url: "https://registry.npmmirror.com", From f42f3e44abc1046ce0f57333bb04979590e59c00 Mon Sep 17 00:00:00 2001 From: zhipenglin Date: Wed, 24 Apr 2024 14:33:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=A0=E9=99=A4package.json=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template-libs-example/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/template-libs-example/package.json b/template-libs-example/package.json index 49ac365..0c3fc7b 100644 --- a/template-libs-example/package.json +++ b/template-libs-example/package.json @@ -37,7 +37,6 @@ "@kne/modules-dev": "^2.0.6", "@kne/react-fetch": "^1.4.2", "@kne/remote-loader": "^1.2.3", - "@monaco-editor/loader": "^1.4.0", "antd": "^5.13.3", "axios": "^1.6.7", "classnames": "^2.5.1",