interop
interop copied to clipboard
Import Attributes
Description
Taken from https://github.com/web-platform-tests/interop/issues/436
Import attributes are a way to import JSON and CSS modules in JavaScript. (and potentially more in the future)
They would help enable cross-related Interop requests at a foundational level and would provide a full suite of capabilities in one go if prioritized for Interop 2025 all together 🤩
- https://github.com/web-platform-tests/interop/issues/705
- https://github.com/web-platform-tests/interop/issues/703
Specification
TC39
Additional Signals
Chrome has already moved from the previous assert syntax to the with syntax, and both JSON and CSS modules supported in Chrome as well.
All browsers are already supportive of CSS and JSON modules.
This has been highly requested in prior interops
- https://github.com/web-platform-tests/interop/issues/436
- https://github.com/web-platform-tests/interop/issues/236
https://wpt.fyi/results/html/semantics/scripting-1/the-script-element/import-attributes?label=master&label=experimental&aligned for the very basic level
Yay, TC39 just moved Import Attributes and JSON Modules to Stage 4!
Congrats to @NicoloRibaudo on advancing both Import Attributes & JSON Modules to Stage 4 at @TC39 today 🎉
It introduces the
withkeyword for imports. Chrome successfully unshipped theassertkeyword 👍
Thank you for proposing Import Attributes for inclusion in Interop 2025.
We are pleased to let you know that this proposal was accepted as part of the Modules focus area. You can follow the progress of this focus area on the Interop 2025 dashboard.
For an overview of our process, see proposal selection. Thank you for contributing to Interop 2025!
Posted on behalf of the Interop team.