Skip to content

Commit 2aa49d9

Browse files
authored
Merge pull request #7608 from JerryWu1234/7600_fix_a_bug
fix(vite): the @qwik-handlers aren't properly handled in dev mode for library projects
1 parent 4e7f33d commit 2aa49d9

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/hip-points-kick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@qwik.dev/core': patch
3+
---
4+
5+
fix: the @qwik-handlers aren't properly handled in dev mode for library projects

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,11 @@ export function qwikVite(qwikViteOpts: QwikVitePluginOptions = {}): any {
668668
// TODO: Removed the "__qwikCityNew" condition in V3
669669
const isNEW =
670670
(globalThis as any).__qwikRouterNew === true ||
671-
(globalThis as any).__qwikCityNew === true;
671+
(globalThis as any).__qwikCityNew === true ||
672+
// related to this issue https://github.com/QwikDev/qwik/issues/7600
673+
// FIX: the @qwik-handlers aren't properly handled in dev mode for library projects
674+
server.config.build.lib;
675+
672676
if (isNEW) {
673677
return plugin;
674678
} else {

0 commit comments

Comments
 (0)