File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -83,17 +83,20 @@ export default defineBuildConfig({
8383 ) ;
8484 } ,
8585 rolldownOutput ( config ) {
86- config . advancedChunks ! . includeDependenciesRecursively = false ;
86+ // config.advancedChunks!.includeDependenciesRecursively = false;
8787 config . advancedChunks ! . groups ?. unshift (
88- { test : / s r c \/ b u i l d \/ r o l l u p / , name : "_build/rollup" } ,
89- { test : / s r c \/ b u i l d \/ r o l l d o w n / , name : "_build/rolldown" }
88+ {
89+ test : / s r c \/ b u i l d \/ ( p l u g i n s | v i r t u a l | \w + \. t s ) / ,
90+ name : "_build/common" ,
91+ } ,
92+ { test : / s r c \/ ( u t i l s ) \/ / , name : "_chunks/utils" }
9093 ) ;
9194 config . chunkFileNames = ( chunk ) => {
9295 if ( chunk . name . startsWith ( "_" ) ) {
9396 return `[name].mjs` ;
9497 }
9598 if ( chunk . name === "rolldown-runtime" ) {
96- return `_rolldown .mjs` ;
99+ return `_common .mjs` ;
97100 }
98101 if ( chunk . name . startsWith ( "libs/" ) ) {
99102 return `_[name].mjs` ;
@@ -130,9 +133,9 @@ export default defineBuildConfig({
130133 if (
131134 chunk . moduleIds . every ( ( id ) => / s r c \/ ( r u n n e r | d e v | r u n t i m e ) / . test ( id ) )
132135 ) {
133- return `_dev .mjs` ;
136+ return `_chunks/dev .mjs` ;
134137 }
135- return "_nitro .mjs" ;
138+ return "_chunks/nitro .mjs" ;
136139 } ;
137140 } ,
138141 async end ( ) {
You can’t perform that action at this time.
0 commit comments