This repository was archived by the owner on Jan 16, 2025. It is now read-only.
This repository was archived by the owner on Jan 16, 2025. It is now read-only.
Maps generating even after setting -s false
#113
Open
Description
Describe the bug
SWC still generating map even after setting --source-map
or -s
to false
Input code
package.json
"scripts": {
"compile:ts": "swc source/main.dev.ts -w -s false -q -o dist/main.js"
},
Config
{
"minify": true,
}
even after removing flags from the script and adding same configuration in .swcrc
the output is same
{
"minify": true,
"sourceMaps": false
}
Expected behavior
The output should not generate *.js.map
file after setting -s
to false
Actual behavior
Generating source maps.
Input
Output
Version
@swc/cli - ^0.1.55, @swc/core - ^1.2.133
Metadata
Metadata
Assignees
Labels
No labels