JSON module support · whatwg/html@db03474 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Commit db03474

littledandomenic

authored and

committed

JSON module support

This commit adds JSON modules as a single default export, with parse errors checked before instantiating the module graph. As infrastructure, this divides the "module script" concept into "JavaScript module scripts" and "JSON module scripts". Most of the spec's existing uses of "module script" become "JavaScript module script". JSON module scripts are fetched in the same way as JavaScript module scripts, e.g. with the "cors" mode and using strict MIME type checking. They use the Synthetic Module Record defined inwhatwg/webidl#722.Closes #4315.Closes WICG/webcomponents#770.

File tree

1 file changed

lines changed

1 file changed

lines changed