project bootstrap

This commit is contained in:
2023-11-25 18:12:47 -05:00
parent 5cd875ae80
commit 6ef22d88f9
39139 changed files with 4944609 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
import webpack, { Compiler, Module } from 'webpack';
import { EmitCountMap, InternalOptions } from './';
interface BeforeRunHookArgs {
emitCountMap: EmitCountMap;
manifestFileName: string;
}
interface EmitHookArgs {
compiler: Compiler;
emitCountMap: EmitCountMap;
manifestAssetId: string;
manifestFileName: string;
moduleAssets: Record<any, any>;
options: InternalOptions;
}
declare const getCompilerHooks: (compiler: Compiler) => any;
declare const beforeRunHook: ({ emitCountMap, manifestFileName }: BeforeRunHookArgs, _: Compiler, callback: Function) => void;
declare const emitHook: ({ compiler, emitCountMap, manifestAssetId, manifestFileName, moduleAssets, options }: EmitHookArgs, compilation: webpack.compilation.Compilation) => void;
interface LegacyModule extends Module {
userRequest?: any;
}
declare const normalModuleLoaderHook: ({ moduleAssets }: {
moduleAssets: Record<any, any>;
}, loaderContext: webpack.loader.LoaderContext, module: LegacyModule) => void;
export { beforeRunHook, emitHook, getCompilerHooks, normalModuleLoaderHook };