I’ve read through this documentation on MDN regarding the import
statement available for JS modules:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import/with
Both of the pages above give JSON and CSS as examples of additional resource types that can be loaded with the import statement:
import data from "https://example.com/data.json" with { type: "json" };
import styles from "https://example.com/styles.css" with { type: "css" };
However, they both also hint at there being more types, or at least they’re a bit non-committal about it:
“To import JSON, CSS, or other types of resource…”
“The type attribute also supports other module types.”
What are all of the import types could I reasonably expect to be supported in a browser?