Skip to content

Commit

Permalink
fix: qwikVite transforming id's with ?raw (#6854)
Browse files Browse the repository at this point in the history
  • Loading branch information
thejackshelton authored Sep 3, 2024
1 parent 1686354 commit 5ecf01a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/qwik/src/optimizer/src/plugins/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,9 +487,10 @@ export function qwikVite(qwikViteOpts: QwikVitePluginOptions = {}): any {
},

transform(code, id, transformOpts) {
if (id.startsWith('\0') || !fileFilter(id, 'transform')) {
if (id.startsWith('\0') || !fileFilter(id, 'transform') || id.includes('?raw')) {
return null;
}

if (isClientDevOnly) {
const parsedId = parseId(id);
if (parsedId.params.has(VITE_DEV_CLIENT_QS)) {
Expand Down

0 comments on commit 5ecf01a

Please sign in to comment.