Skip to content

Commit

Permalink
Fix safari 10 compatibility for terser
Browse files Browse the repository at this point in the history
  • Loading branch information
subhero24 committed Oct 3, 2018
1 parent 3430276 commit a16edb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 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

1 comment on commit a16edb0

@Komalyadav107
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the data is successfully tested

Please sign in to comment.