metro-bundler: hash enableBabelRCLookup in global cache

Reviewed By: mjesun

Differential Revision: D5502800

fbshipit-source-id: f6cb01e57a3a385c256f1e77420ca670fe77e5de
This commit is contained in:
Jean Lauliac 2017-07-27 12:10:00 -07:00 committed by Facebook Github Bot
parent c37f730c57
commit 1a75751a3b
1 changed files with 4 additions and 1 deletions

View File

@ -426,6 +426,7 @@ class OptionsHasher {
options: TransformOptionsStrict,
): crypto$Hash {
const {
enableBabelRCLookup,
generateSourceMaps,
dev,
hot,
@ -451,7 +452,9 @@ class OptionsHasher {
// eslint-disable-next-line no-bitwise
(+hot << 2) |
// eslint-disable-next-line no-bitwise
(+!!inlineRequires << 3),
(+!!inlineRequires << 3) |
// eslint-disable-next-line no-bitwise
(+enableBabelRCLookup << 4),
]),
);
hash.update(JSON.stringify(platform));