This repository was archived by the owner on Jul 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1027,8 +1027,14 @@ export class Application implements ServerApplication {
1027
1027
true
1028
1028
)
1029
1029
1030
+ // add app/404 modules as shared entry
1030
1031
entryMods . set ( Array . from ( this . #modules. keys ( ) ) . filter ( url => [ '/app' , '/404' ] . includes ( trimModuleExt ( url ) ) ) , true )
1031
1032
1033
+ // add page module entries
1034
+ this . #pageRouting. lookup ( routes => {
1035
+ routes . forEach ( ( { module : { url } } ) => entryMods . set ( [ url ] , false ) )
1036
+ } )
1037
+
1032
1038
this . #modules. forEach ( mod => {
1033
1039
mod . deps . forEach ( ( { url, isDynamic } ) => {
1034
1040
if ( isDynamic ) {
@@ -1048,19 +1054,14 @@ export class Application implements ServerApplication {
1048
1054
} )
1049
1055
} )
1050
1056
1051
- // add page module entries
1052
- this . #pageRouting. lookup ( routes => {
1053
- routes . forEach ( ( { module : { url } } ) => entryMods . set ( [ url ] , false ) )
1054
- } )
1055
-
1056
1057
refCounter . forEach ( ( refers , url ) => {
1057
1058
if ( refers . size > 1 ) {
1058
1059
let shared = 0
1059
1060
for ( const mods of entryMods . keys ( ) ) {
1060
1061
const some = mods . some ( u => {
1061
1062
let scoped = false
1062
1063
this . lookupDeps ( u , dep => {
1063
- if ( ! dep . isDynamic && refers . has ( dep . url ) ) {
1064
+ if ( ! dep . isDynamic && url === dep . url ) {
1064
1065
scoped = true
1065
1066
return false
1066
1067
}
You can’t perform that action at this time.
0 commit comments