unplugin / unplugin-swc

SWC plugin for Vite and Rollup
MIT License
236 stars 13 forks source link

tsconfig extends module references not supported #144

Open holvi-sebastian opened 3 months ago

holvi-sebastian commented 3 months ago

Describe the bug

When extending a tsconfig that is referenced with module syntax, without the /tsconfig.json filename, unplugin-swc fails to load the tsconfig.

The problem is with load-tsconfig not correctly handling the (otherwise valid) case. I have opened a PR to fix this issue in that repo: https://github.com/egoist/load-tsconfig/pull/27

After its merged, unplugin-swc should update its load-tsconfig version.

Reproduction

https://github.com/holvi-sebastian/load-tsconfig/tree/support-module-references-in-extends

System Info

n/a

Used Package Manager

pnpm

Validations