pg-template-esbuild is a build tool and project generator based on esbuild, version 1.9.0. It provides a starter template and builder for JavaScript/TypeScript projects, automating bundling, minification, and transpilation. Designed for Node.js >=14, it offers fast builds with zero configuration, leveraging esbuild's speed. It differentiates itself from other generators (e.g., create-react-app, Vite) by focusing on minimal setup and pure esbuild integration, suitable for libraries or simple applications. Development appears active with regular updates, but the package has low usage and may lack community support. Release cadence is monthly.
npm install pg-template-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This code demonstrates a basic build configuration: compiles a TypeScript entry point to bundled ESM output in the dist folder, with minification and source maps.
Convert require() to dynamic import(). Ensure package.json type: 'module' or use .mjs extension.
Use `sourcemap: true` but plan migration to esbuild's new options.
Run `npm install esbuild --save-dev` before using pg-template-esbuild.
Install esbuild: `npm install esbuild --save-dev`
Use dynamic import: `const { build } = await import('pg-template-esbuild')`