A Babel plugin that transpiles object spread syntax into inline assignments and for loops using Object.keys, avoiding the slower for...in with hasOwnProperty check. Version 0.0.3 appears to be the latest, with no recent updates. It provides a performance alternative to the default babel-plugin-transform-object-rest-spread by generating faster code for object spreads, especially when only one spread is used. Note that it does not handle object rest syntax and may not be suitable for multiple spreads per object.
npm install babel-plugin-transform-object-spread-inlineNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, configuration, and transformation of object spread into faster inline code using Object.keys.
Use a separate plugin like @babel/plugin-proposal-object-rest-spread for rest syntax.
Minimize the number of spreads per object, or avoid this plugin if many spreads are used.
Consider using @babel/plugin-proposal-object-rest-spread with built-in optimization or use modern Babel presets.
If you need inherited properties, do not use this plugin and stick with the standard plugin.
Run: npm install --save-dev babel-plugin-transform-object-spread-inline
Ensure the plugin is in .babelrc 'plugins' array and check for rest patterns; use separate plugin for rest.
No dependency data recorded yet.