mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
Rename default RN transformer
Differential Revision: D8235001 fbshipit-source-id: 59a4b2f13185dd9be0d33f01589d907d49493a26
This commit is contained in:
parent
6c02cdc066
commit
b90cbd195a
@ -34,7 +34,7 @@ const nodeOptions = babelRegisterOnly.config([nodeFiles]);
|
|||||||
babelRegisterOnly([]);
|
babelRegisterOnly([]);
|
||||||
|
|
||||||
/* $FlowFixMe(site=react_native_oss) */
|
/* $FlowFixMe(site=react_native_oss) */
|
||||||
const transformer = require('metro/src/transformer.js');
|
const transformer = require('metro/src/reactNativeTransformer');
|
||||||
module.exports = {
|
module.exports = {
|
||||||
process(src /*: string */, file /*: string */) {
|
process(src /*: string */, file /*: string */) {
|
||||||
if (nodeFiles.test(file)) {
|
if (nodeFiles.test(file)) {
|
||||||
@ -118,7 +118,7 @@ module.exports = {
|
|||||||
|
|
||||||
getCacheKey: createCacheKeyFunction([
|
getCacheKey: createCacheKeyFunction([
|
||||||
__filename,
|
__filename,
|
||||||
require.resolve('metro/src/transformer.js'),
|
require.resolve('metro/src/reactNativeTransformer'),
|
||||||
require.resolve('@babel/core/package.json'),
|
require.resolve('@babel/core/package.json'),
|
||||||
]),
|
]),
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user