Skip to content

Commit

Permalink
fix: vue externals config error. #129
Browse files Browse the repository at this point in the history
  • Loading branch information
leezng committed Aug 18, 2021
1 parent fd162d1 commit 4211a5d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ if (!isExampleEnv) {
libraryTarget: 'umd',
};
webpackConfig.externals = {
vue: 'Vue',
vue: {
root: 'Vue',
commonjs: 'vue',
commonjs2: 'vue',
},
};
webpackConfig.plugins.push(
// extract css into its own file
Expand Down

0 comments on commit 4211a5d

Please sign in to comment.