Skip to content

Commit fe19158

Browse files
authored
vite-plugin: fix addWatchFiles call (#270)
1 parent ce255bb commit fe19158

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/stupid-news-work.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vanilla-extract/vite-plugin": patch
3+
---
4+
5+
Fix watching of modules imported by `.css.ts` files

packages/vite-plugin/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function vanillaExtractPlugin(): Plugin {
4848
cwd: config.root,
4949
});
5050

51-
for (const file in watchFiles) {
51+
for (const file of watchFiles) {
5252
this.addWatchFile(file);
5353
}
5454

0 commit comments

Comments
 (0)