Lucas Azzola 99be60b53d Implement transform for nullish-coalescing operator (#6483)
* Implement transform for nullish-coalescing operator

* Update example output

* Switch from BinaryExpression to LogicalExpression

* Address review comments

- Use generateUidIdentifierBasedOnNode
- Inline "??"
- Clone ref node
- Move "??" to LogicalExpression in babel-types

* Fix reference to @babel/helper-plugin-test-runner

* Fix reference to @babel/plugin-syntax-nullish-coalescing-operator

* Don't use parent scope

* Remove .vscode from .gitignore, change 'lib/index.js' to 'lib'

* Ensure `document.all ?? 0 === document.all`

* Fix note and copy to an inline comment
2017-10-18 03:10:05 -04:00

19 lines
742 B
JSON

{
"name": "@babel/preset-stage-1",
"version": "7.0.0-beta.3",
"description": "Babel preset for stage 1 plugins",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://babeljs.io/",
"license": "MIT",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-1",
"main": "lib/index.js",
"dependencies": {
"@babel/plugin-transform-decorators": "7.0.0-beta.3",
"@babel/plugin-transform-export-default": "7.0.0-beta.3",
"@babel/plugin-transform-optional-chaining": "7.0.0-beta.3",
"@babel/plugin-transform-pipeline-operator": "7.0.0-beta.3",
"@babel/plugin-transform-nullish-coalescing-operator": "7.0.0-beta.3",
"@babel/preset-stage-2": "7.0.0-beta.3"
}
}