Skip to content

Commit

Permalink
refactor(nuxt): : use newer addImports
Browse files Browse the repository at this point in the history
From #1665
  • Loading branch information
posva committed Oct 8, 2022
1 parent 8c1dfce commit cfd41a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuxt/src/module.ts
Expand Up @@ -5,7 +5,7 @@ import {
defineNuxtModule,
addPlugin,
isNuxt2,
addAutoImport,
addImports,
createResolver,
resolveModule,
} from '@nuxt/kit'
Expand Down Expand Up @@ -80,7 +80,7 @@ export default defineNuxtModule<ModuleOptions>({

// Add auto imports
const composables = resolver.resolve('./runtime/composables')
addAutoImport([
addImports([
{ from: composables, name: 'usePinia' },
...options.autoImports!.map((imports) =>
typeof imports === 'string'
Expand Down

0 comments on commit cfd41a2

Please sign in to comment.