5 ms·
i'm also a bit confused why e.g. they have an explicit rule that they only use `let` instead of `const` when declaring variables, "for reducing the bundle size"
by 130e13a 3y ago
i'm also a bit confused why e.g. they have an explicit rule that they only use `let` instead of `const` when declaring variables, "for reducing the bundle size", which seems like a bad trade-off in order to save maybe a couple dozen bytes at most?
- ra1231963 3y agoI’m a bit confused why they made it in the first place given the dozens of similar ultra minimal spartan frameworks to choose from that nobody uses (every other comment here is plugging one).
- jhp123 3y agoThis library actually has some pretty unique ideas, like the use of Proxy objects which is not commonplace in javascript frameworks. Even if it didn't, sometimes it's just nice to build your own take on something.
- ra1231963 3y agoProxy objects are absolutely common in js state management frameworks. And yes it’s nice to build something on your own, but this project is clearly aiming to convince other people to use it in their projects.
- pfg_ 3y agoDon't minifiers convert these anyway? const a = 1; let b = 2; console.log(a, b); bun build --minify a.js // bundles this to: var o=1,l=2;console.log(o,l); It's not even using const or let, it's flattened these multiple statements into one 'var' statement
- robertoandred 3y agoOnly if you're targeting super old browsers.