A Babel preset (v0.0.2, last updated in 2016) for compiling Angular 2 applications, wrapping plugins for Angular 2 annotations, decorators, class properties, and Flow type stripping. This package is outdated and unmaintained; Angular 2+ now uses TypeScript and the official Angular CLI, making this preset obsolete. It depends on legacy Babel 6 plugins and is not compatible with modern Angular versions or Babel 7+. Use for legacy projects only; new projects should use the Angular CLI with TypeScript.
npm install babel-preset-angular2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, .babelrc configuration, and a basic Angular 2 component using decorators.
Use the Angular CLI with TypeScript and the Angular compiler instead of Babel for Angular projects.
Always include the es2015 preset in your .babelrc.
Use TypeScript's own decorator support instead of Babel for Angular projects.
Ensure babel-preset-angular2 is installed and listed in your .babelrc presets.
No dependency data recorded yet.