Skip to content

Incorrect stack traces with inline sourceMaps #861

@maxfliri

Description

@maxfliri

With swc-node v1.10.9, stack traces report incorrect line numbers when swc is configured to generate inline sourceMaps.

This happens with SWCRC=true when .swcrc has "sourceMaps": "inline". It also happens always when running without SWCRC=true, because this always results in inline sourceMaps, as reported in #848.

I get correct stack traces only when I use SWCRC=true and .swcrc has "sourceMaps": true.

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