diff --git a/packages/metro/src/Bundler.js b/packages/metro/src/Bundler.js index 25b485c551..65bea08937 100644 --- a/packages/metro/src/Bundler.js +++ b/packages/metro/src/Bundler.js @@ -78,6 +78,7 @@ class Bundler { projectRoot: opts.projectRoot, providesModuleNodeModules: opts.resolver.providesModuleNodeModules, reporter: opts.reporter, + resetCache: opts.resetCache, resolveRequest: opts.resolver.resolveRequest, sourceExts: opts.resolver.sourceExts, useWatchman: opts.resolver.useWatchman, diff --git a/packages/metro/src/node-haste/DependencyGraph.js b/packages/metro/src/node-haste/DependencyGraph.js index c01c29e51f..eef3263c80 100644 --- a/packages/metro/src/node-haste/DependencyGraph.js +++ b/packages/metro/src/node-haste/DependencyGraph.js @@ -45,6 +45,7 @@ type Options = {| +projectRoot: string, +providesModuleNodeModules: Array, +reporter: Reporter, + +resetCache: boolean, +resolveRequest: ?CustomResolver, +sourceExts: Array, +useWatchman: boolean, @@ -104,6 +105,7 @@ class DependencyGraph extends EventEmitter { platforms: Array.from(opts.platforms), providesModuleNodeModules: opts.providesModuleNodeModules, retainAllFiles: true, + resetCache: opts.resetCache, roots: opts.watchFolders, throwOnModuleCollision: true, useWatchman: opts.useWatchman,