Skip to content

System.resolve can be async #2438

Closed
Closed

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.

Activity

  1. changed the title [-]System.resolve should be async like `import.meta.resolve`[/-] [+]System.resolve can be async[/+] on Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions