import type { PkgType } from '../../../types'; import type { IBundlessConfig } from '../../config'; import type { ILoaderOutput } from './types'; /** * loader item type */ export interface ILoaderItem { id: string; test: string | RegExp | ((path: string) => boolean); loader: string; options?: Record; } /** * add loader * @param item loader item */ export declare function addLoader(item: ILoaderItem): void; declare const _default: (fileAbsPath: string, opts: { config: IBundlessConfig; pkg: PkgType; cwd: string; }) => Promise; /** * loader module base on webpack loader-runner */ export default _default;