Skip to content
Browse files

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

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 in

Closes #4315.
Closes w3c/webcomponents#770.
  • Loading branch information...
littledan authored and domenic committed May 17, 2019
1 parent 18f6954 commit db03474b8b87aab3454ff7d5c1f4a5f044b4395c
Showing with 260 additions and 87 deletions.
  1. +260 −87 source

0 comments on commit db03474

Please sign in to comment.
You can’t perform that action at this time.