Skip to content

Commit

Permalink
Fix safari 10 compatibility for terser (#2103)
Browse files Browse the repository at this point in the history
  • Loading branch information
subhero24 authored and DeMoorJasper committed Oct 4, 2018
1 parent 030968c commit 9f4cec7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/parcel-bundler/src/transforms/terser.js
Expand Up @@ -10,6 +10,7 @@ module.exports = async function(asset) {
let customConfig = await asset.getConfig(['.uglifyrc', '.terserrc']);
let options = {
warnings: true,
safari10: true,
mangle: {
toplevel: !asset.options.scopeHoist
}
Expand Down

0 comments on commit 9f4cec7

Please sign in to comment.