Thursday, June 09, 2022

JavaScript Builds: Metro vs WebPack

 Faster JavaScript Builds with Metro | by Rae Liu | The Airbnb Tech Blog | May, 2022 | Medium

"Thanks to the switch to Metro, AirBnB improved our build performance. In development, the time it takes for a simple UI change to be reflected and loaded (Time to Interactive TTI metric) is 80% faster. The slowest production build compiling ~49k modules (JavaScript files) is 55% faster (down from 30.5 minutes to 13.8 minutes).

Metro is the open source JavaScript bundler for React Native.

...the landscape has changed since we evaluated Parcel, Webpack 4, and Metro back in 2018. There are other tools, such as rollup.js and esbuild, that we haven’t explored much, and we know that Metro isn’t a general-purpose JavaScript bundler when compared to Webpack."


"JavaScript Containers"

JavaScript Containers

by Ryan Dahl, creator of node.js and deno

There is a new higher level container emerging for server software: the JavaScript sandbox itself.

Shell : Executables :: JavaScript : WebAssembly

The future of scripting languages is browser JavaScript

JavaScript is the universal scripting language. Due to JavaScript’s universality a new container-like abstraction is emerging that simplifies servers.

I am not claiming that Linux containers are going away. That level of abstraction will always be useful. It’s just rather low-level for much of the “business logic” that people write. When you’re building a website things like systemd configuration are boilerplate.