Rollup plugin that uses esbuild for fast transpilation and minification, integrated into the bob-esbuild build system. Current stable version is 4.0.0. It wraps esbuild's transform API and integrates with rollup, offering a simpler alternative to rollup-plugin-esbuild. Key differentiators: provides default behavior for TypeScript and JSX, automatic detection of tsconfig, and supports custom loaders. Part of the bob monorepo which includes bob-ts and bob-tsm. Released as needed, with recent patches focusing on TypeScript export ordering and package.json handling.
npm install bob-esbuild-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows minimal setup to bundle a TypeScript file using esbuild transformation via rollup.
Update esbuild and rollup to compatible versions.
Replace transform options with loaders configuration.
Use bob-ts (buildCode) or bob-tsm (tsm) for type generation, or run tsc separately.
Use import or const { esbuildPlugin } = require(...)Run npm install bob-esbuild-plugin, ensure package.json has it in dependencies.
Change to import { esbuildPlugin } from 'bob-esbuild-plugin'Run npm install esbuild