@@ -427,7 +427,7 @@ export function generateManifestFromBundles(
427
427
return canonPath ( bundle . fileName ) ;
428
428
} ;
429
429
430
- let qwikBundleName : string | undefined ;
430
+ let qwikHandlersName : string | undefined ;
431
431
// We need to find our QRL exports
432
432
const qrlNames = new Set ( segments . map ( ( h ) => h . name ) ) ;
433
433
for ( const outputBundle of Object . values ( outputBundles ) ) {
@@ -475,12 +475,10 @@ export function generateManifestFromBundles(
475
475
. map ( ( m ) => path . relative ( opts . rootDir , m ) ) ;
476
476
if ( modulePaths . length > 0 ) {
477
477
bundle . origins = modulePaths ;
478
- 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 ) ) ) {
478
+ 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
479
manifest . preloader = bundleFileName ;
480
- } else if (
481
- modulePaths . some ( ( m ) => / [ / \\ ] ( c o r e | q w i k ) [ / \\ ] d i s t [ / \\ ] c o r e ( \. p r o d ) ? \. [ c m ] j s / . test ( m ) )
482
- ) {
483
- qwikBundleName = bundleFileName ;
480
+ } 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 ) ) ) {
481
+ qwikHandlersName = bundleFileName ;
484
482
}
485
483
}
486
484
@@ -507,7 +505,7 @@ export function generateManifestFromBundles(
507
505
loc : segment . loc ,
508
506
} ;
509
507
}
510
- if ( qwikBundleName ) {
508
+ if ( qwikHandlersName ) {
511
509
for ( const symbol of extraSymbols ) {
512
510
manifest . symbols [ symbol ] = {
513
511
origin : 'Qwik core' ,
@@ -520,7 +518,7 @@ export function generateManifestFromBundles(
520
518
parent : null ,
521
519
loc : [ 0 , 0 ] ,
522
520
} ;
523
- manifest . mapping [ symbol ] = qwikBundleName ;
521
+ manifest . mapping [ symbol ] = qwikHandlersName ;
524
522
}
525
523
} else {
526
524
console . error ( 'Qwik bundle not found, is Qwik actually used in this project?' ) ;
0 commit comments