tsup-plugin-bundleless
Version:
tsup plugin to bundleless (output as file-to-file)
34 lines (31 loc) • 761 B
TypeScript
import { ReplaceTscAliasPathsOptions } from 'tsc-alias';
interface IBundleless {
disable?: boolean;
/**
* tsc-alias替换后的文件扩展名
* 默认智能推断
*/
ext?: '.js' | '.mjs' | '.cjs';
/**
* bundless 排除的文件。如果被排除,则会被 esbuild bundle
*
* @example ['.css', /\.css$/]
*/
exclude?: (string | RegExp)[];
/**
* 当前工作目录
*/
cwd?: string;
/**
* @internal
*/
_replaceTscAliasPathsOptions?: ReplaceTscAliasPathsOptions;
}
declare const bundleless: (options?: IBundleless) => {
esbuildPlugins?: undefined;
plugins?: undefined;
} | {
esbuildPlugins: any;
plugins: any;
};
export { type IBundleless, bundleless };