-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Register does not transpile node_module dependencies #769
Comments
Can you provide a minimal reproduction? |
Install
Then run:
The first import will work, the second one will fails as swc will pick the |
#767 should resolved this |
I tried v1.9.1 which should include this fix but it still fails 🤔 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a 3rd party dependency that internally relies on https://github.com/google/zx . Now
zx
does not publish with cjs, only ESM, and when I try to runmy-script.ts
that includes the dependency via:I get an error:
Obviously, cannot change the 3rd party dependency import statements. Also this was marked as "resolved" in #634 but seems like it works only on 1st level imports?
Other tools handle this properly (eg
node -r esbuild-register
) but I'd love to stick with SWC 🙏The text was updated successfully, but these errors were encountered: