{"library":"rollup-plugin-bundle-esm","title":"rollup-plugin-bundle-esm","description":"A Rollup plugin that automatically bundles only ESM-only dependencies while leaving CommonJS-compatible packages external, optimizing bundle size and reducing edge cases. Current stable version is 0.1.1 (released 2022, no recent updates). Key differentiator: solves the dual-packaging problem for environments without ESM support (e.g., Electron) by specifically targeting ESM packages for inlining, unlike general-purpose resolve plugins that bundle everything. Compatible with Rollup 3+; requires @rollup/plugin-node-resolve and @rollup/plugin-commonjs as companion plugins.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-bundle-esm"],"cli":null},"imports":["import bundleESM from 'rollup-plugin-bundle-esm'","const bundleESM = require('rollup-plugin-bundle-esm')","import type { BundleESMOptions } from 'rollup-plugin-bundle-esm'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import commonjs from '@rollup/plugin-commonjs';\nimport { nodeResolve } from '@rollup/plugin-node-resolve';\nimport { defineConfig } from 'rollup';\nimport bundleESM from 'rollup-plugin-bundle-esm';\n\nexport default defineConfig({\n  output: {\n    format: 'commonjs',\n    dir: 'dist',\n  },\n  input: 'index.js',\n  plugins: [commonjs(), nodeResolve(), bundleESM()],\n});","lang":"typescript","description":"Configures Rollup to bundle only ESM dependencies, leaving CommonJS packages external.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}