Import Bytes (Bytes Modules)
- Category
- JavaScript
- Type
- Chromium catches up
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
Summary
A TC39 proposal to add module `import … with { type: "bytes" }` statements to JavaScript. The import attribute loads raw data as an immutable ArrayBuffer value.
Standards & signals
- Specification: https://tc39.es/proposal-import-bytes
- Firefox: Positive
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://issues.chromium.org/issues/512749478
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=import-bytes-bytes-modules
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Import%20Bytes%20(Bytes%20Modules)
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Import%20Bytes%20(Bytes%20Modules)
- Baseline status: https://webstatus.dev/?q=Import%20Bytes%20(Bytes%20Modules)
Explainers: https://github.com/tc39/proposal-import-bytes