Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

refactor(nuxt)!: rename autoImports to imports #6864

Merged
merged 12 commits into from
Aug 23, 2022
Prev Previous commit
Next Next commit
chore: update comments
  • Loading branch information
antfu committed Aug 23, 2022
commit 1a688529141e00d106c2a32362880b75ae10adde
4 changes: 2 additions & 2 deletions packages/nuxt/src/imports/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ export default defineNuxtModule<Partial<ImportsOptions>>({
},
async setup (options, nuxt) {
// TODO: remove deprecation warning
// @ts-expect-error
// @ts-ignore
if (nuxt.options['auto-imports']) {
logger.warn('`auto-imports` is deprecated, use `imports` instead')
// @ts-expect-error
// @ts-ignore
options = defu(nuxt.options['auto-imports'], options)
}
nuxt.hooks.deprecateHooks({
Expand Down