pd4d10 / console-importer

Easily import JS and CSS resources from Chrome console.
https://chrome.google.com/webstore/detail/console-importer/hgajpakhafplebkdljleajgbpdmplhie
MIT License
863 stars 58 forks source link

Will console-importer support return a promise? #14

Closed jinglen closed 2 years ago

jinglen commented 2 years ago

Sometime need hold wait before import success, like this.

async () => {
  await $i('jszip')
}
pd4d10 commented 2 years ago

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.