A 340-line configuration accumulated between 2017 and 2021, replaced by a Vite config of 24 lines, and the deletion took longer than the replacement. Most of the file…
A variable font covering every script is several hundred kilobytes, and a site rendering English and Turkish needs a fraction of it. Dropping layout features is where the…
A Vite plugin is a Rollup plugin with extra optional hooks, so the ordering rules and the hook names come from Rollup’s documentation rather than Vite’s. The enforce…
Building a package rather than a site means externalising the framework, emitting several formats, and not bundling anything the consumer already has. Forgetting external is the mistake that…
webpack 4 numbered modules in resolution order, so adding one import renumbered everything after it and changed the vendor chunk hash. Separating the runtime is the other half:…
JSX compiled to React.createElement required React to be in scope; the new transform imports what it needs itself. The output is marginally smaller and the ceremony disappears, and…