Open maxfliri opened 5 days ago
I think the reason might be that sourcemaps are not added to SourcemapMap
when inline.
Sourcemaps are added to SourcemapMap
in the function below, which handles non-inline sourcemaps. As far as I can this is not happening for inline sourcemaps.
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 withoutSWCRC=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
.