File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
packages/qwik/src/optimizer/src Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -475,13 +475,16 @@ export function generateManifestFromBundles(
475
475
. map ( ( m ) => path . relative ( opts . rootDir , m ) ) ;
476
476
if ( modulePaths . length > 0 ) {
477
477
bundle . origins = modulePaths ;
478
+ // keep these if statements separate so that weird bundling still works
478
479
if ( modulePaths . some ( ( m ) => / [ / \\ ] ( c o r e | q w i k ) [ / \\ ] d i s t [ / \\ ] p r e l o a d e r \. [ c m ] j s $ / . test ( m ) ) ) {
479
480
manifest . preloader = bundleFileName ;
480
- } else if (
481
+ }
482
+ if (
481
483
modulePaths . some ( ( m ) => / [ / \\ ] ( c o r e | q w i k ) [ / \\ ] d i s t [ / \\ ] c o r e ( .m i n | .p r o d ) ? \. [ c m ] j s $ / . test ( m ) )
482
484
) {
483
485
manifest . core = bundleFileName ;
484
- } else if ( modulePaths . some ( ( m ) => / [ / \\ ] ( c o r e | q w i k ) [ / \\ ] h a n d l e r s \. [ c m ] j s $ / . test ( m ) ) ) {
486
+ }
487
+ if ( modulePaths . some ( ( m ) => / [ / \\ ] ( c o r e | q w i k ) [ / \\ ] h a n d l e r s \. [ c m ] j s $ / . test ( m ) ) ) {
485
488
qwikHandlersName = bundleFileName ;
486
489
}
487
490
}
@@ -527,7 +530,7 @@ export function generateManifestFromBundles(
527
530
manifest . mapping [ symbol ] = qwikHandlersName ;
528
531
}
529
532
} else {
530
- console . error ( 'Qwik bundle not found, is Qwik actually used in this project?' ) ;
533
+ console . error ( 'Qwik core bundle not found, is Qwik actually used in this project?' ) ;
531
534
}
532
535
533
536
for ( const bundle of Object . values ( manifest . bundles ) ) {
You can’t perform that action at this time.
0 commit comments