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
Uh oh!
There was an error while loading. Please reload this page.
-
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.baseUrlnot resolving the require path as either relative or absolute?Context
Using
transformortransformSyncfrom@swc/core.Based on this error message:
I've understood that the
baseUrlpath must be absolute which differs fromtsconfig.json, so I'm passingprocess.cwd().Code
Expected:
Output:
Beta Was this translation helpful? Give feedback.
All reactions