Skip to content

Commit

Permalink
fix: let nuxt handle tsconfig path aliasing (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Sep 15, 2023
1 parent 2bc04fc commit 55ee968
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,6 @@ export default defineNuxtModule<ModuleOptions>({
references.push({
path: join(nuxt.options.buildDir, 'component-meta.d.ts')
})
tsConfig.compilerOptions = tsConfig.compilerOptions || {}
tsConfig.compilerOptions.paths = tsConfig.compilerOptions.paths || {}
tsConfig.compilerOptions.paths['#nuxt-component-meta'] = [withoutLeadingSlash(join(nuxt.options.buildDir, '/component-meta.mjs').replace(nuxt.options.rootDir, ''))]
tsConfig.compilerOptions.paths['#nuxt-component-meta/types'] = [withoutLeadingSlash(join(nuxt.options.buildDir, '/component-meta.d.ts').replace(nuxt.options.rootDir, ''))]
})

// Nitro setup
Expand Down

0 comments on commit 55ee968

Please sign in to comment.