aleclarson / vite-tsconfig-paths

Support for TypeScript's path mapping in Vite
MIT License
1.34k stars 50 forks source link

docs: mention allowJs and loose options earlier in readme #159

Closed aolyang closed 2 weeks ago

aolyang commented 2 months ago

It's my bad not to read README in detail. As a result, I have spend three hourse to figer out how to support resolve Vue SFC file.

And the answer is so simple just in README.

I'm using strict Typescript with React when I switched to monorepo and strict Typescript Vue, I made this mistake confidently.
I checked everything was fine. So I debug into the source code, and find loose and allowJs options, I'm really stupid.

So, I made this PR, adding an optional step 4, to warn others not to make this mistake. feel free to close for any reason. 🤣