File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
packages/qwik/src/optimizer/src/plugins Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -893,17 +893,14 @@ export const manifest = ${JSON.stringify(manifest)};\n`;
893
893
if ( id . endsWith ( QWIK_PRELOADER_REAL_ID ) ) {
894
894
return 'qwik-preloader' ;
895
895
}
896
- // TODO when manual chunks fix lands in rollup, remove this guard
897
- if ( ( opts . entryStrategy as SmartEntryStrategy ) . manual ) {
898
- const module = getModuleInfo ( id ) ! ;
899
- const segment = module . meta . segment as SegmentAnalysis | undefined ;
900
-
901
- if ( segment ) {
902
- const { hash } = segment ;
903
- const chunkName = ( opts . entryStrategy as SmartEntryStrategy ) . manual ! [ hash ] || segment . entry ;
904
- if ( chunkName ) {
905
- return chunkName ;
906
- }
896
+
897
+ const module = getModuleInfo ( id ) ! ;
898
+ const segment = module . meta . segment as SegmentAnalysis | undefined ;
899
+ if ( segment ) {
900
+ const { hash } = segment ;
901
+ const chunkName = ( opts . entryStrategy as SmartEntryStrategy ) . manual ?. [ hash ] || segment . entry ;
902
+ if ( chunkName ) {
903
+ return chunkName ;
907
904
}
908
905
}
909
906
return null ;
You can’t perform that action at this time.
0 commit comments