|
- import { Plugin } from 'vite';
-
- type Include = 'all' | (keyof typeof console)[];
- /**
- * transform code
- * @param code the code of source
- * @param include scope to be removed
- * @returns the code of transformed
- */
- declare function transform(code: string, include: Include): string;
-
- interface Options {
- /**
- * @default ["log", "warn", "error"]
- */
- include: Include;
- /**
- * @default true
- */
- ignoreNodeModules: boolean;
- /**
- * @default undefined
- */
- normalize: (path: string) => boolean;
- }
- declare function export_default(options?: Partial<Options>): Plugin;
-
- export { export_default as default, transform as gogocodeRemovelog };
|