When using v4.x on a project that has a tsconfig file that does not specify the "compilerOptions" key, it fails with the error "Cannot destructure property 'baseUrl' of 'options' as it is undefined" in createResolver. You should probably add a null check between these lines:
When using v4.x on a project that has a tsconfig file that does not specify the "compilerOptions" key, it fails with the error "Cannot destructure property 'baseUrl' of 'options' as it is undefined" in
createResolver
. You should probably add a null check between these lines:https://github.com/aleclarson/vite-tsconfig-paths/blob/d6d2b736e54fdec35c3ca70e7daa3ad7e299f076/src/index.ts#L170-L171