-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow blocklisting of target modules from inline-requires memoisation
Summary: Add a new transform options `unstable_nonMemozedInlineRequires` to complement `unstable_memoizeInlineRequires`. If inline requires and memoization are enabled, this list prevents the named modules (import specifiers) from being memoized in a module-scoped `var`, while allowing them to be inlined. Facebook In particular, allow `sx` to be *inlined* but not *memoised*, because extraction of sound resources from a bundle works by static analysis of `sx` imports, and that (currently) doesn't support the memoised form: https://www.internalfb.com/code/fbsource/[9f890d033f51]/xplat/js/tools/metro-buck-transform-worker/src/analyzers/extractSoundResources.js?lines=51 Reviewed By: GijsWeterings Differential Revision: D62637023 fbshipit-source-id: 9351e5a9a358d8bd869f23a226929e8cff3f41cf
- Loading branch information
1 parent
8cacee1
commit 5dbb344
Showing
7 changed files
with
70 additions
and
20 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
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