跳到正文

Interface: UnusedOptions ​

Defined in: node_modules/.pnpm/unplugin-unused@0.6.0_esbuild@0.28.2_rolldown@1.2.4_vite@8.2.1/node_modules/unplugin-unused/dist/options-DTjkQMuR.d.mts:4

Properties ​

depKinds? ​

ts
optional depKinds?: DepKind[];

Defined in: node_modules/.pnpm/unplugin-unused@0.6.0_esbuild@0.28.2_rolldown@1.2.4_vite@8.2.1/node_modules/unplugin-unused/dist/options-DTjkQMuR.d.mts:21

Default ​

ts
;['dependencies', 'peerDependencies']

exclude? ​

ts
optional exclude?: FilterPattern;

Defined in: node_modules/.pnpm/unplugin-unused@0.6.0_esbuild@0.28.2_rolldown@1.2.4_vite@8.2.1/node_modules/unplugin-unused/dist/options-DTjkQMuR.d.mts:7


ignore? ​

ts
optional ignore?: string[] | Partial<Record<DepKind, string[]>>;

Defined in: node_modules/.pnpm/unplugin-unused@0.6.0_esbuild@0.28.2_rolldown@1.2.4_vite@8.2.1/node_modules/unplugin-unused/dist/options-DTjkQMuR.d.mts:8


include? ​

ts
optional include?: FilterPattern;

Defined in: node_modules/.pnpm/unplugin-unused@0.6.0_esbuild@0.28.2_rolldown@1.2.4_vite@8.2.1/node_modules/unplugin-unused/dist/options-DTjkQMuR.d.mts:6


level? ​

ts
optional level?: "error" | "warning";

Defined in: node_modules/.pnpm/unplugin-unused@0.6.0_esbuild@0.28.2_rolldown@1.2.4_vite@8.2.1/node_modules/unplugin-unused/dist/options-DTjkQMuR.d.mts:17

Specifies the severity level of the check.

  • 'error': Causes the build to fail.
  • 'warning': Displays a warning in the console.

Default ​

ts
'warning'

root? ​

ts
optional root?: string;

Defined in: node_modules/.pnpm/unplugin-unused@0.6.0_esbuild@0.28.2_rolldown@1.2.4_vite@8.2.1/node_modules/unplugin-unused/dist/options-DTjkQMuR.d.mts:5

Released under the MIT License.