Skip to content

Commit 5589b2a

Browse files
committed
refactor: remove redundant intersection check for autoImports option
1 parent 57ad5a1 commit 5589b2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default defineNuxtModule<ModuleOptions>({
7777
!options.autoImports && importComposables.clear()
7878
}
7979
else {
80-
importComposables = importComposables.intersection(new Set(options.autoImports))
80+
importComposables = new Set(options.autoImports)
8181
}
8282
addImports([...importComposables.values()].map(name => (
8383
{ name, from: '@tanstack/vue-query' }

0 commit comments

Comments
 (0)