File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 9090 " es6.promise" ,
9191 " es6.object.assign"
9292 ],
93- "loose" : true ,
94- "modules" : false
93+ "loose" : true
9594 }
9695 ]
9796 ],
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const plugins = [
5656 nativeName : lang [ locale ] ,
5757 }
5858 } ) ,
59- version
59+ version,
6060 } ) ,
6161 new HtmlWebpackHarddiskPlugin ( { outputPath : './demo/' } ) ,
6262 new MiniCssExtractPlugin ( {
@@ -95,13 +95,13 @@ const extractTextLoader = !IS_PRODUCTION
9595
9696const webpackConfig = {
9797 mode : IS_PRODUCTION ? 'production' : 'development' ,
98- target : 'web' ,
9998 context : outputDir ,
10099 entry,
101100 output : {
102101 path : projectRoot ,
103102 publicPath : '/dist' ,
104103 filename : `[name].min.js` ,
104+ libraryTarget : 'umd' ,
105105 } ,
106106 module : {
107107 rules : [
You can’t perform that action at this time.
0 commit comments