Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add transformOptions to each graph. Update tests. (#679)
Summary: **Summary** Each graph is built using a specific set of transformOptions. Bind these to the graph, making them available to extensibility APIs such as `customSerializer` and `experimentalSerializerHook`. This data -- specifically, `platform` -- makes it possible to perform TypeScript validation during bundle/serve scenarios. `platform` is used to resolve types for platform-specific files. **Test plan** I updated existing Metro tests to validate the transformOptions in a graph. I also wrote a sample application which bundles using Metro, and uses `experimentalSerializerHook`. I had my app print `platform` to the console, verifying that it was the correct value. Pull Request resolved: #679 Reviewed By: GijsWeterings Differential Revision: D29335649 Pulled By: motiz88 fbshipit-source-id: fa4c5f9a36123479629d7118e7e62002d8d7d571
- Loading branch information
1 parent
598de6f
commit 57106d2
Showing
8 changed files
with
59 additions
and
14 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
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