Import assertions
Discouraged
This feature is discouraged. Consider using CSS import attributes , JSON import attributes instead. For the rationale, see:
Module import … assert { type: "json" }
and import … assert { type: "css" }
JavaScript statements load JSON and CSS data.
Learning resources on MDN
Browser support
- Chrome ❌
- Chrome Android ❌
- Edge ❌
- Firefox ❌ See bugzil.la/1720570
- Firefox for Android ❌ See bugzil.la/1720570
- Safari ❌ See webkit.org/b/227967
- Safari on iOS ❌ See webkit.org/b/227967
Specifications
View web-platform-tests results for this feature - View the feature source file - Edit the feature - Report an issue about this feature