13 lines
410 B
TypeScript
13 lines
410 B
TypeScript
import type { Plugin } from 'vite';
|
|
export interface NotBundleOptions {
|
|
filter?: (id: string) => void | false;
|
|
}
|
|
/**
|
|
* @see https://github.com/vitejs/vite/blob/v4.4.7/packages/vite/src/node/utils.ts#L140
|
|
*/
|
|
export declare const bareImportRE: RegExp;
|
|
/**
|
|
* During dev, we exclude the `cjs` npm-pkg from bundle, mush like Vite :)
|
|
*/
|
|
export declare function notBundle(options?: NotBundleOptions): Plugin;
|