start moving more transformers to packages and finish import of plugins from babel-plugins

This commit is contained in:
Sebastian McKenzie
2015-09-01 08:37:37 +01:00
parent 9f9d9cd84b
commit 1ea835f42f
255 changed files with 3785 additions and 1265 deletions

View File

@@ -0,0 +1,3 @@
node_modules
*.log
lib

View File

@@ -0,0 +1,3 @@
node_modules
*.log
src

View File

@@ -0,0 +1,35 @@
# babel-plugin-function-bind
Compile function bind operator to ES5
## Installation
```sh
$ npm install babel-plugin-function-bind
```
## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["function-bind"]
}
```
### Via CLI
```sh
$ babel --plugins function-bind script.js
```
### Via Node API
```javascript
require("babel-core").transform("code", {
plugins: ["function-bind"]
});
```

View File

@@ -0,0 +1,11 @@
{
"name": "babel-plugin-function-bind",
"version": "1.0.0",
"description": "Compile function bind operator to ES5",
"repository": "babel/babel",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"babel-plugin"
]
}

View File

@@ -0,0 +1,7 @@
export default function ({ types: t }) {
return {
visitor: {
// your visitor methods go here
}
};
}