-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add experimental transformer settings: compactOutput, disableNormaliz…
…ePseudoGlobals Summary: Adds two experimental flags to Metro's built-in JS transformer. These are: * `unstable_compactOutput`: generate compact output from Babel. This is a little faster than the default behaviour of generating pretty-printed JS. The change in output is only noticeable when not subsequently running a minifier (per the normal flags). * `unstable_disableNormalizePseudoGlobals`: disables the normalizePseudoGlobals pass, a pre-processing step Metro runs before the minifier to make the resulting module headers more consistent and therefore compressible. NOTE: These flags may change or stop working at any point, even in a patch version of Metro. Reviewed By: MichaReiser, feedthejim Differential Revision: D28442418 fbshipit-source-id: c692af6ebda1cfd1284d59701a168bb56689da60
- Loading branch information
1 parent
c6aef25
commit 5b913fa
Showing
4 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters