Add note about transform-es2015-block-scoping
This commit is contained in:
parent
f1a92bbb59
commit
2957bd7f2b
@ -33,3 +33,7 @@ require("babel-core").transform("code", {
|
|||||||
plugins: ["transform-es2015-constants"]
|
plugins: ["transform-es2015-constants"]
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Note
|
||||||
|
|
||||||
|
This transform on its own will compile `const` to `let`. If you need it to compile down to `var` then you must also install and enable [`transform-es2015-block-scoping`](../babel-plugin-transform-es2015-block-scoped-functions).
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user