Merge pull request #7515 from abouthiroppy/feature/modify-readme-of-babel-plugin-transform-block-scoped-functions

Update README.md and add test
This commit is contained in:
Sven SAULEAU 2018-03-08 12:06:58 +01:00 committed by GitHub
commit 2c0d492674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 2 deletions

View File

@ -20,11 +20,10 @@ name("Steve");
```javascript
{
var _name = function _name(n) {
let name = function (n) {
return n;
};
}
name("Steve");
```

View File

@ -0,0 +1,7 @@
{
function name (n) {
return n;
}
}
name("Steve");

View File

@ -0,0 +1,3 @@
{
"plugins": ["transform-block-scoped-functions"]
}

View File

@ -0,0 +1,6 @@
{
let name = function (n) {
return n;
};
}
name("Steve");

View File

@ -0,0 +1,3 @@
import runner from "@babel/helper-plugin-test-runner";
runner(__dirname);