#javascript module idea: browserify transform to transpile CommonJS modules to ES6 modules. use in production piped to rollupify, #winning.
-
-
Replying to @ahdinosaur
because ES6 modules are a terrible idea, but http://rollupjs.org/ seems cool and i'd love to use it with CJS and browserify.
1 reply 0 retweets 0 likes -
Replying to @ahdinosaur
@yoshuawuyts think of all the bytes you'd save! ;) (this is me saying i'm not sure i can fussed to write this module myself)2 replies 0 retweets 0 likes -
Replying to @ahdinosaur
haha, but only if you have fat deps :p - could prob save some bytes, but https://github.com/yoshuawuyts/choo/blob/master/examples/mailbox/client.js … would prob not work in ES6 :(
1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
why wouldn't it work? the point would be to remove unnecessary module closures (38+ bytes per module) and unused module exports
2 replies 0 retweets 0 likes -
Replying to @ahdinosaur @yoshuawuyts
still you might be right that it's not worth it, to be honest i haven't done enuf benchmarks, even so it's only *nice to have*.
1 reply 0 retweets 0 likes
haha; maybe? I think if it works well it's def worth it - but ummm with choo there's so little unused code (I think) :O
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.