Skip to content

[BUG] [1.4.0.1] Deferred import bindings break after await statements. #7662

@trusktr

Description

@trusktr

Found a funky one. Basically, the following code describes the issue, where the React variable becomes undefined after the await statement:

main()
async function main() {
    import React from 'react'
    import startup from 'awaitbox/meteor/startup'

    console.log(' --- React?', React) // defined. All is fine.
    await startup()
    console.log(' --- React?', React) // undefined! Uh oh!
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions