fix es2015-instanceof and es2015-typeof-symbol packages and add README
This commit is contained in:
parent
a9ac3b0c94
commit
4ad8a1dc83
33
packages/babel-plugin-transform-es2015-instanceof/README.md
Normal file
33
packages/babel-plugin-transform-es2015-instanceof/README.md
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# babel-plugin-transform-es2015-instanceof
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ npm install babel-plugin-transform-es2015-instanceof
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
### Via `.babelrc` (Recommended)
|
||||||
|
|
||||||
|
**.babelrc**
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"plugins": ["transform-es2015-instanceof"]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Via CLI
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ babel --plugins transform-es2015-instanceof script.js
|
||||||
|
```
|
||||||
|
|
||||||
|
### Via Node API
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
require("babel-core").transform("code", {
|
||||||
|
plugins: ["transform-es2015-instanceof"]
|
||||||
|
});
|
||||||
|
```
|
||||||
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "babel-plugin-transform-es2015-typeof-symbol",
|
"name": "babel-plugin-transform-es2015-instanceof",
|
||||||
"version": "6.0.15",
|
"version": "6.0.15",
|
||||||
"description": "",
|
"description": "",
|
||||||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-typeof-symbol",
|
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-instanceof",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "babel-plugin-transform-es2015-instanceof",
|
"name": "babel-plugin-transform-es2015-typeof-symbol",
|
||||||
"version": "6.0.15",
|
"version": "6.0.15",
|
||||||
"description": "",
|
"description": "",
|
||||||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-instanceof",
|
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-typeof-symbol",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user