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 setting for disabling require() renaming (…
…#677) Summary: **Summary** Adds a flag, `unstable_disableModuleWrapping`, that disables wrapping of JS modules and transforming `require(...)` calls to `$$_REQUIRE(dependencyMap[n], ...)`. This is required for plugging in third-party bundlers such as [esbuild](https://esbuild.github.io/). **Test plan** A test has been added to ensure that `require()` calls are untouched. Pull Request resolved: #677 Reviewed By: GijsWeterings Differential Revision: D29358450 Pulled By: motiz88 fbshipit-source-id: cf5c25f891fc2c2bf87af1e6aa4434db70dc2bb3
- Loading branch information
1 parent
25be2a8
commit 598de6f
Showing
4 changed files
with
79 additions
and
9 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