Babel plugin to compile ES2015 (ES6) function parameter features—default, rest, and destructuring parameters—to ES5. Version 6.24.1 corresponds to Babel 6.x; it is now deprecated in favor of @babel/plugin-transform-parameters for Babel 7+. This plugin is designed for projects using Babel 6 and requires compat with other transform plugins (e.g., block-scoping) for certain output semantics. It does not transform arrow functions or for-of statements.
npm install babel-plugin-transform-es2015-parametersNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows usage with .babelrc and code output demonstrating default and rest parameters transformed to ES5.
Migrate to Babel 7 and use @babel/plugin-transform-parameters.
Include the 'transform-es2015-block-scoping' plugin in your Babel configuration.
Upgrade to @babel/core 7 and use @babel/plugin-transform-parameters.
Run `npm install --save-dev babel-plugin-transform-es2015-parameters` and ensure .babelrc references the short name.
Add 'transform-es2015-block-scoping' to your plugins list.
Use Babel 6 or switch to '@babel/plugin-transform-parameters' for Babel 7.