@analogjs/vite-plugin-angular weekly downloads statistics
By analogjs · npm · Vite plugins
Vite Plugin for Angular
@analogjs/vite-plugin-angular has 1,020,469 recorded weekly downloads on npm, an increase of 12.4% over the past 30 days, ranking #290 of 3,247 tracked listings.
About @analogjs/vite-plugin-angular
@analogjs/vite-plugin-angular
A Vite plugin for building Angular applications
Install
With npm:
npm install @analogjs/vite-plugin-angular --save-dev
With pnpm:
pnpm install @analogjs/vite-plugin-angular --save-dev
With yarn:
yarn install @analogjs/vite-plugin-angular --dev
With bun:
bun install @analogjs/vite-plugin-angular --dev
Setup
Add the plugin to the plugins array in your Vite config
import { defineConfig } from 'vite';
import angular from '@analogjs/vite-plugin-angular';
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
mainFields: ['module'],
},
plugins: [angular()],
});
The
angularplugin should be listed first in the plugins array.
Plugin Options
All options are optional.
| Option | Default | Description |
|---|---|---|
tsconfig | tsconfig.app.json | Path to the tsconfig used for compilation, or a function returning it. Libraries default to tsconfig.lib.json and tests to tsconfig.spec.json. |
workspaceRoot | NX_WORKSPACE_ROOT, then process.cwd() | Absolute path to the workspace root. Set it in monorepos where the app is not the working directory. |
inlineStylesExtension | 'css' | Stylesheet language for inline component styles, such as 'scss'. See CSS Pre-processors. |
jit | true in tests, false otherwise | Compile components in JIT mode instead of AOT. |
include | [] | Additional globs, relative to the workspace root, to add to compilation, such as components from a library outside the tsconfig include. |
liveReload | true | Enables Angular component HMR during development. This is separate from Vite's server.hmr transport option. |
disableTypeChecking | true | Skips semantic and template diagnostics during compilation. Set to false to report type errors from the Vite build. |
fileReplacements | [] | Replaces source files at build time, like fileReplacements in angular.json. Use { replace, with }, or { replace, ssr } for the SSR build. with and ssr paths resolve against workspaceRoot. |
fastCompile | false | Opts into the fast compile path. |
fastCompileMode | 'full' | Output mode for fastCompile: 'full' for apps, 'partial' for publishing libraries. |
debug | false | Enables analog:angular:* debug logging. |
import { defineConfig } from 'vite';
import angular from '@analogjs/vite-plugin-angular';
export default defineConfig(({ mode }) => ({
plugins: [
angular({
inlineStylesExtension: 'scss',
fileReplacements:
mode === 'production'
? [
{
replace: 'src/environments/environment.ts',
with: 'src/environments/environment.prod.ts',
},
]
: [],
}),
],
}));
Fast Compile Mode
fastCompile opts the plugin into a single-pass compilation path that emits Ivy instructions directly and skips Angular's template type-checking. It's intended for content-focused apps and faster dev iteration where build throughput matters more than inline type-safety feedback.
export default defineConfig({
plugins: [angular({ fastCompile: true })],
});
When fastCompile is enabled, template and input type errors will not surface during compilation. Run ngc -p tsconfig.app.json --noEmit as a separate step in your build script to keep full type safety:
{
"scripts": {
"build": "ngc -p tsconfig.app.json --noEmit && vite build"
}
}
The fast compile path currently passes ~91% of Angular's conformance suite. Behavior and output may change between minor releases.
Vendor Sourcemaps…
Description from the npm listing.
- vite
- vitest
- vite-plugin
- angular
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Vite plugins plugins
All 20 @analogjs/vite-plugin-angular alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@analogjs/vite-plugin-angular. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.