Skip to content
PluginStats

vite-plugin-circular-dependency weekly downloads statistics

By threedayAAAAA · npm · Vite plugins

Detect circular dependencies

View on npm Stale · Oct 18, 2026

vite-plugin-circular-dependency has 37,631 recorded weekly downloads on npm, a decrease of 46.8% over the past 30 days, ranking #647 of 2,391 tracked listings.

Weekly downloads
37,631
Official API · Oct 18, 2026
7-day growth
-47.6%
-34.2K weekly downloads
30-day growth
-46.8%
-33.1K weekly downloads
90-day growth
-43.8%
-29.4K weekly downloads
Rank
#647
Among tracked npm listings

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: 37,631 weekly downloads as of Oct 18, 2026, -43.8% over 90 days.vite-plugin-circular-dependencyWeekly downloads on npm · Last 90 days37,631downloads / week-43.8% over 90 days020K40K60K80K100KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 23, 2026 – Oct 18, 2026 · 88 observations · Updated Oc…pluginstats.com
vite-plugin-circular-dependency weekly downloads on npm, last 90 days: 37,631 weekly downloads as of Oct 18, 2026, -43.8% over 90 days.

7/30/90-day growth

vite-plugin-circular-dependency weekly downloads growth on npm: -47.6% over 7 days, -46.8% over 30 days, -43.8% over 90 days.vite-plugin-circular-dependencyWeekly downloads growth on npm37,631downloads / week now7-day growth-34,195 weekly downloads-47.6%30-day growth-33,145 weekly downloads-46.8%90-day growth-29,358 weekly downloads-43.8%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
vite-plugin-circular-dependency weekly downloads growth on npm: -47.6% over 7 days, -46.8% over 30 days, -43.8% over 90 days.

Ranking history

vite-plugin-circular-dependency npm ranking history: currently #647 (by weekly downloads).vite-plugin-circular-dependencynpm ranking · by weekly downloads · Last 90 days#647current rank#636#638#640#642#644#646#648#650Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 18, 2026 – Oct 21, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
vite-plugin-circular-dependency npm ranking history: currently #647 (by weekly downloads).

Listing placement

All npm2,389 listings · 120 pages · 1,195 shown · page 33, #7 (overall #647)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins257 listings · 13 pages · page 6, #2 (overall #102)
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 (122)
Recent weekly downloads observations for vite-plugin-circular-dependency
Date (UTC)Weekly downloadsChange vs. previous
37,631+3.9K
33,717-3.8K
37,487+2.8K
34,720-15.5K
50,249-16.9K
67,1080
67,108-4.7K
71,826-1.6K
73,449-1.5K
74,936-1.1K
75,995-2.5K
78,473-1K
79,495-18.8K
98,309—

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 Oct 21, 2026. See the methodology.