diff --git a/packages/cli/src/swc/options.ts b/packages/cli/src/swc/options.ts index 682bedf..7c3340d 100644 --- a/packages/cli/src/swc/options.ts +++ b/packages/cli/src/swc/options.ts @@ -1,7 +1,19 @@ import commander from "commander"; -import { DEFAULT_EXTENSIONS, version as swcCoreVersion } from "@swc/core"; +import { version as swcCoreVersion } from "@swc/core"; import type { Options } from "@swc/core"; +const DEFAULT_EXTENSIONS = [ + ".js", + ".jsx", + ".es6", + ".es", + ".mjs", + ".ts", + ".tsx", + ".cts", + ".mts", +]; + const pkg = require("../../package.json"); let program: commander.Command;