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.
npm install babel-preset-es2015-minimal-rollupVerified import paths — ran on the pinned version, not inferred.
Shows how to configure the preset in .babelrc to transpile ES2015 to ES5 for Rollup.
Replace with @babel/preset-env and configure targets for Rollup.
Upgrade to Babel 7 and use @babel/preset-env.
Run npm install --save babel-preset-es2015 alongside this preset.
Ensure both babel-preset-es2015 and babel-preset-es2015-minimal-rollup are installed.
Use .babelrc configuration or babel API in Node.js environment.