Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ export function useStore(
{ immediate: true },
)

// recompile all files when compiler changes
watch(compiler, (_, oldCompiler) => {
// skip initial (oldCompiler is undefined on first run)
if (!oldCompiler) return
for (const file of Object.values(files.value)) {
compileFile(store, file)
}
})

watch(
sfcOptions,
() => {
Expand Down
Loading