kill-a-byte / Makeyourlibrarysmaller

Reduce Lib Size
4 stars 0 forks source link

Splittable #1

Open lukeed opened 7 years ago

lukeed commented 7 years ago

Add Splittable?

It's the new kid on the block, but produces even smaller bundles than Rollup, supports CommonJS out of the box, and allows for code-splitting (like WebPack).

developit commented 7 years ago

I reeeally need to look into this one. Going to test it out with preact.

lukeed commented 7 years ago

@developit I've been working on a boilerplate locally. Nothing fancy, but been getting some great reductions.

developit commented 7 years ago

Awesome, would love to see that just to get an idea of how it works.

developit commented 7 years ago

I actually finally used Rollup in an app (I've only ever used it for libraries) when I redid preact-todomvc and it was neat to get below the webpack limits :D

lukeed commented 7 years ago

That was the first thing I did when I checked out your TodoMVC 😜

I think all the prior conditioning of "Don't touch other devs' build tools!" tricked me into not opening a PR. Should've known that the same rules don't apply to you 😉

developit commented 7 years ago

ah no those are the best PRs, I hate fiddling with build tooling haha

I'd be curious to see how it stacks up! The current output via Rollup is 6kb but it could definitely be smaller.

kennetpostigo commented 7 years ago

Using splittable for libraries? I think its focused on applications but I may be wrong

lukeed commented 7 years ago

@kennetpostigo A module is a module is a module :)