You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
.The text was updated successfully, but these errors were encountered: