Closed colin969 closed 1 year ago
Facing the same issue. Have you found a solution?
Nope, had to go back to ttypescript and only use SWC for the frontend w/ webpack.
Seems like this is fixed. I bought a Windows device and could reproduce this, but I couldn't reproduce it with a latest @swc/core
.
I'll close this issue with a PR adding a test for it
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
jsc.paths
transformation produces absolute paths instead of relative paths. This only occurs on Windows, the paths are relative when run on Linux.Example project: https://github.com/colin969/swc-issue-01-colin969
npm run build
for buildingInput code
No response
Config
Playground link
No response
Expected behavior
./build/main.js output of
Actual behavior
./build/main.js output of
Where
C:/Data/Projects/swc-bug
is the project pathVersion
1.2.211
Additional context
No response