1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | declare module 'babel-loader' {
|
10 | type BabelLoaderCustomizer<T> = (
|
11 | babel: typeof import('@babel/core'),
|
12 | ) => {
|
13 | customOptions?(
|
14 | this: import('webpack').loader.LoaderContext,
|
15 | loaderOptions: Record<string, unknown>,
|
16 | loaderArguments: { source: string; map?: unknown },
|
17 | ): Promise<{ custom?: T; loader: Record<string, unknown> }>;
|
18 | config?(
|
19 | this: import('webpack').loader.LoaderContext,
|
20 | configuration: import('@babel/core').PartialConfig,
|
21 | loaderArguments: { source: string; map?: unknown; customOptions: T },
|
22 | ): import('@babel/core').TransformOptions;
|
23 | };
|
24 | function custom<T>(customizer: BabelLoaderCustomizer<T>): import('webpack').loader.Loader;
|
25 | }
|