Add note about transform-es2015-block-scoping

This commit is contained in:
James Kyle 2015-10-31 14:08:14 -07:00
parent f1a92bbb59
commit 2957bd7f2b

View File

@ -33,3 +33,7 @@ require("babel-core").transform("code", {
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).