@babel/helper-hoist-variables
Advanced tools
Comparing version 7.0.0-beta.49 to 7.0.0-beta.50
@@ -43,3 +43,3 @@ "use strict"; | ||
for (const name in declar.getBindingIdentifiers()) { | ||
state.emit(t().identifier(name), name); | ||
state.emit(t().identifier(name), name, declar.node.init !== null); | ||
} | ||
@@ -46,0 +46,0 @@ } |
{ | ||
"name": "@babel/helper-hoist-variables", | ||
"version": "7.0.0-beta.49", | ||
"version": "7.0.0-beta.50", | ||
"description": "Helper function to hoist variables", | ||
@@ -9,4 +9,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-hoist-variables", | ||
"dependencies": { | ||
"@babel/types": "7.0.0-beta.49" | ||
"@babel/types": "7.0.0-beta.50" | ||
} | ||
} |
# @babel/helper-hoist-variables | ||
## Installation | ||
> Helper function to hoist variables | ||
See our website [@babel/helper-hoist-variables](https://new.babeljs.io/docs/en/next/babel-helper-hoist-variables.html) for more information. | ||
## Install | ||
Using npm: | ||
```sh | ||
npm install @babel/helper-hoist-variables --save | ||
npm install --save @babel/helper-hoist-variables | ||
``` | ||
## API | ||
or using yarn: | ||
```javascript | ||
declare export default hoistVariables(path: NodePath, emit: Function, kind: "var" | "let" = "var"); | ||
```sh | ||
yarn add --save @babel/helper-hoist-variables | ||
``` | ||
## Usage | ||
TODO |
2388
20
3
+ Added@babel/types@7.0.0-beta.50(transitive)
- Removed@babel/types@7.0.0-beta.49(transitive)
Updated@babel/types@7.0.0-beta.50