We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfc4ca6 commit 1af01e8Copy full SHA for 1af01e8
src/store.ts
@@ -107,12 +107,14 @@ export function useStore(
107
{ immediate: true },
108
)
109
110
- // recompile all files when compiler changes
+ // recompile vue sfc files when compiler changes
111
watch(compiler, (_, oldCompiler) => {
112
// skip initial (oldCompiler is undefined on first run)
113
if (!oldCompiler) return
114
for (const file of Object.values(files.value)) {
115
- compileFile(store, file).then((errs) => errors.value.push(...errs))
+ if (file.filename.endsWith('.vue')) {
116
+ compileFile(store, file).then((errs) => errors.value.push(...errs))
117
+ }
118
}
119
})
120
0 commit comments