UNPKG

vite-plugin-circullar-dependency

Version:
29 lines (20 loc) 517 B
# vite-plugin-circullar-dependency Check circular dependency in vite project ## Install `npm i vite-plugin-circullar-dependency -D` ## Use ```ts import { defineConfig } from 'vite'; import circularDependency from 'vite-plugin-circullar-dependency'; export default defineConfig({ circularDependency({ exclude?: RegExp; include?: RegExp; failOnError?: boolean; allowAsyncCycles?: boolean; cwd?: string; }) }) ``` ## Inspired by - https://github.com/aackerman/circular-dependency-plugin