mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d6f29c8afd
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51938 Moves `packages/react-native-fantom` to `private/react-native-fantom`. Changelog: [Internal] Reviewed By: huntie Differential Revision: D76368959 fbshipit-source-id: 8d62f792229c10cd108dc849e8629d3174dc72c1
32 lines
667 B
JavaScript
32 lines
667 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const crypto = require('crypto');
|
|
const fs = require('fs');
|
|
|
|
module.exports = {
|
|
getHasteName(filePath /*: string */) /*: ?string */ {
|
|
if (filePath.endsWith('ReactNativeInternalFeatureFlags.js')) {
|
|
return 'ReactNativeInternalFeatureFlags';
|
|
}
|
|
|
|
return null;
|
|
},
|
|
|
|
getCacheKey() /*: string */ {
|
|
return crypto
|
|
.createHash('sha1')
|
|
.update(fs.readFileSync(__filename))
|
|
.digest('hex');
|
|
},
|
|
};
|