Skip to content
A Babel preset for angular2
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
index.js
package.json

README.md

babel-preset-angular2

A Babel preset for angular2.

This preset includes the following plugins:

  • babel-plugin-angular2-annotations
  • babel-plugin-transform-decorators-legacy
  • babel-plugin-transform-class-properties
  • babel-plugin-transform-flow-strip-types

Installation

npm install -D babel-preset-angular2 babel-preset-es2015

Usage

Add the following line to your .babelrc file:

{
  "presets": ["es2015", "angular2"]
}

See babel-angular2-app for more complete example.

You can’t perform that action at this time.