Revert "Expose the actual transformer in the config"

This reverts commit bdc0f3031a.
This commit is contained in:
Hector Ramos
2018-08-24 13:38:51 -07:00
parent bdc0f3031a
commit a45a383683
3 changed files with 6 additions and 8 deletions
+2 -2
View File
@@ -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,
+3 -3
View File
@@ -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,
+1 -3
View File
@@ -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> {