From b23d2a2f8841c9095bf3cbca5497c515eb6a51b4 Mon Sep 17 00:00:00 2001 From: limbo <43649186+HUAHUAI23@users.noreply.github.com> Date: Sat, 27 Jan 2024 17:52:31 +0800 Subject: [PATCH] fix(server): fix compiled code that doesn't support await import (#1828) --- server/src/utils/lang.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/utils/lang.ts b/server/src/utils/lang.ts index 44922d8c38..fa7efa5a7b 100644 --- a/server/src/utils/lang.ts +++ b/server/src/utils/lang.ts @@ -13,7 +13,7 @@ export function compileTs2js(source: string, name: string) { removeComments: true, inlineSourceMap: true, }, - name, + `${name}.ts`, undefined, name, )