@stem/babel-plugin-syntax-optional-chaining
v7.0.0-alpha.13
Published
Allow parsing of optional properties
Downloads
3
Keywords
Readme
babel-plugin-syntax-optional-chaining
Allow parsing of optional properties.
Installation
npm install --save-dev babel-plugin-syntax-optional-chaining
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["syntax-optional-chaining"]
}
Via CLI
babel --plugins syntax-optional-chaining script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["syntax-optional-chaining"]
});