diff --git a/package.json b/package.json index f0f6d68..11eaecc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kne/modules-dev", - "version": "2.0.30", + "version": "2.0.31", "description": "用于辅助在项目内启动一个规范化组件开发的环境", "publishConfig": { "source": "src/index.js", diff --git a/template-libs-example/craco.config.js b/template-libs-example/craco.config.js index 7f124b8..521ebc4 100644 --- a/template-libs-example/craco.config.js +++ b/template-libs-example/craco.config.js @@ -14,7 +14,7 @@ module.exports = { plugin: CracoLibsExamplePlugin, options: { middleware: (moduleFederationConfig) => { const shared = Object.assign({}, moduleFederationConfig.shared,{ - '@kne/current-lib': { + '@kne/current-lib_<%=name%>': { singleton: true, requiredVersion: false } });