Skip to content

Commit 4743ea1

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

starters/dev-server.ts

Lines changed: 2 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, () => {

0 commit comments

Comments
 (0)