diff --git a/local-cli/server/util/attachHMRServer.js b/local-cli/server/util/attachHMRServer.js index 50c7f0960..b9502893c 100644 --- a/local-cli/server/util/attachHMRServer.js +++ b/local-cli/server/util/attachHMRServer.js @@ -39,6 +39,7 @@ type DependencyOptions = {| +platform: ?string, +recursive: boolean, +rootEntryFile: string, + +bundlingOptions?: Object, |}; /** @@ -144,6 +145,7 @@ function attachHMRServer( minify: false, platform: platform, recursive: true, + bundlingOptions: response.options, }); return { diff --git a/local-cli/server/util/getInverseDependencies.js b/local-cli/server/util/getInverseDependencies.js index 2c568cb4a..927af9246 100644 --- a/local-cli/server/util/getInverseDependencies.js +++ b/local-cli/server/util/getInverseDependencies.js @@ -27,6 +27,7 @@ export type ResolutionResponse = { getResolvedDependencyPairs( module: TModule, ): $ReadOnlyArray<[string, TModule]>, + options: Object, }; function resolveModuleRequires(