An esbuild plugin that excludes node_modules from source maps to reduce source map size. Current stable version is 0.0.3. This plugin modifies the generated source map by removing entries from vendor (node_modules) paths, which can significantly reduce file size for bundled applications. Key differentiator: it's a lightweight esbuild-specific solution for source map trimming, similar in spirit to Webpack's hidden-source-map or exclude options.
npm install esbuild-plugin-exclude-vendor-from-source-mapNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of the plugin with esbuild to exclude node_modules from source maps.
Verify your source map by inspecting the output file. If vendor entries still appear, ensure the plugin is in the plugins array and that esbuild generates source maps (sourcemap: true).
Consider pinning the version and using @ts-ignore or writing your own declaration file if using TypeScript.
Use the JavaScript API as shown in the quickstart.
Run 'npm i --save-dev esbuild-plugin-exclude-vendor-from-source-map'
Use named import: import { excludeVendorFromSourceMap } from 'esbuild-plugin-exclude-vendor-from-source-map'No dependency data recorded yet.