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
{{ message }}
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.
It seems the issue is swc is not reading sourceMaps boolean value correctly from .swcrc - only "inline" has effect, but not true or false - sourcemaps will always be generated unless "inline" is specified.
I have found that this issue is consistent whether using --config-file flag on CLI or not.
Reproduction using
@swc/[email protected]
.scripts/.swcrc
contents:Steps:
node_modules/.bin/swc promiseSettledAggregate.ts -o dist/promiseSettledAggregate.js --config-file scripts/.swcrc
promiseSettledAggregate.js.map
indist
dist/promiseSettledAggregate.js.map
npm install @swc/[email protected]
and re-run first step, and see now there is no longerpromiseSettledAggregate.js.map
Expected behaviour:
Only emit
promiseSettledAggregate.js.map
ifsourceMaps
is enabled in config file. Do not emit ifsourceMaps
is omitted or set tofalse
.The text was updated successfully, but these errors were encountered: