mirror of https://github.com/status-im/metro.git
Remove "projectRoot" as an option
Reviewed By: jeanlauliac Differential Revision: D7123052 fbshipit-source-id: be57635187c7e9c4bed2a62eca23bfe8346bc4f3
This commit is contained in:
parent
a4d1bf21b3
commit
3bd7ef1d74
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue