Subwaytime / vite-aliases

Alias auto generation for Vite
https://www.npmjs.com/package/vite-aliases
MIT License
213 stars 13 forks source link

tsconfig without compilerOptions not supported #26

Closed FunctionDJ closed 3 years ago

FunctionDJ commented 3 years ago

vite-aliases doesn't check if compileOptions exists in the tsconfig, and doesn't handle it.

So when using a tsconfig that uses extend to get it's compilerOptions and doesn't have it's own, a TypeError occurs: Cannot read property 'paths' of undefined

FunctionDJ commented 3 years ago

Kinda related to #25 since i tried extend to get around that issue and keep my comments in a tsconfig.base.json file.

FunctionDJ commented 3 years ago

Can be worked around by simply creating "compilerOptions": { "paths": {} }

Subwaytime commented 3 years ago

fixed with v0.8.4