UNPKG

@darkobits/ts

Version:

Vite-based toolchain for Node projects.

19 lines (18 loc) 537 B
import type { Plugin } from 'vite'; interface CleanupPluginOptions { /** * Root directory that the plugin will operate on. This should be set to the * project's output directory. */ root: string; /** * If `true`, the plugin will recursively search `root` for empty chunks and * remove them. */ removeEmptyChunks: boolean; } /** * Responsible for performing cleanup tasks during and after a build. */ export default function cleanupPlugin(options: CleanupPluginOptions): Plugin; export {};