mirror of https://github.com/status-im/metro.git
Remove things that contain absolute paths
Reviewed By: rafeca Differential Revision: D7306933 fbshipit-source-id: 497b0f6f71243180870a297d6ea8b09164112649
This commit is contained in:
parent
b581a3e2bb
commit
21ccd2b269
|
@ -121,6 +121,14 @@ class Bundler {
|
||||||
constructor(opts: Options) {
|
constructor(opts: Options) {
|
||||||
opts.projectRoots.forEach(verifyRootExists);
|
opts.projectRoots.forEach(verifyRootExists);
|
||||||
|
|
||||||
|
const getTransformCacheKey = getTransformCacheKeyFn({
|
||||||
|
asyncRequireModulePath: opts.asyncRequireModulePath,
|
||||||
|
cacheVersion: opts.cacheVersion,
|
||||||
|
dynamicDepsInPackages: opts.dynamicDepsInPackages,
|
||||||
|
projectRoots: opts.projectRoots,
|
||||||
|
transformModulePath: opts.transformModulePath,
|
||||||
|
});
|
||||||
|
|
||||||
this._opts = opts;
|
this._opts = opts;
|
||||||
this._cache = opts.cacheStores.length ? new Cache(opts.cacheStores) : null;
|
this._cache = opts.cacheStores.length ? new Cache(opts.cacheStores) : null;
|
||||||
|
|
||||||
|
@ -147,13 +155,7 @@ class Bundler {
|
||||||
experimentalCaches: !!opts.cacheStores.length,
|
experimentalCaches: !!opts.cacheStores.length,
|
||||||
extraNodeModules: opts.extraNodeModules,
|
extraNodeModules: opts.extraNodeModules,
|
||||||
getPolyfills: opts.getPolyfills,
|
getPolyfills: opts.getPolyfills,
|
||||||
getTransformCacheKey: getTransformCacheKeyFn({
|
getTransformCacheKey,
|
||||||
asyncRequireModulePath: opts.asyncRequireModulePath,
|
|
||||||
cacheVersion: opts.cacheVersion,
|
|
||||||
dynamicDepsInPackages: opts.dynamicDepsInPackages,
|
|
||||||
projectRoots: opts.projectRoots,
|
|
||||||
transformModulePath: opts.transformModulePath,
|
|
||||||
}),
|
|
||||||
globalTransformCache: opts.globalTransformCache,
|
globalTransformCache: opts.globalTransformCache,
|
||||||
hasteImplModulePath: opts.hasteImplModulePath,
|
hasteImplModulePath: opts.hasteImplModulePath,
|
||||||
maxWorkers: opts.maxWorkers,
|
maxWorkers: opts.maxWorkers,
|
||||||
|
@ -173,11 +175,7 @@ class Bundler {
|
||||||
this._baseHash = stableHash([
|
this._baseHash = stableHash([
|
||||||
opts.assetExts,
|
opts.assetExts,
|
||||||
opts.assetRegistryPath,
|
opts.assetRegistryPath,
|
||||||
opts.asyncRequireModulePath,
|
getTransformCacheKey,
|
||||||
opts.cacheVersion,
|
|
||||||
opts.dynamicDepsInPackages,
|
|
||||||
opts.projectRoots,
|
|
||||||
opts.transformModulePath,
|
|
||||||
]).toString('binary');
|
]).toString('binary');
|
||||||
|
|
||||||
this._projectRoots = opts.projectRoots;
|
this._projectRoots = opts.projectRoots;
|
||||||
|
|
Loading…
Reference in New Issue