ko
Version:
build & lint library
51 lines (50 loc) • 1.49 kB
TypeScript
import { IWebpackOptions } from '../../../types';
declare class BabelLoader {
private BABEL_LOADER;
private opts;
private speedUp;
constructor(opts: IWebpackOptions);
get config(): {
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;
};
};
get treasurePluginConfig(): ((string | {
libraryName: string;
libraryDirectory: string;
style: string;
})[] | (string | {
libraryName: string;
libraryDirectory: string;
camel2DashComponentName: string;
})[])[];
get plugins(): ((string | {
libraryName: string;
libraryDirectory: string;
style: string;
})[] | (string | {
libraryName: string;
libraryDirectory: string;
camel2DashComponentName: string;
})[])[];
get cacheIdentifier(): string;
}
export default BabelLoader;