Import assertions
This feature is discouraged — Import assertions are superseded by import attributes.
Consider using CSS import attributes , JSON import attributes instead.
For more information, see: tc39/proposal-import-attributes/pull/131 (GitHub)
Module import … assert { type: "json" } and import … assert { type: "css" } JavaScript statements load JSON and CSS data.
Status
Discouraged
MDN documentation
Specifications
Browser support
- Chrome ❌
- Chrome Android ❌
- Edge ❌
- Firefox ❌
- Firefox for Android ❌
- Safari ❌ See webkit.org/b/227967
- Safari on iOS ❌ See webkit.org/b/227967
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist