Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will console-importer support return a promise? #14

Closed
jinglen opened this issue Apr 28, 2022 · 1 comment
Closed

Will console-importer support return a promise? #14

jinglen opened this issue Apr 28, 2022 · 1 comment

Comments

@jinglen
Copy link

jinglen commented Apr 28, 2022

Sometime need hold wait before import success, like this.

async () => {
  await $i('jszip')
}
@pd4d10 pd4d10 closed this as completed in 3558bdf May 4, 2022
@pd4d10
Copy link
Owner

pd4d10 commented May 4, 2022

Added $i.esm() method to implement this, see https://github.com/pd4d10/console-importer#import-es-module

Launched in v2.1.0, which is waiting for review.

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

No branches or pull requests

2 participants