-
Notifications
You must be signed in to change notification settings - Fork 31
Transform tsConfig.compilerOptions.paths when building TypeScript #5
Comments
That's a really interesting feature! I haven't used that personally before, is it supported by TypeScript by default, or is this a feature that only works when Also, do you have an example repo that you can share so that I can get a better feel for it? |
This is typescript feature, the caveat is that Resources Here's the doc Here's the simpler explanation Here's the corresponding TypeScript issues Existing solutions in other tools
Solution?
Ideally, paths should be transpiled during the build. However, I was not able to find existing solution that would do this. Looks like this is archivable only by using module builder like Webpack or Rollup. |
And here's the reproduction |
I run into the same issue! Basically, it makes it impossible to use it in a project that gets included somewhere. Would be cool if we got this working. |
To get around this issue I'm just running |
Hello. Thank you for your project 👍
TypeScript module resolution shortcuts are not transformed into a plain paths.
tsconfig.json
source
output
expected output
possible-solution
tsconfig-paths
The text was updated successfully, but these errors were encountered: