tc39 / proposal-module-declarations

JavaScript Module Declarations
https://tc39.es/proposal-module-declarations
MIT License
373 stars 7 forks source link

Binary content #8

Open arcanis opened 3 years ago

arcanis commented 3 years ago

I suspect this is slightly out of scope, but at the same time it's close enough that it may be worth a mention. Would module fragments be good candidates to also add support for arbitrary binary data within JS files? For instance:

littledan commented 3 years ago

I do see binary content as out of scope--I really can't see how it can work syntactically in a JS file. I'd prefer an approach more like https://github.com/wpack-wg/bundled-responses for that use case.