babel-preset-es2015-minimal-rollup

raw JSON →
2.1.1 verified Mon Apr 27 auth: no javascript deprecated

A lightweight Babel 6 preset for transpiling ES2015 (ES6) to ES5 in loose mode, specifically optimized for Rollup bundlers. Version 2.1.1 is the current stable release; the package is deprecated and no longer maintained. It reduces the overhead of the full babel-preset-es2015 by removing frills, making it ideal for tree-shaking with Rollup. Key differentiator: minimal configuration with loose mode transforms to produce smaller Rollup output, unlike the standard preset.

error Error: Preset "es2015-minimal-rollup" not found
cause Missing preset installation or incorrect preset name.
fix
Ensure both babel-preset-es2015 and babel-preset-es2015-minimal-rollup are installed.
error ReferenceError: require is not defined (in browser)
cause Attempting to use require() in a browser context without bundling.
fix
Use .babelrc configuration or babel API in Node.js environment.
deprecated Package is deprecated and no longer maintained; use @babel/preset-env instead.
fix Replace with @babel/preset-env and configure targets for Rollup.
breaking Only works with Babel 6, not Babel 7+.
fix Upgrade to Babel 7 and use @babel/preset-env.
gotcha Requires babel-preset-es2015 as a peer dependency; must be installed separately.
fix Run npm install --save babel-preset-es2015 alongside this preset.
npm install babel-preset-es2015-minimal-rollup
yarn add babel-preset-es2015-minimal-rollup
pnpm add babel-preset-es2015-minimal-rollup

Shows how to configure the preset in .babelrc to transpile ES2015 to ES5 for Rollup.

// .babelrc
{
  "presets": ["es2015-minimal-rollup"]
}