ESBuild plugin and CLI (v0.0.3) for bundling modern TypeScript/JavaScript code into Google App Script (GAS). Combines ESBuild bundling with transformations required by GAS runtime (e.g., handling of `google.script.run`, `ScriptApp`). Peer dependency on `esbuild` ^0.24.2. Differentiator: no need for separate GAS-specific transpilation steps; single pass via ESBuild plugin. Actively maintained by Salsita.
npm install gas-buildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Bundles a TypeScript entry point into a single file for Google App Script using the ESBuild plugin.
Always use `outfile` instead of `outdir` when using the plugin.
Set `format: 'esm'` or omit to default to 'iife' (GAS compatible). Avoid 'cjs'.
Run `npm install -D gas-build esbuild`.
Pin to latest version and test build after update.
Add `google` to the `define` option in ESBuild config (e.g., `define: { 'google': '{}' }`), or use the plugin's built-in handling.Use `import { gasBuildPlugin } from 'gas-build'`.Run `npm install -D gas-build esbuild`.