Re: [w3c/webcomponents] HTML, CSS, and JSON modules shouldn't solely rely on MIME type to change parsing behavior (#839)

If we can get a change through to allow the `with noexecute` syntax, I wonder if directly supporting a host-defined type, like `as json`, might just be preferable. Then you can choose the representation in cases where multiple would apply. I've seen some ideas for `as bytes` before, which allows userland building of arbitrary objects, and could be applied to any kind of file.

ie:
```js
import styles from './styles.css' as css;
import rawStyles from './styles.css' as bytes;
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/839#issuecomment-540661303

Received on Thursday, 10 October 2019 16:15:36 UTC