mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Revert "Expose the actual transformer in the config"
This reverts commit bdc0f3031a.
This commit is contained in:
@@ -44,9 +44,9 @@ async function buildBundle(
|
||||
sourceMapUrl = path.basename(sourceMapUrl);
|
||||
}
|
||||
|
||||
config.transformerPath = args.transformer
|
||||
config.transformModulePath = args.transformer
|
||||
? path.resolve(args.transformer)
|
||||
: config.transformerPath;
|
||||
: config.transformModulePath;
|
||||
|
||||
const requestOpts: RequestOptions = {
|
||||
entryFile: args.entryFile,
|
||||
|
||||
@@ -25,9 +25,9 @@ async function dependencies(argv, configPromise, args, packagerInstance) {
|
||||
}
|
||||
|
||||
config.cacheStores = [];
|
||||
if (args.transformer) {
|
||||
config.transformer.babelTransformerPath = path.resolve(args.transformer);
|
||||
}
|
||||
config.transformModulePath = args.transformer
|
||||
? path.resolve(args.transformer)
|
||||
: config.transformModulePath;
|
||||
|
||||
const relativePath = path.relative(
|
||||
config.projectRoot,
|
||||
|
||||
@@ -76,10 +76,8 @@ const Config = {
|
||||
],
|
||||
getPolyfills,
|
||||
},
|
||||
transformer: {
|
||||
babelTransformerPath: require.resolve('metro/src/reactNativeTransformer'),
|
||||
},
|
||||
watchFolders: getWatchFolders(),
|
||||
transformModulePath: require.resolve('metro/src/reactNativeTransformer'),
|
||||
},
|
||||
|
||||
async load(configFile: ?string): Promise<ConfigT> {
|
||||
|
||||
Reference in New Issue
Block a user