ko
Version:
build & lint library
81 lines (80 loc) • 2.31 kB
TypeScript
import { IWebpackOptions } from '../../types';
declare class Script {
private THREAD_LOADER;
private WORKER_LOADER;
private ESBUILD_LOADER;
private BABEL_LOADER;
private opts;
constructor(opts: IWebpackOptions);
get config(): ({
test: RegExp;
loader: string;
include: (input: string) => boolean;
options: {
inline: string;
};
use?: undefined;
} | {
test: RegExp;
include: (input: string) => boolean;
use: {
loader: string;
options: {
presets: (string | {
useBuiltIns: string;
corejs: number;
targets: string;
})[][];
babelrc: boolean;
configFile: boolean;
cacheDirectory: boolean;
cacheCompression: boolean;
};
}[];
loader?: undefined;
options?: undefined;
} | {
test: RegExp;
include: (input: string) => boolean;
use: ({
loader: string;
options: {
presets: (string | {
useAbsoluteRuntime: boolean;
})[][];
plugins: ((string | {
libraryName: string;
libraryDirectory: string;
style: string;
})[] | (string | {
libraryName: string;
libraryDirectory: string;
camel2DashComponentName: string;
})[])[];
babelrc: boolean;
configFile: boolean;
cacheIdentifier: string;
cacheDirectory: boolean;
cacheCompression: boolean;
compact: boolean;
};
} | {
loader: string;
options: {
name: string;
loader?: undefined;
target?: undefined;
};
} | {
loader: string;
options: {
loader: string;
target: string;
name?: undefined;
};
})[];
loader?: undefined;
options?: undefined;
})[];
}
export default Script;