-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: tsconfig alias path resolution #283
Comments
Thank you for reporting this. |
I transfered this issue to typia's repo |
I tested typia without the plugin and code transformed directly with |
Oh, really. Could you give me an example? |
OK, so |
https://github.com/asnaeb/typia-test
|
I do not have time to do it, and actually I don't use alias so much, so your contribution are welcome |
Also, typia compiler resolve import statement here |
I gave a quick look at it and seems like I've found a way to handle this without having to resolve anything from tsconfig but doing it the vite way: If non relative imports match something inside vite's |
unplugin-typia version
0.6.18
What platform is your computer?
Darwin 23.5.0 arm64 arm
Describe the bug
When importing types from non relative paths, such types are parsed as
any
. Example of non relative paths are paths relative totsconfig.compilerOptions.baseUrl
or paths mapped fromtsconfig.compilerOptions.paths
.Adding
resolve.alias
tovite.config.ts
to map the paths in vite doesn't help.Reproduction
https://github.com/asnaeb/vite-unplugin-typia-repro
run with
npm run dev
and check the console.Validations
The text was updated successfully, but these errors were encountered: