Re: [w3c/webcomponents] HTML Modules (#645)

@TakayoshiKochi - I didn't mean that anything like this would be supported in a MVP version of this spec:

```js
import array from './foo-array.txt' as Array;
```

There's no MIME type for Array, so this would not be supported. I think an MVP could just cover clear-cut cases like text/html -> DocumentFragment and text/css -> CSSStylesheet. But I don't think there's much value in the feature if that's all it does. You may as well just fetch them. The whole value of generic imports comes from being able to run script and do things like process other dependencies in the HTML, attach the stylesheet to the main document, etc.

-- 
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/645#issuecomment-323118187

Received on Thursday, 17 August 2017 16:05:52 UTC