-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
@swc-node/register@1.8.0
/esm-register
does not recognise tsconfig.json
paths
#753
Comments
this commit convert fileUrl to path before compile in esm, this may cause path alias resolve issue close swc-project#753
it is a bug caused by #722 @Brooooooklyn maybe we should consider revert it temporarily, it is a major breaking change and should add more test cases. it caused many unexpected results about resolve and compile. relate: #752 #734 #727. i tried to fix these issues (#754) but cause more complication issues with @swc/core |
same problem |
It might be the same as #758 |
I've just stumbled upon this )': |
@alfaproject, you could use this |
Well, TS paths resolution doesn't work and that's why I was trying
|
#754 should fix this, i would test later. feedback please. |
* fix: convert fileUrl to path before compile this commit convert fileUrl to path before compile in esm, this may cause path alias resolve issue close #753 * Create changeset * chore: update test:module to use node --import * fix: remove baseUrl from esm to keep module import specifier, cause it use tsc resolver
I was playing with the latest and greatest and notice that when running via:
…
tsconfig.json
path aliases are not recognised, e.g.minimal reproducible example
Stack trace
The text was updated successfully, but these errors were encountered: