vite-plugin-commonjs-externals
Version:
Provides commonjs externals support for Vite.
10 lines (7 loc) • 366 B
text/typescript
import { Plugin } from 'vite';
interface CommonjsExternalsPluginOptions {
readonly externals: ReadonlyArray<string | RegExp>;
readonly exts?: ReadonlyArray<string>;
}
declare const commonjsExternalsPlugin: ({ externals, exts, }: CommonjsExternalsPluginOptions) => Plugin;
export { type CommonjsExternalsPluginOptions, commonjsExternalsPlugin as default };