A Babel plugin that allows parsing of object rest/spread syntax (e.g., `const { a, ...rest } = obj;` or `const clone = { ...obj }`) in JavaScript. Current version is 6.13.0, part of the Babel 6 ecosystem. This plugin only enables parsing; transformation requires a separate plugin like `babel-plugin-transform-object-rest-spread`. It is syntax-only and does not include any runtime polyfills. Use with Babel 6; for Babel 7+, use `@babel/plugin-syntax-object-rest-spread`.
npm install babel-plugin-syntax-object-rest-spreadNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, .babelrc config, and a code snippet that requires this plugin for parsing.
For Babel 7, install @babel/plugin-syntax-object-rest-spread and update .babelrc to use '@babel/plugin-syntax-object-rest-spread'.
Add a transform plugin like babel-plugin-transform-object-rest-spread or use babel-preset-env with the appropriate targets.
Use 'syntax-object-rest-spread' instead of 'babel-plugin-syntax-object-rest-spread' in configuration.
Install babel-plugin-syntax-object-rest-spread and add it to your .babelrc plugins.
Use @babel/plugin-syntax-object-rest-spread instead.
Run npm install babel-plugin-syntax-object-rest-spread --save-dev.
No dependency data recorded yet.