-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swap JavaScript minifier from UglifyJS to terser #3013
Conversation
ba2ed98
to
155203c
Compare
155203c
to
286e5ca
Compare
286e5ca
to
90dc98d
Compare
90dc98d
to
f28e555
Compare
5944234
to
374a8d7
Compare
f28e555
to
08a2b77
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Besides the sourcemap being missing, looks like Uglify was quite "aggressive" in its minification with things like:
Not really a concern, more of an observation and something we may want to look into in the future to see how far we can minify things again tweaking terser's options. I think I'd me more confident for these tweaks to happen after we run our review app against the minified files, as you proposed. Which actually would give us safety to merge this PR as well, so maybe we could look into making the review app use a minified file and then merge this one? |
08a2b77
to
250752b
Compare
250752b
to
2e750ce
Compare
What are the things that we're worried about with this change? As this only affects |
2e750ce
to
1d4c706
Compare
04bd6d1
to
ddfb271
Compare
ddfb271
to
375233a
Compare
375233a
to
1905405
Compare
1905405
to
77b738b
Compare
@36degrees Added a CHANGELOG entry under Fixes
Too much info? |
77b738b
to
034a3e1
Compare
LGTM, but worth checking with @claireashworth. Might be worth using the term 'precompiled files' or 'precompiled JavaScript' as part of the description to match the terms we use in our install docs? |
Thanks @36degrees I'll hold on for @claireashworth I like 'precompiled JavaScript' but which bit would you swap out? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me. You could shuffle the text around to mention the polyfills not running sooner, but this para is short so not an essential change.
edit: I assume Ollie's suggestion would be here - We've fixed errors in IE8 caused by updates to our precompiled JavaScript...
034a3e1
to
995072e
Compare
@claireashworth Fab, I've pushed again @36degrees I've switched to
|
Enable minification of ES6+ features
Swaps UglifyJS with terser (forked version) as explained on the terser README.md
Related:
let
in I18n preventing uglify (intomain
) #2870gulp-plumber
to JavaScript compile task to log UglifyJS issues #2872