zwitterion icon indicating copy to clipboard operation
zwitterion copied to clipboard

Explain import maps

Open lastmjs opened this issue 5 years ago • 2 comments

lastmjs avatar Aug 22 '19 23:08 lastmjs

I'm not going to do any more work on import maps until more browsers have pledged to it and we get closer to a true release. Or, if we get a polyfill that doesn't require any changes to the syntax that a developer would use for imports. The most popular polyfill currently requires you to write module-shim instead of module in script elements

lastmjs avatar Dec 12 '19 19:12 lastmjs

We could actually use the polyfill right now. Even though it requires the type attribute on script elements to be different from "module", we can just rewrite html files. Turn html files into an AST, find module and replace it with module-shim or whatever it is. But, I still want to wait for public signals from Firefox and Safari...I don't want to risk having this feature deprecated

lastmjs avatar Jan 03 '20 18:01 lastmjs