Skip to content

Commit 4211a5d

Browse files
committed
fix: vue externals config error. #129
1 parent fd162d1 commit 4211a5d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/webpack.prod.conf.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ if (!isExampleEnv) {
4343
libraryTarget: 'umd',
4444
};
4545
webpackConfig.externals = {
46-
vue: 'Vue',
46+
vue: {
47+
root: 'Vue',
48+
commonjs: 'vue',
49+
commonjs2: 'vue',
50+
},
4751
};
4852
webpackConfig.plugins.push(
4953
// extract css into its own file

0 commit comments

Comments
 (0)