importly
importly copied to clipboard
sweet "on the fly" action
okay here's my super evil-genius-level idea
<script type=importly src="/package-lock.json"></script>
<script type=module-shim defer src="/my-cool-app.js"></script>
<script defer src="/node_modules/importly/x/on-the-fly.js"></script>
<script defer src="/node_modules/es-module-shims/dist/es-module-shims.js"></script>
and that's it. no build step required!!! :fire::guitar:
- importly would operate 100% inside the browser
- it would cache the importmap into localStorage, so it only has to generate on the first run
- it would do a checksum on the package-lock.json, and if it changes: clear the cache!
- sooooo raaaaaad!!