Open thescientist13 opened 1 month ago
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
with
keyword for imports. Chrome successfully unshipped theassert
keyword 👍
Description
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 🤩
Specification
TC39
Additional Signals
Chrome has already moved from the previous
assert
syntax to thewith
syntax, and both JSON and CSS modules are supported in Chrome as well.All browsers are already supportive of CSS and JSON modules.
This has been highly requested in prior interops