parcel-plugin-angular is an abandoned Parcel plugin, currently at version 0.5.0, designed to provide comprehensive Angular support for the Parcel 1 bundler. It enables features like AOT (Ahead-of-Time) compilation using the official Angular compiler, lazy loading of Angular modules, and automatic processing of templates and styles. The plugin also performs transformations, such as decorator removal in AOT mode for smaller bundles and replacing JIT bootstrap code with AOT. It explicitly requires Parcel 1.x and Angular versions around 5.1.0, along with their associated compiler tools. Due to the release of Parcel 2 with a completely redesigned plugin system in September 2021, this plugin is no longer maintained or compatible with modern Parcel versions or recent Angular releases. Its release cadence was irregular and it has not seen updates since 2018.
npm install parcel-plugin-angularVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates setting up a basic Angular 5 application using parcel-plugin-angular with Parcel 1. It includes the necessary `package.json` for dependencies and scripts, `tsconfig.json` for Angular and Parcel plugin options, and minimal Angular component and module files. To run, save these files, then execute `npm install` and `npm start`.
Migrate your project to Parcel 2.x and use a different Angular setup (Parcel 2 has built-in TypeScript support and no longer requires specific Angular plugins), or downgrade Parcel to version 1.x.
For new projects, avoid this plugin and use a build system actively supporting your Angular version (e.g., Angular CLI, or Parcel 2 with a native Angular setup). For existing projects, ensure your Angular version matches the plugin's peer dependency requirements.
Strongly consider migrating to a current build toolchain that actively supports Angular, such as the Angular CLI or Parcel 2 with its native TypeScript capabilities. Do not use this plugin for new projects.
Ensure `parcel-plugin-typescript` is uninstalled from your project's `devDependencies` if `parcel-plugin-angular` is present. `parcel-plugin-angular` handles TypeScript internally for Angular projects.
This plugin is incompatible with Parcel 2+. Downgrade Parcel to a 1.x version (`npm install parcel-bundler@^1.0.0 --save-dev`) or migrate your project's build system to Parcel 2 or Angular CLI.
Install the correct version of '@angular/compiler' and '@angular/compiler-cli' (e.g., `npm install @angular/compiler@^5.1.0 @angular/compiler-cli@^5.1.0 --save-dev`). Ensure all peer dependencies listed in `package.json` are met.
Verify that your `tsconfig.json` matches the plugin's recommended configuration, especially for `target`, `module`, `emitDecoratorMetadata`, and `experimentalDecorators`. Ensure Angular dependencies are within the `^5.1.0` range.