Skip to content

Commit 90d5eb7

Browse files
authored
fix: sync default_extensions to babel-cli usage (#13508)
1 parent b0fe6bd commit 90d5eb7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/babel-cli/src/babel/options.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from "fs";
22

33
import commander from "commander";
4-
import { version } from "@babel/core";
4+
import { version, DEFAULT_EXTENSIONS } from "@babel/core";
55
import glob from "glob";
66

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

0 commit comments

Comments
 (0)