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

View File

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