File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
packages/qwik/src/optimizer/src/plugins Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -885,13 +885,10 @@ export const manifest = ${JSON.stringify(manifest)};\n`;
885
885
// To prevent over-prefetching, we need to clearly seperate those chunks,
886
886
// otherwise rollup can bundle them together with the first component chunk it finds.
887
887
// For example, the core code could go into an Accordion.tsx chunk, which would make the whole app import accordion related chunks everywhere.
888
- if ( id . endsWith ( 'qwik/dist/core.prod.mjs' ) || id . endsWith ( ' qwik/dist/core.prod.cjs' ) ) {
888
+ if ( / \/ ( q w i k | c o r e ) \ /d i s t \ /c o r e .* j s $ / . test ( id ) ) {
889
889
return 'core' ;
890
890
}
891
- if (
892
- id . endsWith ( 'qwik-city/lib/index.qwik.mjs' ) ||
893
- id . endsWith ( 'qwik-city/lib/index.qwik.cjs' )
894
- ) {
891
+ if ( / \/ ( q w i k - c i t y | r o u t e r ) \/ l i b \/ i n d e x .q w i k .* j s $ / . test ( id ) ) {
895
892
return 'qwik-city' ;
896
893
}
897
894
if ( id . endsWith ( 'vite/preload-helper.js' ) ) {
You can’t perform that action at this time.
0 commit comments