X Tutup
Skip to content

Fix import expression#1321

Merged
Perryvw merged 2 commits intomasterfrom
fix-import-expression
Aug 3, 2022
Merged

Fix import expression#1321
Perryvw merged 2 commits intomasterfrom
fix-import-expression

Conversation

@Perryvw
Copy link
Member

@Perryvw Perryvw commented Aug 1, 2022

Turns out

const abc = import "def";

Was actually translated to:

local abc = Promise.resolve("def")

But instead it should be:

local abc = Promise.resolve(require("def"))

@Perryvw Perryvw merged commit dd33492 into master Aug 3, 2022
@Perryvw Perryvw deleted the fix-import-expression branch August 3, 2022 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup