1. babel-plugin-transform-es3-property-literals
Ensure that reserved words are quoted in object property keys
babel-plugin-transform-es3-property-literals
Package: babel-plugin-transform-es3-property-literals
Created by: babel
Last modified: Mon, 13 Jun 2022 04:04:28 GMT
Version: 6.22.0
License: MIT
Downloads: 121,762
Repository: https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es3-property-literals

Install

npm install babel-plugin-transform-es3-property-literals
yarn add babel-plugin-transform-es3-property-literals

babel-plugin-transform-es3-property-literals

Ensure that reserved words are quoted in object property keys

Installation

 $ npm install babel-plugin-transform-es3-property-literals

Usage

Via .babelrc (Recommended)

.babelrc

 {
  "plugins": ["transform-es3-property-literals"]
}

Via CLI

 $ babel --plugins transform-es3-property-literals script.js

Via Node API

 require("babel-core").transform("code", {
  plugins: ["transform-es3-property-literals"]
});

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code