add --config-file option to CLI to pass in .babelrc location (#6133)

This commit is contained in:
Bryan Wain
2017-08-22 12:58:24 -05:00
committed by Justin Ridgewell
parent 7e726a81e6
commit 63baaa7148
6 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
{
"args": ["--config-file", "../.othername_babelrc"]
}

View File

@@ -0,0 +1,7 @@
/*
Test comment
*/
arr.map(x => x * MULTIPLIER);
// END OF FILE

View File

@@ -0,0 +1,5 @@
"use strict";
arr.map(function (x) {
return x * MULTIPLIER;
});