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 b85ec7d commit 7b74ea5Copy full SHA for 7b74ea5
src/store.ts
@@ -107,6 +107,15 @@ export function useStore(
107
{ immediate: true },
108
)
109
110
+ // recompile all 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)
116
+ }
117
+ })
118
+
119
watch(
120
sfcOptions,
121
() => {
0 commit comments