Skip to content

Commit 8e6b490

Browse files
committed
Revert "chore: 将 React 打包到 Global 产物"
1 parent 09da52a commit 8e6b490

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

packages/toolkit/webpack/config.build.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,8 @@ const globalBundle = createWebpackConfig({
8585
},
8686
externals: [
8787
{
88-
// 先将 React 打包进去
89-
// 以 alex.editor.all.global.min.js 举例不打包 React 7.48M,打包后 7.6M
90-
// react: 'React',
91-
// 'react-dom': 'ReactDOM',
88+
react: 'React',
89+
'react-dom': 'ReactDOM',
9290
moment: 'moment',
9391
},
9492
],

0 commit comments

Comments
 (0)