-
-
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
Sourcemaps not working with @swc-node/register when SWCRC=true #746
Comments
I can confirm that issue swill exists with @swc-node/register@1.8.0. This release includes @dsyddall mentioned fix #742. Updated package.json:
Attaching updated (with new swc-node version) minimal example project: swc-maps-issue-updated.zip |
Another update, I can achieve good source maps with some additional configuration in
Source maps are good, when I add this configuration:
Probably we still can consider that issue is not fixed as it should behave the same either SWCRC file is not used or using empty SWCRC file. |
I have made minimal reproducible example project only with one source file and empty
.swcrc
file.When
SWCRC
is not set, sourcemap lines are good. But when I setSWCRC=true
sourcemap lines are wrong.Attaching minimal example project: swc-maps-issue.zip
Run without SWCRC:
npm run maps-good
Run with SWCRC:
npm run maps-bad
My console output:
package.json:
tsconfig.json:
.swcrc:
index-dev.ts:
The text was updated successfully, but these errors were encountered: