{"library":"esbuild-plugin-ifdef","type":"library","category":null,"description":"esbuild plugin for conditional compilation using `//#ifdef` comments in JavaScript and TypeScript files. Version 1.0.1 is the latest stable release. It allows developers to include or exclude code blocks based on environment variables before esbuild's tree-shaking phase. Unlike traditional `if (true)` patterns that break function scoping, this plugin removes dead code at the comment level, preserving correct scoping. It filters `process.env` prefixes automatically and supports negation with `!`. The plugin excludes `node_modules` by default for performance and security. Alternative to `esbuild-plugin-conditional` or manual define-based checks, but with a simpler preprocessor-style comment syntax.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install esbuild-plugin-ifdef","imports":["import { ifdef } from 'esbuild-plugin-ifdef'","import ifdef from 'esbuild-plugin-ifdef'","import type { IfdefOptions } from 'esbuild-plugin-ifdef'"]},{"cmd":"yarn add esbuild-plugin-ifdef","imports":[]},{"cmd":"pnpm add esbuild-plugin-ifdef","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/esbuild-plugin-ifdef","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}