File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -718,6 +718,10 @@ const composeFormatConfig = ({
718718 } ,
719719 optimization : {
720720 nodeEnv : process . env . NODE_ENV ,
721+ splitChunks : {
722+ // sync chunk of umd can not be loaded without mounting on scripts
723+ chunks : 'async' ,
724+ } ,
721725 } ,
722726 plugins,
723727 } ,
Original file line number Diff line number Diff line change @@ -2201,7 +2201,9 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
22012201 },
22022202 optimization : {
22032203 minimize: true ,
2204- splitChunks: false ,
2204+ splitChunks: {
2205+ chunks: ' async'
2206+ },
22052207 minimizer: [
22062208 /* config.optimization.minimizer('js') */
22072209 new SwcJsMinimizerRspackPlugin (
@@ -4154,6 +4156,9 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
41544156 },
41554157 " optimization" : {
41564158 " nodeEnv" : undefined ,
4159+ " splitChunks" : {
4160+ " chunks" : " async" ,
4161+ },
41574162 },
41584163 " output" : {
41594164 " asyncChunks" : false ,
You can’t perform that action at this time.
0 commit comments