File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 2121 "@types/webpack-node-externals" : " ^3.0.4"
2222 },
2323 "dependencies" : {
24- "css-loader" : " ^6.8 .1" ,
25- "sass" : " ^1.69.5 " ,
26- "sass-loader" : " ^13.3.2 " ,
27- "style-loader" : " ^3.3.3 " ,
28- "ts-loader" : " ^9.5.0 " ,
24+ "css-loader" : " ^6.9 .1" ,
25+ "sass" : " ^1.70.0 " ,
26+ "sass-loader" : " ^14.0.0 " ,
27+ "style-loader" : " ^3.3.4 " ,
28+ "ts-loader" : " ^9.5.1 " ,
2929 "webpack" : " ^5.89.0" ,
3030 "webpack-cli" : " ^5.1.4" ,
3131 "webpack-node-externals" : " ^3.0.0"
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ export const getWebpackConfig = (options?: WebpackConfigOptions): Configuration
4040 outputModule : true ,
4141 } ,
4242 optimization : {
43- minimize : false ,
43+ minimize : mode === "production" ,
4444 } ,
45- target : "es2020 " ,
45+ target : "web " ,
4646 module : {
4747 rules : [
4848 {
@@ -88,11 +88,12 @@ export const getWebpackConfig = (options?: WebpackConfigOptions): Configuration
8888 } ,
8989 externals : [
9090 nodeExternals ( {
91- importType : "module" ,
9291 additionalModuleDirs : [ mainNodeModulesFolder ] ,
9392 } ) ,
9493 ] ,
95- externalsType : "module" ,
96- stats : mode === "production" ? "normal" : "summary" ,
94+ externalsPresets : {
95+ web : true ,
96+ } ,
97+ stats : mode === "development" ? "normal" : "summary" ,
9798 } ;
9899} ;
You can’t perform that action at this time.
0 commit comments