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 1af01e8 commit 8440148Copy full SHA for 8440148
src/store.ts
@@ -107,9 +107,11 @@ export function useStore(
107
{ immediate: true },
108
)
109
110
- // recompile vue sfc files when compiler changes
+ // 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) => {
- // skip initial (oldCompiler is undefined on first run)
115
if (!oldCompiler) return
116
for (const file of Object.values(files.value)) {
117
if (file.filename.endsWith('.vue')) {
0 commit comments