Skip to content

Commit cfcceae

Browse files
authored
fix(fullstack): ensure watch file for import with queries (#1197)
1 parent 52a231a commit cfcceae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/fullstack/src/plugin.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
normalizeRelativePath,
2828
} from "./plugins/utils";
2929
import {
30+
cleanUrl,
3031
evalValue,
3132
normalizeViteImportAnalysisUrl,
3233
} from "./plugins/vite-utils";
@@ -232,7 +233,10 @@ export function assetsPlugin(pluginOpts?: FullstackPluginOptions): Plugin[] {
232233
}
233234
if (environment.name !== "client") {
234235
const collected = await collectCss(environment, resolved.id);
235-
for (const file of [resolved.id, ...collected.visitedFiles]) {
236+
for (const file of [
237+
cleanUrl(resolved.id),
238+
...collected.visitedFiles,
239+
]) {
236240
if (fs.existsSync(file)) {
237241
this.addWatchFile(file);
238242
}

0 commit comments

Comments
 (0)