- From: Justin Fagnani <notifications@github.com>
- Date: Mon, 12 Aug 2019 14:41:09 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 12 August 2019 21:41:31 UTC
@dfabulich I think the items in your constructive comments are laudable, but I'm optimistic we'll get there just fine starting from basic capabilities first. Any polyfill for this feature, just like with JS modules, is going to essentially require a build step (excluding build-steps in the browser). There's a very simple transform of the importer and CSS file to make this work, but presumably support for the standard semantics will be added to tools that do more on top, like bundling and tree-shaking. For importing individual rules see my CSS References proposal: https://github.com/w3c/csswg-drafts/issues/3714 Again, with this one I expect that tools will adapt to optimize on top of the standard semantics. BTW, for tree-shaking, CSS Modules already give us a huge leap forward: by enabling finer-grained and explicit dependency CSS, we can use the native tree-shaker - the browser doesn't load modules that aren't imported. -- 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/759#issuecomment-520606305
Received on Monday, 12 August 2019 21:41:31 UTC