Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

SimenB/babel-preset-es3

Repository files navigation

babel-preset-es3

npm version Dependency Status Greenkeeper badge Build Status

Babel preset for two ES3 transforms transform-es3-member-expression-literals and transform-es3-property-literals

This presets adds the two transforms for ES3 syntax compatibility.

Install

$ npm install --save-dev babel-preset-es3

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["es3"]
}

Via CLI

$ babel script.js --preset es3

Via Node API

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

About

Preset for Babel's ES3 transformations

Resources

License

Stars

Watchers

Forks

Packages

No packages published