Skip to content
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

Open
Nicholas-Westby opened this issue Jun 1, 2021 · 4 comments
Open

Show Support for JSON Modules #5928

Nicholas-Westby opened this issue Jun 1, 2021 · 4 comments

Comments

@Nicholas-Westby
Copy link

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.

@inoyakaigor
Copy link
Contributor

JSON modules as I understand is part of Import Assertions proposal

@vwkd
Copy link
Contributor

vwkd commented Oct 3, 2021

@inoyakaigor Import Assertions are the prerequisite for JSON Modules but allow for more use cases.

Would be great if Can I Use shows both.

@FossPrime
Copy link
Contributor

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.

@runspired
Copy link

JSON Modules is in addition to the import assertions proposal but separate from it https://github.com/tc39/proposal-json-modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants