File tree Expand file tree Collapse file tree 2 files changed +18
-19
lines changed Expand file tree Collapse file tree 2 files changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -513,10 +513,6 @@ export async function createConstantRsbuildConfig(): Promise<EnvironmentConfig>
513
513
htmlPlugin : false ,
514
514
rspack : {
515
515
optimization : {
516
- splitChunks : {
517
- // Splitted "sync" chunks will make entry modules can't be inlined.
518
- chunks : 'async' ,
519
- } ,
520
516
moduleIds : 'named' ,
521
517
nodeEnv : false ,
522
518
} ,
@@ -604,6 +600,10 @@ const composeFormatConfig = ({
604
600
concatenateModules : true ,
605
601
sideEffects : 'flag' ,
606
602
avoidEntryIife : true ,
603
+ splitChunks : {
604
+ // Splitted "sync" chunks will make entry modules can't be inlined.
605
+ chunks : 'async' ,
606
+ } ,
607
607
} ,
608
608
output : {
609
609
module : true ,
@@ -634,6 +634,12 @@ const composeFormatConfig = ({
634
634
} ,
635
635
} ,
636
636
} ,
637
+ optimization : {
638
+ splitChunks : {
639
+ // Splitted "sync" chunks will make entry modules can't be inlined.
640
+ chunks : 'async' ,
641
+ } ,
642
+ } ,
637
643
output : {
638
644
iife : false ,
639
645
chunkFormat : 'commonjs' ,
Original file line number Diff line number Diff line change @@ -157,9 +157,6 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
157
157
" optimization" : {
158
158
" moduleIds" : " named" ,
159
159
" nodeEnv" : false ,
160
- " splitChunks" : {
161
- " chunks" : " async" ,
162
- },
163
160
},
164
161
" resolve" : {
165
162
" extensionAlias" : {
@@ -208,6 +205,9 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
208
205
" avoidEntryIife" : true ,
209
206
" concatenateModules" : true ,
210
207
" sideEffects" : " flag" ,
208
+ " splitChunks" : {
209
+ " chunks" : " async" ,
210
+ },
211
211
},
212
212
" output" : {
213
213
" chunkFormat" : " module" ,
@@ -434,9 +434,6 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
434
434
" optimization" : {
435
435
" moduleIds" : " named" ,
436
436
" nodeEnv" : false ,
437
- " splitChunks" : {
438
- " chunks" : " async" ,
439
- },
440
437
},
441
438
" resolve" : {
442
439
" extensionAlias" : {
@@ -474,6 +471,11 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
474
471
},
475
472
},
476
473
},
474
+ " optimization" : {
475
+ " splitChunks" : {
476
+ " chunks" : " async" ,
477
+ },
478
+ },
477
479
" output" : {
478
480
" chunkFormat" : " commonjs" ,
479
481
" chunkLoading" : " require" ,
@@ -668,9 +670,6 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
668
670
" optimization" : {
669
671
" moduleIds" : " named" ,
670
672
" nodeEnv" : false ,
671
- " splitChunks" : {
672
- " chunks" : " async" ,
673
- },
674
673
},
675
674
" resolve" : {
676
675
" extensionAlias" : {
@@ -898,9 +897,6 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
898
897
" optimization" : {
899
898
" moduleIds" : " named" ,
900
899
" nodeEnv" : false ,
901
- " splitChunks" : {
902
- " chunks" : " async" ,
903
- },
904
900
},
905
901
" resolve" : {
906
902
" extensionAlias" : {
@@ -1085,9 +1081,6 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
1085
1081
" optimization" : {
1086
1082
" moduleIds" : " named" ,
1087
1083
" nodeEnv" : false ,
1088
- " splitChunks" : {
1089
- " chunks" : " async" ,
1090
- },
1091
1084
},
1092
1085
" resolve" : {
1093
1086
" extensionAlias" : {
You can’t perform that action at this time.
0 commit comments