babel-preset-angular2

Babel preset for angular2

Usage no npm install needed!

<script type="module">
  import babelPresetAngular2 from 'https://cdn.skypack.dev/babel-preset-angular2';
</script>

README

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-2015

Usage

Add the following line to your .babelrc file:

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