UNPKG

507 BMarkdownView Raw
1# babel-plugin-transform-es2015-object-super
2
3> Compile ES2015 object super to ES5
4
5## Installation
6
7```sh
8npm install --save-dev babel-plugin-transform-es2015-object-super
9```
10
11## Usage
12
13### Via `.babelrc` (Recommended)
14
15**.babelrc**
16
17```json
18{
19 "plugins": ["transform-es2015-object-super"]
20}
21```
22
23### Via CLI
24
25```sh
26babel --plugins transform-es2015-object-super script.js
27```
28
29### Via Node API
30
31```javascript
32require("babel-core").transform("code", {
33 plugins: ["transform-es2015-object-super"]
34});
35```