pj / babel-plugin-syntax-switch-with

Babel plugin for enabling switch with statement in parser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

babel-plugin-syntax-switch-with

Allow parsing of switch with.

Installation

$ npm install babel-plugin-syntax-switch-with

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["syntax-switch-with"]
}

Via CLI

$ babel --plugins syntax-switch-with script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-switch-with"]
});

About

Babel plugin for enabling switch with statement in parser.


Languages

Language:JavaScript 100.0%