| 1 | import webpack, { Compiler, Module } from 'webpack';
|
|---|
| 2 | import { EmitCountMap, InternalOptions } from './';
|
|---|
| 3 | interface BeforeRunHookArgs {
|
|---|
| 4 | emitCountMap: EmitCountMap;
|
|---|
| 5 | manifestFileName: string;
|
|---|
| 6 | }
|
|---|
| 7 | interface EmitHookArgs {
|
|---|
| 8 | compiler: Compiler;
|
|---|
| 9 | emitCountMap: EmitCountMap;
|
|---|
| 10 | manifestAssetId: string;
|
|---|
| 11 | manifestFileName: string;
|
|---|
| 12 | moduleAssets: Record<any, any>;
|
|---|
| 13 | options: InternalOptions;
|
|---|
| 14 | }
|
|---|
| 15 | declare const getCompilerHooks: (compiler: Compiler) => any;
|
|---|
| 16 | declare const beforeRunHook: ({ emitCountMap, manifestFileName }: BeforeRunHookArgs, _: Compiler, callback: Function) => void;
|
|---|
| 17 | declare const emitHook: ({ compiler, emitCountMap, manifestAssetId, manifestFileName, moduleAssets, options }: EmitHookArgs, compilation: webpack.compilation.Compilation) => void;
|
|---|
| 18 | interface LegacyModule extends Module {
|
|---|
| 19 | userRequest?: any;
|
|---|
| 20 | }
|
|---|
| 21 | declare const normalModuleLoaderHook: ({ moduleAssets }: {
|
|---|
| 22 | moduleAssets: Record<any, any>;
|
|---|
| 23 | }, loaderContext: webpack.loader.LoaderContext, module: LegacyModule) => void;
|
|---|
| 24 | export { beforeRunHook, emitHook, getCompilerHooks, normalModuleLoaderHook };
|
|---|