Skip to content

Commit

Permalink
fix: nuxt v3.7 remove compilerOptions.types (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
everyx committed Sep 6, 2023
1 parent 8fd8632 commit 07b76ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/anu-nuxt/src/module.ts
Expand Up @@ -104,6 +104,8 @@ export default defineNuxtModule<ModuleOptions>({
},
hooks: {
'prepare:types': ({ tsConfig, references }) => {
tsConfig.compilerOptions ||= {}
tsConfig.compilerOptions.types ||= []
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
tsConfig.compilerOptions!.types.push('anu-vue/volar')
references.push({
Expand Down

0 comments on commit 07b76ac

Please sign in to comment.