Skip to content
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

Make metro-minify-terser the default minifier #871

Closed
wants to merge 1 commit into from

Commits on Sep 20, 2022

  1. Make metro-minify-terser the default minifier

    Summary:
    `uglify-es` has not been published for 4 years and is marked deprecated [on npm](https://www.npmjs.com/package/uglify-es). Increasingly it does not support syntax that we would otherwise be able to pass through untranspiled.
    
    `terser` - is a fork of `uglify-es` that is currently the most downloaded JS minifier ([`terser`](https://www.npmjs.com/package/terser) vs [`uglify-js`](https://www.npmjs.com/package/uglify-js)).
    
    Changelog:
    **[Breaking]** Switch default minifier from `uglify-es` to `terser`
    
    Reviewed By: huntie
    
    Differential Revision: D34647616
    
    fbshipit-source-id: 8e0e0d5ff9f7db621563921edd268f5022e1723b
    robhogan authored and facebook-github-bot committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    ca7d9da View commit details
    Browse the repository at this point in the history