babel-plugin-syntax-enum
v7.0.0-beta.47
Published
Allow parsing of the nullish-coalescing operator
Downloads
5
Readme
@babel/plugin-syntax-enum
Allow parsing of the enum keyword.
Installation
npm install --save-dev @babel/plugin-syntax-enum
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["@babel/plugin-syntax-enum"]
}
Via CLI
babel --plugins @babel/plugin-syntax-enum script.js
Via Node API
require("@babel/core").transform("code", {
plugins: ["@babel/plugin-syntax-enum"]
});