mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Introduce HasteImpl
Summary: Similar to https://github.com/facebook/jest/pull/2877, this introduces an optional config `HasteImpl` of type `{getHasteName(filePath: string): (string|void)}` that returns the haste name for a module at filePath if it is a haste module or undefined otherwise. This allows us to inject a custom implementation of haste's module id resolution rather than only relying on `providesModule` annotations Reviewed By: davidaurelio Differential Revision: D4589372 fbshipit-source-id: 4d1983dfbf09c9d67faf725e86ae86ab42433b7d
This commit is contained in:
committed by
Facebook Github Bot
parent
4ba983401f
commit
234f4f538d
@@ -29,6 +29,7 @@ function dependencies(argv, config, args, packagerInstance) {
|
||||
projectRoots: config.getProjectRoots(),
|
||||
blacklistRE: config.getBlacklistRE(),
|
||||
getTransformOptions: config.getTransformOptions,
|
||||
hasteImpl: config.hasteImpl,
|
||||
transformModulePath: transformModulePath,
|
||||
extraNodeModules: config.extraNodeModules,
|
||||
verbose: config.verbose,
|
||||
|
||||
Reference in New Issue
Block a user