Why is jsc.baseUrl
not resolving the require path?
#8665
Closed
devjiwonchoi
started this conversation in
RFC
Replies: 1 comment 4 replies
-
If you invoke |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, fellow engineers and appreciatable SWC maintainers,
I wish to understand if the following behavior is intended and if so, the reason for it:
TL;DR
Why is
jsc.baseUrl
not resolving the require path as either relative or absolute?Context
Using
transform
ortransformSync
from@swc/core
.Based on this error message:
I've understood that the
baseUrl
path must be absolute which differs fromtsconfig.json
, so I'm passingprocess.cwd()
.Code
Expected:
Output:
Beta Was this translation helpful? Give feedback.
All reactions