Babel plugin (v0.0.5, last updated 2017) that replaces `Object.entries()` and `Object.values()` calls with ES5-compatible generated functions. Unlike alternatives that import core-js polyfills, this plugin inlines inline implementations. It only handles these two methods, not the full object spread or other ES2017 features. Use is discouraged in favor of modern @babel/preset-env with core-js or direct polyfill imports.
npm install babel-plugin-transform-es2017-object-entriesVerified import paths — ran on the pinned version, not inferred.
Shows Babel configuration and transformation of Object.entries and Object.values to ES5 inline functions.
Use @babel/preset-env with core-js or @babel/plugin-proposal-object-entries (via preset-env).
Ensure calls are written as `Object.entries(obj)` not `const {entries} = Object; entries(obj)`.Accept limitation; use a more complete polyfill if needed.
Use string plugin name in plugins array, e.g., plugins: ['transform-es2017-object-entries']
Rewrite as direct call: Object.entries(obj) or use a different polyfill strategy.
No dependency data recorded yet.