Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

How can I disable sourcemaps? #418

Closed
speigg opened this issue Jul 28, 2015 · 5 comments
Closed

How can I disable sourcemaps? #418

speigg opened this issue Jul 28, 2015 · 5 comments

Comments

@speigg
Copy link

speigg commented Jul 28, 2015

Trying to build with babel in jspm, with sourcemaps disabled. In my config.js:

System.config({
  "transpiler": "babel",
  "babelOptions": {
    "sourceMaps": false
  }
});

But, es6-module-loader seems to be overwriting my options.

@guybedford
Copy link
Member

There was a previous discussion around this in systemjs/systemjs#295.

@speigg
Copy link
Author

speigg commented Jul 28, 2015

The issue is that the options I provide in "babelOptions" are being overwritten, which is unexpected (it looks like the options for the other transpilers do the same). I can understand having "default" options for certain things if an option is not specified, but I don't think it makes sense for options that are explicitly provided by the developer to be overwritten.

@speigg
Copy link
Author

speigg commented Jul 28, 2015

As discussed in the thread you mentioned, System.sourceMaps = false would be a nice way to set the default behavior, but the options that are passed into "babelOptions/traceurOptions" (if any) should take priority.

@guybedford
Copy link
Member

Why would you want to disable source maps? For performance? Surely you need debugging though?

@guybedford
Copy link
Member

Added in 0.17.4.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants