getTransformOptionsModulePath

Summary:
Passing around a `getTransformOptions` function doesn't really work with the CLI utils, so I'm changing this to `getTransformOptionsModulePath` instead, which can easily be injected in through `rn-cli.config.js`.

public

Reviewed By: martinbigio

Differential Revision: D2785789

fb-gh-sync-id: c9fdc358cb5d0db27e0d02496e44c013c77f3d5f
This commit is contained in:
Bhuwan Khattar
2015-12-24 01:01:18 -08:00
committed by facebook-github-bot-5
parent 893a54d0cd
commit 7035fbc58d
7 changed files with 14 additions and 8 deletions

View File

@@ -25,6 +25,7 @@ function buildBundle(args, config, output = outputBundle) {
projectRoots: config.getProjectRoots(),
assetRoots: config.getAssetRoots(),
blacklistRE: config.getBlacklistRE(),
getTransformOptionsModulePath: config.getTransformOptionsModulePath,
transformModulePath: args.transformer,
verbose: args.verbose,
};