Import Assertions Update
Myles Borins, GitHub
Daniel Ehrenberg, Igalia in partnership with Bloomberg
Sven Sauleau, Babel
Daniel Clark, Microsoft
Proposal recap
import json from "./foo.json" assert { type: "json" };
import("./foo.json", { assert: { type: "json" } })
Unsupported module types
import foo from "./bar" assert { type: "jsonn" };
https://github.com/tc39/proposal-import-assertions/issues/27
Make the host provide a list of supported types?
Type restrictions problematic for some hosts
What to do?
End of presentation
Slides after this are just in case those topics arise.
Should Source Text Module type assertions be reserved?
import "./foo1.js" assert { type: "js" };
import "./foo2.js" assert { type: "javascript" };
https://github.com/tc39/proposal-import-assertions/issues/49