You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
-[`import:` URL loads and origins](#import-url-loads-and-origins)
53
53
-[`import:` URL interaction with other loading infrastructure](#import-url-interaction-with-other-loading-infrastructure)
54
+
-[Community polyfills and tooling](#community-polyfills-and-tooling)
54
55
-[Acknowledgments](#acknowledgments)
55
56
56
57
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -873,6 +874,19 @@ Several implementer questions come up around how `import:` URLs are envisioned t
873
874
874
875
The high-level summary is that any fetch of an `import:` URL should be thought of as sugar for a series of if-then-else statements that in turn fetch the mapped-to URLs. For example, each fetch will pass through the service worker, until one succeeds.
875
876
877
+
## Community polyfills and tooling
878
+
879
+
Several members of the community have been working on polyfills and tooling related to import maps. Here are the ones we know about:
880
+
881
+
*[@import-maps/generate](https://www.npmjs.com/package/@import-maps/generate) generates an import map from your `yarn.lock`.
882
+
*[@jsenv/node-module-import-map](https://www.npmjs.com/package/@jsenv/node-module-import-map) generates an import map from your `package.json` and `node_modules/` directories.
883
+
*[importly](https://www.npmjs.com/package/importly) generates an import map from a config file.
884
+
*[Built-in Module Demo (with Rollup)](https://glitch.com/edit/#!/rollup-built-in-modules) contains code for a [Rollup](https://rollupjs.org/) plugin that generates an import map, focused on built-in module polyfills.
885
+
*[SystemJS](https://github.com/systemjs/systemjs) provides a polyfill for import maps using `<script type="system-importmap">`.
886
+
*[Deno](https://github.com/denoland/deno) is a JavaScript/TypeScript runtime with [built-in support for import maps](https://deno.land/manual.html#importmaps).
887
+
888
+
Feel free to send a pull request with more! Also, you can use [#146](https://github.com/WICG/import-maps/issues/146) in the issue tracker for discussion about this space.
889
+
876
890
## Acknowledgments
877
891
878
892
This document originated out of a day-long sprint involving [@domenic](https://github.com/domenic), [@hiroshige-g](https://github.com/hiroshige-g), [@justinfagnani](https://github.com/justinfagnani), [@MylesBorins](https://github.com/MylesBorins), and [@nyaxt](https://github.com/nyaxt). Since then, [@guybedford](https://github.com/guybedford) has been instrumental in prototyping and driving forward discussion on this proposal.
0 commit comments