From ab47569dd6339a11bcdf28600429293cf5cdf5c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Thu, 1 Feb 2024 19:23:20 +0900 Subject: [PATCH] fix options --- packages/cli/src/swc/options.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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;