Skip to content

Commit

Permalink
fix: sync default_extensions to babel-cli usage (babel#13508)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung authored and nicolo-ribaudo committed Jul 30, 2021
1 parent 6439706 commit 9191f89
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/babel-cli/src/babel/options.ts
@@ -1,7 +1,7 @@
import fs from "fs";

import commander from "commander";
import { version } from "@babel/core";
import { version, DEFAULT_EXTENSIONS } from "@babel/core";
import glob from "glob";

// Standard Babel input configs.
Expand Down Expand Up @@ -113,7 +113,9 @@ if (!process.env.BABEL_8_BREAKING) {
// "babel" command specific arguments that are not passed to @babel/core.
commander.option(
"-x, --extensions [extensions]",
"List of extensions to compile when a directory has been the input. [.es6,.js,.es,.jsx,.mjs]",
"List of extensions to compile when a directory has been the input. [" +
DEFAULT_EXTENSIONS.join() +
"]",
collect,
);
commander.option(
Expand Down

0 comments on commit 9191f89

Please sign in to comment.