Skip to content

System.resolve can be async #2438

Description

@wenerme

Description of Proposed Feature

System.resolve exists before import.meta.resolve, using the sync mode, but import.meta.resolve is async mode, System should support async resolve, this make the complex resolve easier.

In what way would you use it?

Maybe use System.resolveAsync as a transition hook, then change the resolve to async in next major version ?
Change all internal resolve use to async version, some of them should already just work with async.

Or just change the resolve to async.


I thought resolve is async when I see this issues nodejs/node#31032 , seems the spec says it's sync https://html.spec.whatwg.org/#integration-with-the-javascript-module-system .
SystemJS should allowed System.resolve be async. I will check this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions