Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
unstable_renameRequire
to allow disabling the require ren…
…ame transform (#1230) Summary: Renaming `require` to `_$$_REQUIRE` is an extraneous babel traversal that apparently is used internally at Meta for additional dependency extraction. Since the modules are scoped as iife functions, and there's no special convention to preserve native `require` syntax, this transform does not appear to add any value to standard projects. Per advice from robhogan, I've added a flag to disable this transform, which we can enable by default in Expo CLI. Saves ~165ms when transforming the production react renderer module. Pull Request resolved: #1230 Reviewed By: huntie Differential Revision: D54559949 Pulled By: robhogan fbshipit-source-id: 8155c5fef8e8febd5ae65a4434be28a98b76a312
- Loading branch information
1 parent
3606983
commit 7250388
Showing
6 changed files
with
58 additions
and
1 deletion.
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
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