Skip to content

Commit

Permalink
Cleanup the transformer flow types
Browse files Browse the repository at this point in the history
Summary:
Since the options that are passed to the `babelTransformer` are not exactly the same ones as the `transformer` receives, we need to have a specific object for them.

This allows us to make the transformer options object strict (since unfortunately the `babeltransformer` options object comes from many places and needs a bit of work to be able to be strict...

Reviewed By: mjesun

Differential Revision: D9309173

fbshipit-source-id: 0a92381968f17e5eb6c4740c1ca89580fa7ee4d3
  • Loading branch information
rafeca authored and facebook-github-bot committed Sep 24, 2018
1 parent 2e0d5c8 commit 28dedfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jest/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ module.exports = {
ast: true, // needed for open source (?) https://github.com/facebook/react-native/commit/f8d6b97140cffe8d18b2558f94570c8d1b410d5c#r28647044
dev: true,
disableBabelRuntime: true,
experimentalImportSupport: false,
hot: false,
inlineRequires: true,
minify: false,
platform: '',
Expand Down

0 comments on commit 28dedfb

Please sign in to comment.