Skip to content

Commit 6b0ac78

Browse files
committed
fix: add import so it works with autoimports: false
1 parent 5737f07 commit 6b0ac78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/nuxt/src/auto-hmr-plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export function autoRegisterHMRPlugin(
5454
// append HMR code
5555
return {
5656
code: [
57+
`import { acceptHMRUpdate } from 'pinia'`,
5758
code,
5859
'if (import.meta.hot) {',
5960
` import.meta.hot.accept(acceptHMRUpdate(${storeName}, import.meta.hot))`,

0 commit comments

Comments
 (0)