Skip to content
PluginStats

vite-plugin-circular-dependency weekly downloads statistics

By threedayAAAAA · npm · Vite plugins

Detect circular dependencies

View on npm Fresh · Dec 6, 2026

vite-plugin-circular-dependency has 112,506 recorded weekly downloads on npm, an increase of 1.9% over the past 30 days, ranking #626 of 3,247 tracked listings.

Weekly downloads
112,506
Official API · Dec 5, 2026
7-day growth
-27.0%
-41.6K weekly downloads
30-day growth
+1.9%
+2.1K weekly downloads
90-day growth
+46.6%
+35.8K weekly downloads
Rank
#626
▼ 73 in 7 days

About vite-plugin-circular-dependency

vite-plugin-circular-dependency

English | 中文

A framework-agnostic build-time Vite plugin designed to detect circular imports and self-references, compatible with dynamic and static imports.

DEMO
// Configure the output path,
// a scan report will be generated to the specified path
export default defineConfig({
  plugins: [
    circleDependency({
      outputFilePath: "./circleDep",
    }),
  ],
});

image

// Without any configuration, it will be printed on the console
export default defineConfig({
  plugins: [circleDependency()],
});

image

Installation
npm i -D vite-plugin-circular-dependency
// yarn add --dev vite-plugin-circular-dependency
// pnpm i --dev vite-plugin-circular-dependency
Usage

Please use this plugin when building

In your vite.config.(js|ts) import the plugin and register it.

import { defineConfig } from "vite";
import circleDependency from "vite-plugin-circular-dependency";

export default defineConfig({
  plugins: [circleDependency()],
});
Options
export interface Options {
  /**
   * Rules to include transforming target.
   *
   * @default [/\.[jt]sx?$/, /\.vue\??/]
   */
  include?: FilterPattern;

  /**
   * Rules to exclude scan target.
   *
   * @default [/node_modules/, /\.git/]
   */
  exclude?: FilterPattern;

  /**
   * The file address of the scan result output, the default console print
   */
  outputFilePath?: string;

  // If configured, will output the products of circular references as an interactive HTML application to the specified address
  outputInteractiveFilePath?: string;

  /**
   * Whether to throw an error when a circular import exists
   *
   * @default true
   */
  circleImportThrowErr?: boolean;

  /**
   * Format the path of the output node.
   * By default, vite.config will be used as the root path to generate a relative path
   *
   * @default function
   */
  formatOutModulePath?: (path: string) => string;

  /**
   * The result of formatted output
   * will also affect the data format in the console print or output file
   *
   * @default (data: CircleData) => data
   */
  formatOut?: (data: CircleData) => any;

  /**
   * Whether to ignore dynamic imports during the scan.
   *
   * @default false
   *
   * If the file has the @circular-ignore tag, the module will also be ignored for circular dependency scanning.
   * Example:
   * // @circular-ignore
   * import { example } from './exampleModule';
   */
  ignoreDynamicImport?: boolean;
}

Description from the npm listing.

  • vite-plugin
  • vite plugin
  • vite
  • dependencies
  • circular-dependencies

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

vite-plugin-circular-dependency weekly downloads on npm, last 90 days: 112,506 weekly downloads as of Dec 5, 2026, +46.6% over 90 days.vite-plugin-circular-dependencyWeekly downloads on npm · Last 90 days112,506downloads / week+46.6% over 90 days020K40K60K80K100K120K140K160KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-plugin-circular-dependency weekly downloads on npm, last 90 days: 112,506 weekly downloads as of Dec 5, 2026, +46.6% over 90 days.

7/30/90-day growth

vite-plugin-circular-dependency weekly downloads growth on npm: -27.0% over 7 days, +1.9% over 30 days, +46.6% over 90 days.vite-plugin-circular-dependencyWeekly downloads growth on npm112,506downloads / week now7-day growth-41,602 weekly downloads-27.0%30-day growth+2,148 weekly downloads+1.9%90-day growth+35,764 weekly downloads+46.6%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-circular-dependency weekly downloads growth on npm: -27.0% over 7 days, +1.9% over 30 days, +46.6% over 90 days.

Ranking history

vite-plugin-circular-dependency npm ranking history: currently #626 (by weekly downloads).vite-plugin-circular-dependencynpm ranking · by weekly downloads · Last 90 days#626current rank#540#560#580#600#620#640#660Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-circular-dependency npm ranking history: currently #626 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 32, #6 (overall #626)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 5, #19 (overall #99)
Vite plugins: every listing in weekly downloads order

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)
Recent weekly downloads observations for vite-plugin-circular-dependency
Date (UTC)Weekly downloadsChange vs. previous
112,506-5K
117,493-16.9K
134,391-11.9K
146,244-8.8K
155,065-381
155,446+1.1K
154,346+238
154,108+3.1K
151,057+16.5K
134,542+9.3K
125,250+4K
121,247-1.7K
122,984+337
122,647—

Data 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/vite-plugin-circular-dependency. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.