Node esbuild plugin for Size Limit, a lightweight tool to measure JavaScript bundle sizes. Current stable version is 0.4.0, released with major bump to size-limit v11. This plugin enables size-limit to process Node.js bundles using esbuild, an extremely fast bundler and minifier. It integrates with size-limit's configuration system and supports ESM and CJS outputs. Key differentiators: leverages esbuild's speed for CI size checks, supports modern Node.js (^12.20.0 || ^14.18.0 || >=16.0.0), ships TypeScript types, and is part of the un-ts/size-limit ecosystem. Release cadence is irregular, with major breaking changes tracking size-limit major updates. Compared to alternatives like webpack or rollup plugins, it offers faster builds for Node-focused targets.
npm install size-limit-node-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure size-limit with the esbuild plugin to check a Node bundle size.
Use ES module imports (import) or switch to dynamic import().
Upgrade size-limit to v11 or later.
Use size-limit v8 or later, or stick with size-limit-node-esbuild@0.1.x.
Use 'plugin' (singular) in the config object, as size-limit expects.
Adjust esbuild options or upgrade to v0.3.1+ which inherits default config properly.
Use import statement or dynamic import(). If using CommonJS, downgrade to v0.2.x or use a dynamic import wrapper.
Run `pnpm add -D size-limit-node-esbuild` (or npm/yarn equivalent).
Use import sizeLimitNodeEsbuild from 'size-limit-node-esbuild' (default export).