DEV Community

Discussion on: Import Maps: Why Nobody Talks About Them (But Maybe Should)

Collapse
 
xwero profile image
david duymelinck

MDN shows Firefox doesn't support multiple import maps. And Safari supports import maps.
So you can use them on most browsers with the caveat that it is a single import map.

The biggest problem I see with import maps, or any import functionality that allows third party websites, are toolchain attacks. With backend languages, like Go, It is safer because the app goes through a build process.
If a third party website is taken over by malicious people and a library is imported from it, there will be a certain amount of time your site could host malware until it the import is changed.