Preact has gotten me excited about web components. Write a component React style, expose as web component, only 3kb weight added.https://twitter.com/aaronshaf/status/800543955267952641 …
-
-
if you do it naively, yes. If you publish everything people need to incorporate into their build to avoid dupes, no.
-
but you should know that, why the troll?

-
for example in webpack, you add an "external" key to webpack lib publish config, app will only bundle one.
-
but that would be something consumed from webpack build statically right? Not via a script tag?
- End of conversation
New conversation -
-
-
for the framework code, each component does not add that
-
plus honestly 3kb per component when you gzip might not be that much of an issue. Shared is ideal though
-
ehhhh, that would become a big deal pretty fast :P luckily we don't have to have that trade-off
-
gzip doesn't make the code parse and evaluate in 0 time unfortunately.
-
3kb of code is far from problematic
-
I like to know where the goalposts are, that's all ;)
-
they tend to move rapidly.
-
welcome to programming :P
- 6 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.