From ca5ffb90473f9243a2e58f1da8ca977f127f4c61 Mon Sep 17 00:00:00 2001 From: liuyang0826 <1161906592@qq.com> Date: Wed, 30 Aug 2023 15:17:31 +0800 Subject: [PATCH] fix: change "__tla" to `options.promiseExportName` (#36) --- src/transform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transform.ts b/src/transform.ts index dc11f12..476fede 100644 --- a/src/transform.ts +++ b/src/transform.ts @@ -249,7 +249,7 @@ export function transformModule( makeArrowFunction( ["m"], [ - makeStatement(makeAwaitExpression(makeMemberExpression("m", "__tla"))), + makeStatement(makeAwaitExpression(makeMemberExpression("m", options.promiseExportName))), makeReturnStatement(makeIdentifier("m")) ], true