Remove "projectRoot" as an option

Reviewed By: jeanlauliac

Differential Revision: D7123052

fbshipit-source-id: be57635187c7e9c4bed2a62eca23bfe8346bc4f3
This commit is contained in:
Miguel Jimenez Esun 2018-03-05 03:59:12 -08:00 committed by Facebook Github Bot
parent a4d1bf21b3
commit 3bd7ef1d74
1 changed files with 11 additions and 1 deletions

View File

@ -253,10 +253,20 @@ class Bundler {
key = stableHash([
module.localPath,
code,
transformCodeOptions,
this._opts.assetExts,
this._opts.assetRegistryPath,
this._opts.cacheVersion,
// We cannot include transformCodeOptions itself because of "rootPath".
// This is also faster than using a destructuring.
transformCodeOptions.assetDataPlugins,
transformCodeOptions.customTransformOptions,
transformCodeOptions.enableBabelRCLookup,
transformCodeOptions.dev,
transformCodeOptions.hot,
transformCodeOptions.inlineRequires,
transformCodeOptions.minify,
transformCodeOptions.platform,
]);
result = await cache.get(key);