Skip to content

Commit

Permalink
Don't load existing sourcemaps if sourcemaps are disabled (#2089)
Browse files Browse the repository at this point in the history
# ↪️ Pull Request

Do not load existing sourcemaps if sourcemaps are disabled
  • Loading branch information
DeMoorJasper authored and fathyb committed Oct 2, 2018
1 parent 8733179 commit 5e86421
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/parcel/src/assets/JSAsset.js
Expand Up @@ -149,7 +149,10 @@ class JSAsset extends Asset {
}

async pretransform() {
await this.loadSourceMap();
if (this.options.sourceMaps) {
await this.loadSourceMap();
}

await babel(this);

// Inline environment variables
Expand Down

0 comments on commit 5e86421

Please sign in to comment.