/babel-preset-vscode

Babel preset for Visual Studio Code modules

Primary LanguageJavaScript

@timkendrick/babel-preset-vscode

npm version Stability

Babel preset for Visual Studio Code modules

Transform modules written for the Visual Studio Code AMD loader into standard CommonJS modules.

Installation

npm install --save-dev @timkendrick/babel-preset-vscode

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": [
    "@timkendrick/babel-preset-vscode"
  ]
}

Via CLI

babel script.js --presets @timkendrick/babel-preset-vscode

Via Node API

require("babel-core").transform("code", {
  presets: [
    "@timkendrick/babel-preset-vscode"
  ]
});