Skip to content

Commit f544859

Browse files
committed
fix: circular dependencies in qwik astro apps
1 parent 17a72c6 commit f544859

File tree

1 file changed

+0
-16
lines changed
  • packages/qwik/src/optimizer/src/plugins

1 file changed

+0
-16
lines changed

packages/qwik/src/optimizer/src/plugins/plugin.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -986,22 +986,6 @@ export const manifest = ${JSON.stringify(serverManifest)};\n`;
986986
return chunkName;
987987
}
988988
}
989-
990-
// The id either points to a context file, inline component, or src .js/.ts util/helper file (or a barrel file but it will be tree-shaken by rollup)
991-
// Making sure that we return a specific id for those files prevents rollup from bundling unrelated code together
992-
if (module.meta.qwikdeps?.length === 0) {
993-
if (id.includes('node_modules')) {
994-
const idx = id.lastIndexOf('node_modules');
995-
if (idx >= 0) {
996-
const relToNodeModules = id.slice(idx + 13);
997-
return relToNodeModules;
998-
}
999-
} else if (opts.srcDir && id.includes(opts.srcDir)) {
1000-
const path = getPath();
1001-
const relToSrcDir = normalizePath(path.relative(opts.srcDir, id));
1002-
return relToSrcDir;
1003-
}
1004-
}
1005989
}
1006990

1007991
// The rest is non-qwik code. We let rollup handle it.

0 commit comments

Comments
 (0)