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 cd22490Copy full SHA for cd22490
src/store.ts
@@ -107,6 +107,19 @@ export function useStore(
107
{ immediate: true },
108
)
109
110
+ // Recompile all Vue SFC files when the compiler changes.
111
+ // This ensures that when switching Vue versions (e.g., from <3.6 to >=3.6),
112
+ // all vue sfc files are recompiled with the new compiler to correctly handle
113
+ // vapor components.
114
+ watch(compiler, (_, oldCompiler) => {
115
+ if (!oldCompiler) return
116
+ for (const file of Object.values(files.value)) {
117
+ if (file.filename.endsWith('.vue')) {
118
+ compileFile(store, file).then((errs) => errors.value.push(...errs))
119
+ }
120
121
+ })
122
+
123
watch(
124
sfcOptions,
125
() => {
0 commit comments