Adds an experimental hook for custom resolutions

Reviewed By: mjesun

Differential Revision: D7337022

fbshipit-source-id: fea1ee345e4d3b5713fed6cdc33869fbba6f21e2
This commit is contained in:
Maël Nison 2018-04-05 08:54:52 -07:00 committed by Facebook Github Bot
parent 439614891c
commit 6be5d7827b
2 changed files with 3 additions and 1 deletions

View File

@ -98,8 +98,9 @@ async function buildBundle(
postProcessBundleSourcemap: config.postProcessBundleSourcemap,
projectRoots: config.getProjectRoots(),
providesModuleNodeModules: providesModuleNodeModules,
resetCache: args.resetCache,
reporter: new TerminalReporter(terminal),
resetCache: args.resetCache,
resolveRequest: config.resolveRequest,
sourceExts: sourceExts.concat(defaultSourceExts),
transformCache: TransformCaching.useTempDir(),
transformModulePath: transformModulePath,

View File

@ -202,6 +202,7 @@ function getPackagerServer(args, config, reporter) {
providesModuleNodeModules: providesModuleNodeModules,
reporter,
resetCache: args.resetCache,
resolveRequest: config.resolveRequest,
sourceExts: args.sourceExts.concat(defaultSourceExts),
transformModulePath: transformModulePath,
transformCache: TransformCaching.useTempDir(),