/babel-plugin-syntax-switch-with

Babel plugin for enabling switch with statement in parser.

Primary LanguageJavaScript

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"]
});