File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
packages/kit/src/exports/vite Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -695,6 +695,7 @@ Tips:
695
695
assetFileNames : `${ prefix } /assets/[name].[hash][extname]` ,
696
696
hoistTransitiveImports : false ,
697
697
sourcemapIgnoreList,
698
+ manualChunks : split ? undefined : ( ) => 'bundle' ,
698
699
inlineDynamicImports : false
699
700
} ,
700
701
preserveEntrySignatures : 'strict' ,
@@ -734,19 +735,6 @@ Tips:
734
735
// enableNativePlugin: true
735
736
// }
736
737
} ;
737
-
738
- if ( ! split && new_config . build ?. rollupOptions ?. output ) {
739
- const output_options = /** @type {import('vite').Rollup.OutputOptions } */ (
740
- new_config . build . rollupOptions . output
741
- ) ;
742
- // @ts -expect-error `vite.rolldownVersion` only exists in `rolldown-vite`
743
- if ( vite . rolldownVersion ) {
744
- output_options . inlineDynamicImports = true ;
745
- } else {
746
- /** @type {import('rollup').OutputOptions } */ ( output_options ) . manualChunks = ( ) =>
747
- 'bundle' ;
748
- }
749
- }
750
738
} else {
751
739
new_config = {
752
740
appType : 'custom' ,
You can’t perform that action at this time.
0 commit comments