-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussion issue for community tooling, polyfills, etc. #146
Comments
Closes #60. Closes #108. We'll discuss in #146 instead! Co-Authored-By: Guy Bedford <[email protected]>
Hi there! At https://open-wc.org/ we aim to help people with building web components, and in general modern web development with fewer build steps. We think import maps have great potential in helping with that, especially to use es modules during development without requiring any code transformations. That's why we're working on tools across the front-end stack for import map support. We want to explore different workflows and see how it can help developers. It's still early stages, but this is what we have so far:
We're also planning on releasing a standalone rollup plugin for resolving modules based on a provided import map, and we're looking to have a setup for testing as well. We're hoping that we can get people to use and experiment with these tools, so that there is more valuable input for progressing the standard. |
@LarsDenBakker, amazing will take a look at what you did shortly :) @domenic, thank you for the mention in the readme and this issue. Please keep in mind modules I have written around importMap are not up to date with latest spec and may have been biased by my understanding of specs at that time. |
Guy Bedford and I are currently creating a package called Additionally, for those using jspm@2, you can use |
i made an import map generator that works today
intended to be used with guy bedford's amazing import maps polyfill: es-module-shims |
Closes WICG#60. Closes WICG#108. We'll discuss in WICG#146 instead! Co-Authored-By: Guy Bedford <[email protected]>
Also, I guess this is not tooling (but still community related?), but I wrote a blog that has a section on import maps as well: https://dev.to/open-wc/on-the-bleeding-edge-3cb8 |
I maintain a project called https://github.com/joeldenning/import-map-overrides |
I also maintain a project called import-map-deployer, which is a server that is called from CIs to update external import maps. I've used it for production deployments for four years now (even before import maps existed, we had a similar thing called sofe!) https://github.com/CanopyTax/import-map-deployer |
One more package related to importmap: @jsenv/importmap-eslint-resolver: an import resolver working with eslint-plugin-import to apply importmap when resolving your import. How it works: You configure where your importmap file in JSON format is and this resolver takes it into account when eslint resolves your import. |
@domenic we're still really excited about import maps, but holding off on promoting our tools until there is a bit more perspective on import maps getting shipped (unflagged) in browsers. Is this topic still under discussion somewhere? |
You can watch https://bugs.chromium.org/p/chromium/issues/detail?id=848607 to see Chrome's progress on implementation. |
Thanks! |
I think this might be the best place for checking in on FF - mozilla/standards-positions#146 |
I wrote a webpack plugin to help generate import-maps from the result manifest, I originally forked from webpack-manifest-plugin. It's proven useful so far, as it let's us easily build patch files for import-map-deployer, etc. One of the big challenges is we wanted to publish files to a CDN and use hashed filenames, so this tool let's you build the import-map or an import-map delta easily no matter how you have file hashing set up, in fact we use a placeholder to allow us to rewrite the value path prefixes on the fly depending on the environment (qa cdn vs. prod etc.). Hopefully it can help others! https://github.com/zleight1/webpack-import-map-plugin |
Hi folks, I've attempted to incorporate the latest updates people have mentioned here in #231. I've also tried to remove packages that are marked as deprecated, including some that @LarsDenBakker mentioned, and removed mention of Pika, which @thepassle mentioned, as their current website doesn't seem to discuss import maps. Any thoughts or review would be appreciated! |
I created rollup-plugin-import-maps, it is more like a polyfill but is used at build-time rather than at runtime. |
importly now generates an import map from npx importly < package-lock.json > importmap.json |
Hi folks, I've created CLI/API for building importmap from runtime node directories and a scheme for naming runtime packages. Idea is as follows: traverse filesystem for packages as node does for files, this builds something like package-lock.json, then instead of naming package as directory name, lib uses package package.json name and version and all dependencies in recursive way, creating this way universal name (package name + version, dependencies names + versions), something like rust cargo lock's, also by the way resolve packages imports/exports with provided environment scopes (import, browser, ..) , computes possibly importable files integrities. CLI produces importmap with directories names, another importmap with global names and spec file with information how global names maps to package specifiers (github:user3232/[email protected], npm:[email protected], ..). Spec files may be used to fetch packages and serve them anywhere, if two importmaps uses same global name that only means they use exacly same runtime package (and context), so multiple global importmaps (or apps) may safely use same static files server. Additionally if files server files was for example tempered, app importmap will have different integrity, so its safe. Sorry that I've gave such lengthy description here but I wish to here also your thoughts. Lib is not polished but works. Check it here: https://github.com/user3232/importmap . |
I want to consolidate #60 and #108 into a single issue that is more explicitly for discussion, and has a title that is general and not focused on specific ecosystems or files.
Also, I'll be putting up a pull request shortly that creates a section in the README for links to things people have created in this space.
So yeah, let's discuss all the cool things people are creating in this space!
The text was updated successfully, but these errors were encountered: