Closed michelecocuccio closed 2 years ago
have you tried @rollup/plugin-alias?
and it also would be great if dts can auto read aliases from tsconfig.json => paths.
@aladdin-add thank you very much. I just tried but no luck :( I have also renamed all the path to be @/components/
adding the @
for example in order to avoid compatibility issues but I still have the same issues :(
looks like rpt2 will read the paths in your tsconfig.json
, while jest will not. so you just need to add your jest config. 😄
see the branch: https://github.com/weiran-zsd/dts-cli/tree/issue126
Hello. Thank for the awesome library. I am currently using
paths
in my tsconfig as I have a very complex structure folder. The project itself compiles perfectly but when it's bundled I get imports error (I am using theexample
folder to test the project).Is there a way to make sure the paths are compiled correctly when the project is bundled?
Your environment