What problem does this feature solve?
Support the new Import Bytes proposal — allowing developers to import raw binary files directly as Uint8Array.
References
What does the proposed API of configuration look like?
Example:
import buf from "./a.png" with { type: "bytes" };
console.log(buf instanceof Uint8Array); // true
What problem does this feature solve?
Support the new Import Bytes proposal — allowing developers to import raw binary files directly as
Uint8Array.References
What does the proposed API of configuration look like?
Example: