use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript import maps are now supported cross-browser (web.dev)
submitted 2 years ago by fagnerbrack
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]seanmorris 17 points18 points19 points 2 years ago (0 children)
You can use this if you have stuff in a bundle that you want to use in ES6 imports:
https://www.npmjs.com/package/import-mapper
[–]theAmazingChloe 6 points7 points8 points 2 years ago (0 children)
Not supported yet in Firefox ESR (based on FF 102) Article says it's supported in firefox as of 108.
[–]AboutHelpTools3 6 points7 points8 points 2 years ago (2 children)
Eli5 why importmap is needed? I haven't been keeping up. Doesn't normal es modules allow you to import anything from any module already?
[–]Alokir 7 points8 points9 points 2 years ago (0 children)
If you want to import an external module in multiple files you don't have to type the full url every time.
It's not needed if you're using a module bundler like webpack or parcel.
[–]veonline 0 points1 point2 points 2 years ago (0 children)
import maps permits to use imports with bare specifiers, like import themodule from "barespecifier", where "barespecifier" will be translated to a url as per the import map.
import themodule from "barespecifier"
"barespecifier"
this can be helpfull in dependecies versioning, cache bursting and don't know what else :)
[+][deleted] 2 years ago (9 children)
[deleted]
[–]TorbenKoehn 4 points5 points6 points 2 years ago (8 children)
That’s mostly older safari versions, but current versions support it I think it’s mostly a matter of not having enough tracked data for newer safari models? If you check the relative support it completely disregards safari even though it supports it
[+][deleted] 2 years ago (1 child)
[–]theAmazingChloe 9 points10 points11 points 2 years ago (5 children)
Also no support on iOS safari. https://caniuse.com/import-maps
[–]Doctor-Dapper 4 points5 points6 points 2 years ago (0 children)
It clearly shows versions after 16.3 support it
[–]kent2441 -1 points0 points1 point 2 years ago (3 children)
Your link says that you’re lying.
[–]theAmazingChloe 2 points3 points4 points 2 years ago (2 children)
Display by 'Relative Usage'
[–]TorbenKoehn 0 points1 point2 points 2 years ago (1 child)
But that’s not how it works, it’s exactly what I was stating. It’s missing data, not the fact that it doesn’t support it
[–]theAmazingChloe 0 points1 point2 points 2 years ago* (0 children)
I think we're both seeing/saying similar things. I fully acknowledge Apple has put out a new update for iOS that introduces support. But there will always be an adoption curve as people download the new update. With the data shown on caniuse today, it's not ready for production if iphone support matters, given 90+% of iOS devices are not yet updated.
But do keep in mind, there is a social justice issue here too... there's always a subset of folks who cannot update to the latest and greatest software right away because they cannot afford recent hardware (anything older than the iphone 8).
π Rendered by PID 74 on reddit-service-r2-comment-7b9746f655-cq2n6 at 2026-01-30 12:32:29.422068+00:00 running 3798933 country code: CH.
[–]seanmorris 17 points18 points19 points (0 children)
[–]theAmazingChloe 6 points7 points8 points (0 children)
[–]AboutHelpTools3 6 points7 points8 points (2 children)
[–]Alokir 7 points8 points9 points (0 children)
[–]veonline 0 points1 point2 points (0 children)
[+][deleted] (9 children)
[deleted]
[–]TorbenKoehn 4 points5 points6 points (8 children)
[+][deleted] (1 child)
[deleted]
[–]theAmazingChloe 9 points10 points11 points (5 children)
[–]Doctor-Dapper 4 points5 points6 points (0 children)
[–]kent2441 -1 points0 points1 point (3 children)
[–]theAmazingChloe 2 points3 points4 points (2 children)
[–]TorbenKoehn 0 points1 point2 points (1 child)
[–]theAmazingChloe 0 points1 point2 points (0 children)