ProjectEvergreen / greenwood

Greenwood is your workbench for the web, embracing web standards from the ground up to empower your stack from front to back.
https://www.greenwoodjs.io
MIT License
96 stars 9 forks source link

deprecate import maps shim for development #1114

Open thescientist13 opened 1 year ago

thescientist13 commented 1 year ago

Type of Change

Enhancement

Summary

With both Chrome and Firefox now natively supporting import maps, there is less of a need to autoload es-module-shims when running greenwood develop. https://caniuse.com/?search=importmap

Screen Shot 2023-05-19 at 7 41 26 PM

Details

So we would want to do the following:

  1. [ ] Remove the shim JavaScript from being added to the page
  2. [ ] Remove the logic for adding / remove the shim attributes from <script> tags
  3. [ ] Remover the dependency from package.json
  4. [ ] Update the How It Works section of the docs to call out support level?
  5. [ ] Could we get by supporting this if it doesn't cover Safari 15.x? Perhaps we could put it into our polyfills plugin?

Related, we could probably drop the Polyfill plugin in greenwood.config.js for the website too, but could make that another PR.