diff --git a/packages/toolkit/webpack/config.build.js b/packages/toolkit/webpack/config.build.js index c6824012..e6ed554c 100644 --- a/packages/toolkit/webpack/config.build.js +++ b/packages/toolkit/webpack/config.build.js @@ -24,7 +24,8 @@ const libBundle = createWebpackConfig({ [config.editorAllEntry]: './packages/core/src/editor.all', }, output: { - libraryTarget: 'commonjs', + library: 'AlexLib', + libraryTarget: 'umd', }, optimization: { minimize: false, diff --git a/packages/toolkit/webpack/util/index.js b/packages/toolkit/webpack/util/index.js index 4949d309..a6cbb116 100644 --- a/packages/toolkit/webpack/util/index.js +++ b/packages/toolkit/webpack/util/index.js @@ -32,7 +32,7 @@ exports.nodePolyfill = { }; exports.config = { - appEntry: 'index', + appEntry: 'codeblitz', appGlobalEntry: 'codeblitz.global', appGlobalMinEntry: 'codeblitz.global.min', editorEntry: 'codeblitz.editor',