by Waterluvian · 8y ago · 0 comments
On the other hand, it looks like we're streamlining some verbosity. I just hope we can be okay with the right balance and we don't end up with a really terse looking language.
What about the syntax do you find confusing? The rest is all just ES6 + class properties.
static getDerivedStateFromProps(nextProps, prevState)
Instead of getDerivedStateFromProps(nextProps)
Was it to prevent people from mutating the object perhaps?Hope this is clearer now!
Even on an old machine I view bundle times of more than 30 seconds (without minification) as suspicious.
Browserify does it much more quickly.
Edit: I should say bundler != tranpiler. A bundler may or may not be implemented as a compiler. In the end it's just fancy concatenation and code generation, whereas a transpiler (going from one language to another) requires parsing to an AST
Moreover, the full build times are, at least in my experience with webpack starter packs for side projects and much larger webpack builds at work, only a cost you pay when deploying or setting up a dev environment for the first time. My local dev environments recompile only the parts of the codebase that they need to, and that usually happens quickly enough that it’s ready by the time I go to my browser and refresh.