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

Source maps not working? #27

@wodCZ

Description

@wodCZ

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-mygithub.libinneed.workers.dev-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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions