{"library":"esbuild-plugin-external-global","type":"library","category":null,"description":"An esbuild plugin that maps external modules to global variables, enabling bundle-size reduction by excluding dependencies like React, ReactDOM, or jQuery and referencing them via globals such as window.React. Version 1.0.1 is stable with minimal API surface. It provides a simple mapping object where keys are module names and values are global variable expressions. The plugin is commonly used in library builds where certain dependencies are provided by the host environment. It has TypeScript types and works with both CJS and ESM esbuild configurations. Compared to similar plugins like esbuild-plugin-externalize, this one focuses specifically on global variable fallbacks rather than file-based externals.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript","esbuild","plugin","external","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install esbuild-plugin-external-global","imports":["import { externalGlobalPlugin } from 'esbuild-plugin-external-global'","import * as esbuild from 'esbuild'","import type { ExternalGlobalPlugin } from 'esbuild-plugin-external-global'"]},{"cmd":"yarn add esbuild-plugin-external-global","imports":[]},{"cmd":"pnpm add esbuild-plugin-external-global","imports":[]}],"homepage":null,"github":"https://github.com/yanm1ng/esbuild-plugin-external-global","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/esbuild-plugin-external-global","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}