-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show Support for JSON Modules #5928
Comments
JSON modules as I understand is part of Import Assertions proposal |
@inoyakaigor Import Assertions are the prerequisite for JSON Modules but allow for more use cases. Would be great if Can I Use shows both. |
To clarify Import Assertions are not part of caniuse right now. If they get added, it should have some keywords to help the JSON people find it. From my brief testing It works in Chrome 91 and Node v17. Firefox throws a very good error stating Import Assertions are not yet supported. It does not work on Safari yet. |
JSON Modules is in addition to the import assertions proposal but separate from it https://github.com/tc39/proposal-json-modules |
Chrome just released version 91, which includes support for JSON modules: https://www.chromestatus.com/feature/5749863620804608
Would be useful to see this on the caniuse website so developers have a sense of whether or not it's supported on their target browsers.
The text was updated successfully, but these errors were encountered: