Merge pull request #6834 from loganfsmyth/caching-refactor

Expose `envName` as a top-level Babel option to avoid using environmental variables
This commit is contained in:
Logan Smyth
2017-11-24 17:42:16 -08:00
committed by GitHub
9 changed files with 657 additions and 516 deletions

View File

@@ -49,6 +49,11 @@ commander.option(
collect,
);
commander.option("--config-file [path]", "Path a to .babelrc file to use");
commander.option(
"--env-name [name]",
"The name of the 'env' to use when loading configs and plugins. " +
"Defaults to the value of BABEL_ENV, or else NODE_ENV, or else 'development'.",
);
// Basic file input configuration.
commander.option("--source-type [script|module]", "");