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 c634d10 commit e5a652b
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 e5a652b

Please sign in to comment.