File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/qwik/src/optimizer/src Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -482,11 +482,14 @@ export function generateManifestFromBundles(
482
482
. map ( ( m ) => path . relative ( opts . rootDir , m ) ) ;
483
483
if ( modulePaths . length > 0 ) {
484
484
bundle . origins = modulePaths ;
485
+ // keep these if statements separate so that weird bundling still works
485
486
if ( modulePaths . some ( ( m ) => / [ / \\ ] q w i k [ / \\ ] d i s t [ / \\ ] p r e l o a d e r \. [ c m ] j s $ / . test ( m ) ) ) {
486
487
manifest . preloader = bundleFileName ;
487
- } else if ( modulePaths . some ( ( m ) => / [ / \\ ] q w i k [ / \\ ] d i s t [ / \\ ] c o r e \. [ ^ / ] * j s $ / . test ( m ) ) ) {
488
+ }
489
+ if ( modulePaths . some ( ( m ) => / [ / \\ ] q w i k [ / \\ ] d i s t [ / \\ ] c o r e \. [ ^ / ] * j s $ / . test ( m ) ) ) {
488
490
manifest . core = bundleFileName ;
489
- } else if (
491
+ }
492
+ if (
490
493
modulePaths . some ( ( m ) => / [ / \\ ] q w i k [ / \\ ] d i s t [ / \\ ] q w i k l o a d e r ( \. d e b u g ) ? \. [ ^ / ] * j s $ / . test ( m ) )
491
494
) {
492
495
manifest . qwikLoader = bundleFileName ;
You can’t perform that action at this time.
0 commit comments