Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Maps generating even after setting -s false #113

Open
KunalTanwar opened this issue Jan 27, 2022 · 1 comment
Open

Maps generating even after setting -s false #113

KunalTanwar opened this issue Jan 27, 2022 · 1 comment

Comments

@KunalTanwar
Copy link

KunalTanwar commented Jan 27, 2022

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

image

Output

image

Version

@swc/cli - ^0.1.55, @swc/core - ^1.2.133

@Darkle
Copy link

Darkle commented May 7, 2022

I'm also running in to this. Heres a repo for reproducing: https://github.com/Darkle/swc-test

Also referenced here: #73

@KunalTanwar KunalTanwar changed the title Source Map flag (--source-map) with Out File flag (-o) generating source map Maps generating even after setting -s false May 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants