Open matthew-dean opened 1 month ago
Note also that without parseNative
, the plugin failed wildly, not just on path resolution, as there are multiple tsconfig.json files that extend from others in a Nuxt setup. But even if resolving "natively", it's not actually resolving natively in the way that TypeScript actually understands those paths.
@matthew-dean Did you find a fix?
I've reduced the test case to this: https://stackblitz.com/edit/vitest-dev-vitest-oip9io?initialPath=__vitest__/
You can see that this Vite plugin fails entirely to resolve paths using TSConfig settings.
It's important to note that:
tsconfig.json
file, but vite-tsconfig-paths does not account for that, and incorrectly merges path options.