-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Paths are not transformed in dts files #9548
Comments
I also stumbled upon this issue, would like to see it resolved! |
TypeScript does not do specifier rewriting today, so this feature would be SWC-specific behavior. |
I think we should apply |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
I am using the "paths" option in "jsc". The paths are correctly rewritten in the output *.js files, but remain untouched in the *.d.ts files. I would expect them to be rewritten the same way in both types of files.
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.7.24&code=H4sIAAAAAAAAA0utKMgvKlHQUkgrys9VUHfIyUzST61IzC3ISVW3BgCTcYWLHQAAAA%3D%3D&config=H4sIAAAAAAAAA21RsXLCMAzd%2BQrO16nXI1MXJnrtwsDYqcdgHNGYsy2fpLSkHP9eOwlpUuJJfk960pMui2V66oFNBV6r9VJVIpHXRcHfZkVcdMTqxBjUU5fMWJOBnY6c8oVq6PETmwRc2k%2F6Rk0MNEJyaRNEn3MbaSKwIRull235EgySFqSpdMc1QXtrtj4iyQwtMzXCudlRO4YevN5YJZo%2BIQsp4OdhCHXQDO%2FkMr4q%2FuBIkNx8wYtzr%2Bg9hLZdqzzkwDkC2cxpN%2FUN3sqW0WmB8m0Y9G6kqKXiaeXG2UPxmLAPxWRStB%2FZ2wiwcE%2Ff4v2drENkmOyh55THsnYw7Zgvk92bZBPDicf3YSFrZpbf4Tss4Z5z%2Bqf5v6oEB9wGAcI4P5gN9jiULa6%2Ft7hwB6gCAAA%3D&strip-types=
SWC Info output
Expected behavior
main.d.ts looks like:
Actual behavior
main.d.ts looks like:
Version
@swc/cli: 0.4.0 @swc/core: 1.7.26
Additional context
No response
The text was updated successfully, but these errors were encountered: