An esbuild transformer for the Cogs build system. This package integrates esbuild bundling/minification into Cogs pipelines. It is a thin wrapper around esbuild's transform API, optimized for speed and simplicity. The current version is 1.0.10 with no recent updates (likely stable). Unlike other Cogs transformers (ts, babel), this one leverages esbuild's native speed and TypeScript/JSX support. It is designed for projects already using Cogs.
npm install cogs-transformer-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure the esbuild transformer in a Cogs file with common options.
Pass a plain object as argument to the transformer factory.
Ensure Cogs is updated to version 3 or higher.
Use Cogs entry points and plugins to achieve bundling.
Set jsx: 'preserve' or use jsxFactory/jsxFragment options.
Remove platform option; configure target platform via Cogs settings.
Run `npm install cogs-transformer-esbuild --save-dev`
Use `import cogsTransformerEsbuild from 'cogs-transformer-esbuild'` (default import).
Remove jsxImportSource; use jsxFactory and jsxFragment instead.