Skip to content

Commit

Permalink
chore: ignore unknown hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 30, 2022
1 parent 16988f4 commit b33613d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default defineNuxtModule({
if (opts.imports ?? opts.autoImports) {
// Deprecate hooks
nuxt.hooks.deprecateHooks({
// @ts-expect-error
'autoImports:sources': {
to: 'imports:sources',
message: '`autoImports:sources` hook is deprecated. Use `addImportsSources()` from `@nuxt/kit` or `imports:dirs` with latest Nuxt Bridge.'
Expand Down

0 comments on commit b33613d

Please sign in to comment.