Skip to content

Commit a0ceca1

Browse files
committed
Create type files for added files as well.
1 parent 5b121ae commit a0ceca1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@ export default function Plugin(option: PluginOptions = {}): VitePlugin {
4040
resolve(main(fileName, cacheConfig, option))
4141
)
4242
},
43+
watchChange(id) {
44+
if (isCSSModuleRequest(id)) {
45+
this.addWatchFile(id)
46+
}
47+
},
4348
}
4449
}

0 commit comments

Comments
 (0)