* Proposal: Logical Assignment Operators https://github.com/jridgewell/proposal-logical-assignment I'm bringing it [back](https://github.com/babel/babel/pull/516). 😉 * Use expectPlugin * Add to stage 0 preset * Add logicalAssignment missing plugin log stuff
@babel/preset-stage-0
Babel preset for stage 0 plugins.
Install
npm install --save-dev @babel/preset-stage-0
Usage
Via .babelrc (Recommended)
.babelrc
{
"presets": ["@babel/preset-stage-0"]
}
Via CLI
babel script.js --presets @babel/preset-stage-0
Via Node API
require("@babel/core").transform("code", {
presets: ["@babel/preset-stage-0"]
});
Options
loose
boolean, defaults to false.
Enable "loose" transformations for any plugins in this preset that allow them.
useBuiltIns
boolean, defaults to false.
Will use the native built-in instead of trying to polyfill behavior for any plugins that require one.