babel-plugin-transform-es2015-block-scoped-functions
Advanced tools
Comparing version
{ | ||
"name": "babel-plugin-transform-es2015-block-scoped-functions", | ||
"version": "7.0.0-alpha.1", | ||
"version": "7.0.0-alpha.3", | ||
"description": "Babel plugin to ensure function declarations at the block level are block scoped", | ||
@@ -12,4 +12,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-block-scoped-functions", | ||
"devDependencies": { | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.1" | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.3" | ||
} | ||
} |
@@ -5,2 +5,28 @@ # babel-plugin-transform-es2015-block-scoped-functions | ||
## Examples | ||
**In** | ||
```javascript | ||
{ | ||
function name (n) { | ||
return n; | ||
} | ||
} | ||
name("Steve"); | ||
``` | ||
**Out** | ||
```javascript | ||
{ | ||
var _name = function _name(n) { | ||
return n; | ||
}; | ||
} | ||
name("Steve"); | ||
``` | ||
## Installation | ||
@@ -7,0 +33,0 @@ |
2595
8.4%62
72.22%