Skip to content

Commit 4fc27e6

Browse files
committed
chore(e2e): allow multi import of core
1 parent 5453cd4 commit 4fc27e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

starters/dev-server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ async function routerApp(
258258
appDir: string,
259259
) {
260260
const ssrPath = join(appDir, "server", `${qwikRouterVirtualEntry}.js`);
261-
261+
// it's ok in the devserver to import core multiple times
262+
(globalThis as any).__qwik = null;
262263
const mod = await import(file(ssrPath));
263264
const router: any = mod.router;
264265
router(req, res, () => {
@@ -276,6 +277,8 @@ async function ssrApp(
276277
manifest: QwikManifest,
277278
) {
278279
const ssrPath = join(appDir, "server", "entry.ssr.js");
280+
// it's ok in the devserver to import core multiple times
281+
(globalThis as any).__qwik = null;
279282
const mod = await import(file(ssrPath));
280283
const render: Render = mod.default ?? mod.render;
281284

0 commit comments

Comments
 (0)