Skip to content

Commit

Permalink
fix: change "__tla" to options.promiseExportName (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyang0826 authored Aug 30, 2023
1 parent 8af8213 commit ca5ffb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export function transformModule(
makeArrowFunction(
["m"],
[
makeStatement(makeAwaitExpression(makeMemberExpression("m", "__tla"))),
makeStatement(makeAwaitExpression(makeMemberExpression("m", options.promiseExportName))),
makeReturnStatement(makeIdentifier("m"))
],
true
Expand Down

0 comments on commit ca5ffb9

Please sign in to comment.