Text import attributes
Limited availability
Module import … with { type: "text" } statements load text data as a string value.
Browser support
- Chrome Not supported Bugs: 494350643
- Chrome Android Not supported
- Edge Not supported
- Firefox 153 Released on 2026-07-21
- Firefox for Android 153 Released on 2026-07-21
- Safari Not supported
- Safari on iOS Not supported
Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.
MDN documentation
Specifications
- Import Text, from TC39 (Ecma International).
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist