Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Source maps not working? #27

Open
wodCZ opened this issue Sep 10, 2023 · 0 comments
Open

Source maps not working? #27

wodCZ opened this issue Sep 10, 2023 · 0 comments

Comments

@wodCZ
Copy link

wodCZ commented Sep 10, 2023

I've been digging into details while preparing reproduction for the following IntelliJ issue: https://youtrack.jetbrains.com/issue/WEB-52287/Debugging-doesnt-work-correctly-with-swc-transpiler-https-github.com-swc-project-swc

It looks like the source maps are not outputted, or incorrect in some way? See the attached issue, and the reproduction repository: https://github.com/wodCZ/swc-register-inspect-repro

Unfortunately, I wasn't able to find a workaround on how to reliably attach debugger to a process running through @swc/register.

Sourcemaps are fine when building the project with the same configuration and debugging the compiled js file. However, that's a large inconvenience for an interactive debugging of large node projects.

// EDIT: I've just tried with https://github.com/swc-project/swc-node and it's working correctly. Should that @swc-node/register be used instead of @swc/register?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant