martok / palefill

Inject Polyfills for various web technologies into pages requiring them
https://martok.github.io/palefill/
Mozilla Public License 2.0
79 stars 9 forks source link

`import` keyword polyfill? #34

Closed roytam1 closed 2 years ago

roytam1 commented 2 years ago

It seems that more and more websites started using import keyword in their javascript frameworks. I wonder if palefill will support this?

martok commented 2 years ago

ES6 modules (the import keyword) have been supported for ages and work as expected.

Dynamic module imports (the import() function) are not something that is possible in a polyfill, this needs to be implemented in the JS engine. See UXP issue #1691 for details.