Skip to content

Dynamic import support #1251

@DoctorGester

Description

@DoctorGester

image

Currently dynamic import expressions are not supported: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_import

I think const x = import("dog") can be transpiled to an equivalent of local x = Promise.resolve(require("dog"))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions