Re: [w3c/webcomponents] Please revisit HTML Imports (#677)

> import everything as a js dependency is a webpack philosophy, we don't have to see through that bias.

Exactly. It's counter to the existing platform. HTML should be imported via other HTML declarations. To the extent it's created via JS, JS should _create_ the HTML import, and that import should have a DOM interface to get access to the imported tree. But `import doc from "my-element.html"` is super-webpack-y and very counter to existing HTML/CSS/JS architecture and separation of concerns. HTML importing should not happen via JS nor require JS for it to happen. It should be imported declaratively just like external stylesheets.

-- 
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/677#issuecomment-473565815

Received on Saturday, 16 March 2019 17:05:56 UTC