{"library":"esbuild-plugin-define","type":"library","category":null,"description":"esbuild plugin that defines global identifiers at build time, similar to esbuild's built-in `define` feature but with a more structured and discoverable API. Version 0.6.0 is the latest stable release as of early 2025, with active development and monthly updates. Unlike manual `define` objects, this plugin supports nested object definitions (e.g., `process.env.API_KEY`) and merges with esbuild's native `define`. It ships TypeScript types and is designed for modern Node.js (>=20) with native ESM support. Key differentiator: avoids tedious string escaping for complex replacement values and provides a cleaner configuration pattern.","language":"javascript","status":"active","version":"0.6.0","tags":["javascript","esbuild","plugin","define","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install esbuild-plugin-define","imports":["import { definePlugin } from 'esbuild-plugin-define'","const { definePlugin } = require('esbuild-plugin-define')","import type { Config } from 'esbuild-plugin-define'"]},{"cmd":"yarn add esbuild-plugin-define","imports":[]},{"cmd":"pnpm add esbuild-plugin-define","imports":[]}],"homepage":null,"github":"https://github.com/webdeveric/esbuild-plugin-define","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/esbuild-plugin-define","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}