Software Alternatives & Reviews

Trim the fat: tips for keeping bundle size small 🏋️

Preact.js BundlePhobia
  1. Preact is a fast 3kB alternative to React with the same modern API. Components & Virtual DOM.
    Pricing:
    • Open Source
    This one only applies to React-based projects, but the simplest way to cut out a sizeable chunk from your bundle is to swap React for Preact. There are guides for doing this process in a few steps, and with the preact-compat compatibility layer chances are you won't notice a difference (except for the significantly smaller bundle size!).

    #Javascript UI Libraries #JavaScript #Javascript Utilities & Libraries 83 social mentions

  2. Find the performance impact of adding a npm package to your bundle.
    Beyond this, take a hard look at your dependencies and decide if you really need all the features they provide. Even small packages can stack up over time. Tools like bundlephobia are helpful for finding smaller alternatives to a library with a similar API.

    #JavaScript Tools #JavaScript #Software Development 50 social mentions

Discuss: Trim the fat: tips for keeping bundle size small 🏋️

Log in or Post with