1. babel-plugin-transform-es2017-object-entries
Babel plugin for transforming ES2017 features Object.entries and Object.keys
babel-plugin-transform-es2017-object-entries
Package: babel-plugin-transform-es2017-object-entries
Created by: christensson
Last modified: Mon, 13 Jun 2022 04:04:27 GMT
Version: 0.0.5
License: MIT
Downloads: 10,778
Repository: https://github.com/christensson/babel-plugin-transform-es2017-object-entries

Install

npm install babel-plugin-transform-es2017-object-entries
yarn add babel-plugin-transform-es2017-object-entries

babel-plugin-transform-es2017-object-entries

Babel plugin for transforming ES2017 features Object.entries and Object.keys.

This plugin replaces calls to Object.entries() and Object.values() with calls to generated functions. The generated functions are ES5 compliant.

Example .babelrc configuration

{
  "plugins": ["transform-es2017-object-entries"]
}

Other plugins exist, like babel-plugin-transform-object-entries which only deals with Object.entries() and instead imports implementation from core-js.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin