Skip to content

Commit 87594aa

Browse files
author
winjo
committed
fix: 修复 global 打包的问题
1 parent 8abeb76 commit 87594aa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/toolkit/webpack/config.build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const globalBundle = createWebpackConfig({
8383
},
8484
externals: [
8585
{
86-
react: 'react',
86+
react: 'React',
8787
'react-dom': 'ReactDOM',
8888
moment: 'moment',
8989
},

packages/toolkit/webpack/config.languages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = () => {
2020
extensions: ['.js', '.json'],
2121
},
2222
externals: {
23-
'@alipay/alex-registry': ['Alex', 'Registry'],
23+
'@alipay/alex-registry': 'Alex',
2424
},
2525
optimization: {
2626
minimize: true,

0 commit comments

Comments
 (0)