mirror of
https://github.com/status-im/metro.git
synced 2025-02-17 21:46:24 +00:00
Ignore some irrelevant URL params in order to calculate the bundle cache
Reviewed By: davidaurelio Differential Revision: D6086420 fbshipit-source-id: 52c1d5dc53d23b3963e663f4033446344b892659
This commit is contained in:
parent
e9d2575b26
commit
941b25a2ca
@ -608,8 +608,15 @@ class Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
optionsHash(options: {}) {
|
optionsHash(options: {}) {
|
||||||
// onProgress is a function, can't be serialized
|
// List of option parameters that won't affect the build result, so they
|
||||||
return JSON.stringify(Object.assign({}, options, {onProgress: null}));
|
// can be ignored to calculate the options hash.
|
||||||
|
const ignoredParams = {
|
||||||
|
onProgress: null,
|
||||||
|
excludeSource: null,
|
||||||
|
sourceMapUrl: null,
|
||||||
|
};
|
||||||
|
|
||||||
|
return JSON.stringify(Object.assign({}, options, ignoredParams));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user