File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1+ import type { VariableDeclarator } from 'estree'
12import type { Nuxt } from 'nuxt/schema'
3+ import type { Plugin } from 'vite'
24
3- function getStoreDeclaration ( nodes ?: import ( 'estree' ) . VariableDeclarator [ ] ) {
5+ function getStoreDeclaration ( nodes ?: VariableDeclarator [ ] ) {
46 return nodes ?. find (
57 ( x ) =>
68 x . init ?. type === 'CallExpression' &&
@@ -9,7 +11,7 @@ function getStoreDeclaration(nodes?: import('estree').VariableDeclarator[]) {
911 )
1012}
1113
12- function nameFromDeclaration ( node ?: import ( 'estree' ) . VariableDeclarator ) {
14+ function nameFromDeclaration ( node ?: VariableDeclarator ) {
1315 return node ?. id . type === 'Identifier' && node . id . name
1416}
1517
@@ -62,5 +64,5 @@ export function autoRegisterHMRPlugin(
6264 }
6365 }
6466 } ,
65- } satisfies import ( 'vite' ) . Plugin
67+ } satisfies Plugin
6668}
You can’t perform that action at this time.
0 commit comments