Skip to content
Merged
Changes from all commits
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
5 changes: 4 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ export default defineNuxtModule<ModuleOptions>({
}).dst
addImports([{
name: '_refreshHandler',
from: generatedRefreshHandlerPath
// Drop the `.ts` so every Nuxt command writes the same import path. Otherwise
// `dev`/`prepare` keep it and `typecheck` drops it, which rewrites imports.d.ts
// and invalidates the vue-tsc cache on each switch.
from: generatedRefreshHandlerPath.replace(TS_ENDS_RE, '')
}])

// 6. Register middleware for autocomplete in definePageMeta
Expand Down
Loading