From d5c0dec40c1bb46bb5674242aa0a85f51c0826f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Sat, 18 Feb 2023 20:42:46 +0900 Subject: [PATCH] fix(bindings/node): Treat `.cts` and `.mts` as input by default (#6959) **Related issue:** - Closes https://github.com/swc-project/swc/issues/6958. --- node-swc/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node-swc/src/index.ts b/node-swc/src/index.ts index d673f1e6f2a4..e14587d14c2c 100644 --- a/node-swc/src/index.ts +++ b/node-swc/src/index.ts @@ -466,7 +466,9 @@ export const DEFAULT_EXTENSIONS = Object.freeze([ ".es", ".mjs", ".ts", - ".tsx" + ".tsx", + ".cts", + ".mts" ]); function toBuffer(t: any): Buffer {