Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 4c09dfa

Browse files
committed
Add a section on community polyfills and tooling
Closes #60. Closes #108. We'll discuss in #146 instead!
1 parent 080c4a1 commit 4c09dfa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ _Or, how to control the behavior of JavaScript imports_
5151
- [Further implementation staging](#further-implementation-staging)
5252
- [`import:` URL loads and origins](#import-url-loads-and-origins)
5353
- [`import:` URL interaction with other loading infrastructure](#import-url-interaction-with-other-loading-infrastructure)
54+
- [Community polyfills and tooling](#community-polyfills-and-tooling)
5455
- [Acknowledgments](#acknowledgments)
5556

5657
<!-- 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
873874

874875
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.
875876

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+
876890
## Acknowledgments
877891

878892
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

Comments
 (0)