Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

New JSON module script feature #1246

Merged
merged 3 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions features/css-modules.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CSS module scripts
description: 'CSS module scripts allow CSS code to be organized into reusable units. Other modules use `import ... with {type: "css"}` to load CSS modules as constructable stylesheets.'
name: CSS import attributes
description: 'Module `import ... with { type: "css" } statements load CSS modules as constructable stylesheets. Also known as CSS module scripts and formerly known as import assertions.'
spec: https://html.spec.whatwg.org/multipage/webappapis.html#css-module-script
usage_stats: https://chromestatus.com/metrics/feature/timeline/popularity/3805
8 changes: 8 additions & 0 deletions features/json-modules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: JSON import attributes
description: 'Module `import ... with { type: "json" }` statements load JSON data. Also known as JSON module scripts and formerly known as import assertions.'
spec: https://html.spec.whatwg.org/multipage/webappapis.html#json-module-script
compat_features:
# TODO: Include when https://github.com/web-platform-dx/web-features/issues/1173
# is resolved.
# - javascript.statements.import
- javascript.statements.import.import_attributes.type_json
11 changes: 11 additions & 0 deletions features/json-modules.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Generated from: json-modules.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
chrome: "123"
chrome_android: "123"
edge: "123"
safari: "17.2"
safari_ios: "17.2"