Skip to content

Conversation

toddself
Copy link
Collaborator

@toddself toddself commented Nov 6, 2017

Safari 10 has an issue with let and redeclarations; the only way to safely
let uglify mangle and generate a build capable of supporting Safari 10 is to
enable the specific Safari 10 option.

No.

Seriously.

mishoo/UglifyJS#1753 (comment)

There is no noticable bundle size difference with this enabled

type safari10: true safari10: false
uncompressed 494k 489k
brotli 130k 134k
gzip 154k 148k
deflate 154k 148k

So somehow this is making Brotli more efficient. And the only browser that
doesn't support Brotli? Safari 10.

So win-win everywhere!

Safari 10 has an issue with `let` and redeclarations; the only way to safely
let uglify mangle and generate a build capable of supporting Safari 10 is to
enable the specific Safari 10 option.

No.

Seriously.

mishoo/UglifyJS#1753 (comment)

There is no noticable bundle size difference with this enabled

| type | safari10: true | safari10: false|
-----------------------------------------
| uncompressed | 494k | 489k |
| brotli  | 130k | 134k |
| gzip | 154k | 148k |
| deflate | 154k | 148k |

So somehow this is making Brotli more efficient. And the only browser that
doesn't support Brotli? Safari 10.

So win-win everywhere!
@goto-bus-stop
Copy link
Member

wuh. that should be the default option. oh well. thanks :D

@goto-bus-stop goto-bus-stop merged commit b58fd64 into browserify:master Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants