Skip to content

Commit f8f1870

Browse files
rafecafacebook-github-bot
authored andcommitted
Make the --transformer CLI argument override the babelTransformerPath
Summary: D9070810 introduced a breaking change, making the `--transformer` CLI argument able to override the generic transformer instead of `babelTransformer`. Since we still have some scripts that assume `--transformer` is being used for overriding the babelTransformer path, we cannot do this breaking change yet, so this diff reverts the CLI handling to the old behaviour. Reviewed By: jrwats Differential Revision: D9550157 fbshipit-source-id: 8b4e26fcb5bca6e4b2f63b1e1a014bce23a31452
1 parent ee543ec commit f8f1870

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

local-cli/bundle/buildBundle.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ async function buildBundle(
4444
sourceMapUrl = path.basename(sourceMapUrl);
4545
}
4646

47-
config.transformerPath = args.transformer
48-
? path.resolve(args.transformer)
49-
: config.transformerPath;
50-
5147
const requestOpts: RequestOptions = {
5248
entryFile: args.entryFile,
5349
sourceMapUrl,

local-cli/dependencies/dependencies.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ async function dependencies(argv, configPromise, args, packagerInstance) {
2525
}
2626

2727
config.cacheStores = [];
28-
if (args.transformer) {
29-
config.transformer.babelTransformerPath = path.resolve(args.transformer);
30-
}
3128

3229
const relativePath = path.relative(
3330
config.projectRoot,

0 commit comments

Comments
 (0)