console-importer icon indicating copy to clipboard operation
console-importer copied to clipboard

Import local ES6 module

Open andylima opened this issue 8 years ago • 3 comments

The ability to import our own local ES6 modules would be very useful. :)

andylima avatar Mar 17 '17 10:03 andylima

...Or can we already do this?

andylima avatar Mar 17 '17 10:03 andylima

Nice idea.

Actually, when $i is called, this extension create a script tag (for JS) or a link tag (for CSS), and set its src property. So it seems not work to import local modules in this way. Maybe I could do some research for it.

If you have good way to do this, pull request is very welcome :)

pd4d10 avatar Mar 18 '17 02:03 pd4d10

I think that for HTTPS sites script injection (from a Chrome extension) with local script files being injected requires a local HTTPS server running... so maybe this isn't possible.

andylima avatar Mar 18 '17 10:03 andylima