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

Thinking about this more, I don't think generic imports is an interesting feature unless it is dynamic. I don't see much value in `import doc from './foo.html' as DocumentFragment` if all it does is basically a fetch with type `document`. Why not just fetch it normally? The whole value of the feature comes from being able to run a JS hook and do things like implement HTML modules in a library.

Maybe there's another way we could approach this? How about adding a JS hook that is called for every `import` statement?

-- 
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-323119546

Received on Thursday, 17 August 2017 16:10:27 UTC