id
int64
0
3.78k
code
stringlengths
13
37.9k
declarations
stringlengths
16
64.6k
3,400
constructor(options: IgnorePluginOptions)
type IgnorePluginOptions = | { /** * A RegExp to test the context (directory) against. */ contextRegExp?: RegExp; /** * A RegExp to test the request against. */ resourceRegExp: RegExp; } | { /** * A filter function for resource and context. */ checkResource: (resource: str...
3,401
constructor(options: IgnorePluginOptions)
type IgnorePluginOptions = | { /** * A RegExp to test the context (directory) against. */ contextRegExp?: RegExp; /** * A RegExp to test the request against. */ resourceRegExp: RegExp; } | { /** * A filter function for resource and context. */ checkResource: (resource: str...
3,402
checkIgnore(resolveData: ResolveData): undefined | false
interface ResolveData { contextInfo: ModuleFactoryCreateDataContextInfo; resolveOptions?: ResolveOptionsWebpackOptions; context: string; request: string; assertions?: Record<string, any>; dependencies: ModuleDependency[]; dependencyType: string; createData: Partial<NormalModuleCreateData & { settings: ModuleSet...
3,403
getContent(context: Context): string | Source
type Context = string;
3,404
getEndContent(context: Context): undefined | string | Source
type Context = string;
3,405
renderModule( module: Module, renderContext: ChunkRenderContext, hooks: CompilationHooksJavascriptModulesPlugin, factory: boolean ): Source
interface Module { hot: webpack.Hot; }
3,406
renderModule( module: Module, renderContext: ChunkRenderContext, hooks: CompilationHooksJavascriptModulesPlugin, factory: boolean ): Source
class Module extends DependenciesBlock { constructor(type: string, context?: string, layer?: string); type: string; context: null | string; layer: null | string; needId: boolean; debugId: number; resolveOptions: ResolveOptionsWebpackOptions; factoryMeta?: object; useSourceMap: boolean; useSimpleSourceMap: boo...
3,407
renderModule( module: Module, renderContext: ChunkRenderContext, hooks: CompilationHooksJavascriptModulesPlugin, factory: boolean ): Source
interface CompilationHooksJavascriptModulesPlugin { renderModuleContent: SyncWaterfallHook<[Source, Module, ChunkRenderContext]>; renderModuleContainer: SyncWaterfallHook< [Source, Module, ChunkRenderContext] >; renderModulePackage: SyncWaterfallHook<[Source, Module, ChunkRenderContext]>; renderChunk: SyncWaterf...
3,408
renderModule( module: Module, renderContext: ChunkRenderContext, hooks: CompilationHooksJavascriptModulesPlugin, factory: boolean ): Source
interface ChunkRenderContext { /** * the chunk */ chunk: Chunk; /** * the dependency templates */ dependencyTemplates: DependencyTemplates; /** * the runtime template */ runtimeTemplate: RuntimeTemplate; /** * the module graph */ moduleGraph: ModuleGraph; /** * the chunk graph */ chunk...
3,409
renderChunk( renderContext: RenderContext, hooks: CompilationHooksJavascriptModulesPlugin ): Source
interface RenderContext { /** * the chunk */ chunk: Chunk; /** * the dependency templates */ dependencyTemplates: DependencyTemplates; /** * the runtime template */ runtimeTemplate: RuntimeTemplate; /** * the module graph */ moduleGraph: ModuleGraph; /** * the chunk graph */ chunkGraph...
3,410
renderChunk( renderContext: RenderContext, hooks: CompilationHooksJavascriptModulesPlugin ): Source
interface CompilationHooksJavascriptModulesPlugin { renderModuleContent: SyncWaterfallHook<[Source, Module, ChunkRenderContext]>; renderModuleContainer: SyncWaterfallHook< [Source, Module, ChunkRenderContext] >; renderModulePackage: SyncWaterfallHook<[Source, Module, ChunkRenderContext]>; renderChunk: SyncWaterf...
3,411
renderMain( renderContext: MainRenderContext, hooks: CompilationHooksJavascriptModulesPlugin, compilation: Compilation ): Source
class Compilation { /** * Creates an instance of Compilation. */ constructor(compiler: Compiler, params: CompilationParams); hooks: Readonly<{ buildModule: SyncHook<[Module]>; rebuildModule: SyncHook<[Module]>; failedModule: SyncHook<[Module, WebpackError]>; succeedModule: SyncHook<[Module]>; stillVali...
3,412
renderMain( renderContext: MainRenderContext, hooks: CompilationHooksJavascriptModulesPlugin, compilation: Compilation ): Source
interface CompilationHooksJavascriptModulesPlugin { renderModuleContent: SyncWaterfallHook<[Source, Module, ChunkRenderContext]>; renderModuleContainer: SyncWaterfallHook< [Source, Module, ChunkRenderContext] >; renderModulePackage: SyncWaterfallHook<[Source, Module, ChunkRenderContext]>; renderChunk: SyncWaterf...
3,413
renderMain( renderContext: MainRenderContext, hooks: CompilationHooksJavascriptModulesPlugin, compilation: Compilation ): Source
interface MainRenderContext { /** * the chunk */ chunk: Chunk; /** * the dependency templates */ dependencyTemplates: DependencyTemplates; /** * the runtime template */ runtimeTemplate: RuntimeTemplate; /** * the module graph */ moduleGraph: ModuleGraph; /** * the chunk graph */ chunkG...
3,414
updateHashWithBootstrap( hash: Hash, renderContext: RenderBootstrapContext, hooks: CompilationHooksJavascriptModulesPlugin ): void
class Hash { constructor(); /** * Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding} */ update(data: string | Buffer, inputEncoding?: string): Hash; /** * Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding} */ digest(encod...
3,415
updateHashWithBootstrap( hash: Hash, renderContext: RenderBootstrapContext, hooks: CompilationHooksJavascriptModulesPlugin ): void
interface RenderBootstrapContext { /** * the chunk */ chunk: Chunk; /** * results of code generation */ codeGenerationResults: CodeGenerationResults; /** * the runtime template */ runtimeTemplate: RuntimeTemplate; /** * the module graph */ moduleGraph: ModuleGraph; /** * the chunk graph ...
3,416
updateHashWithBootstrap( hash: Hash, renderContext: RenderBootstrapContext, hooks: CompilationHooksJavascriptModulesPlugin ): void
interface CompilationHooksJavascriptModulesPlugin { renderModuleContent: SyncWaterfallHook<[Source, Module, ChunkRenderContext]>; renderModuleContainer: SyncWaterfallHook< [Source, Module, ChunkRenderContext] >; renderModulePackage: SyncWaterfallHook<[Source, Module, ChunkRenderContext]>; renderChunk: SyncWaterf...
3,417
renderBootstrap( renderContext: RenderBootstrapContext, hooks: CompilationHooksJavascriptModulesPlugin ): { header: string[]; beforeStartup: string[]; startup: string[]; afterStartup: string[]; allowInlineStartup: boolean; }
interface RenderBootstrapContext { /** * the chunk */ chunk: Chunk; /** * results of code generation */ codeGenerationResults: CodeGenerationResults; /** * the runtime template */ runtimeTemplate: RuntimeTemplate; /** * the module graph */ moduleGraph: ModuleGraph; /** * the chunk graph ...
3,418
renderBootstrap( renderContext: RenderBootstrapContext, hooks: CompilationHooksJavascriptModulesPlugin ): { header: string[]; beforeStartup: string[]; startup: string[]; afterStartup: string[]; allowInlineStartup: boolean; }
interface CompilationHooksJavascriptModulesPlugin { renderModuleContent: SyncWaterfallHook<[Source, Module, ChunkRenderContext]>; renderModuleContainer: SyncWaterfallHook< [Source, Module, ChunkRenderContext] >; renderModulePackage: SyncWaterfallHook<[Source, Module, ChunkRenderContext]>; renderChunk: SyncWaterf...
3,419
renderRequire( renderContext: RenderBootstrapContext, hooks: CompilationHooksJavascriptModulesPlugin ): string
interface RenderBootstrapContext { /** * the chunk */ chunk: Chunk; /** * results of code generation */ codeGenerationResults: CodeGenerationResults; /** * the runtime template */ runtimeTemplate: RuntimeTemplate; /** * the module graph */ moduleGraph: ModuleGraph; /** * the chunk graph ...
3,420
renderRequire( renderContext: RenderBootstrapContext, hooks: CompilationHooksJavascriptModulesPlugin ): string
interface CompilationHooksJavascriptModulesPlugin { renderModuleContent: SyncWaterfallHook<[Source, Module, ChunkRenderContext]>; renderModuleContainer: SyncWaterfallHook< [Source, Module, ChunkRenderContext] >; renderModulePackage: SyncWaterfallHook<[Source, Module, ChunkRenderContext]>; renderChunk: SyncWaterf...
3,421
static getCompilationHooks( compilation: Compilation ): CompilationHooksJavascriptModulesPlugin
class Compilation { /** * Creates an instance of Compilation. */ constructor(compiler: Compiler, params: CompilationParams); hooks: Readonly<{ buildModule: SyncHook<[Module]>; rebuildModule: SyncHook<[Module]>; failedModule: SyncHook<[Module, WebpackError]>; succeedModule: SyncHook<[Module]>; stillVali...
3,422
(chunk: Chunk, chunkGraph: ChunkGraph) => boolean
class Chunk { constructor(name?: string, backCompat?: boolean); id: null | string | number; ids: null | (string | number)[]; debugId: number; name: string; idNameHints: SortableSet<string>; preventIntegration: boolean; filenameTemplate: | null | string | ((arg0: PathData, arg1?: AssetInfo) => string); cs...
3,423
(chunk: Chunk, chunkGraph: ChunkGraph) => boolean
class ChunkGraph { constructor(moduleGraph: ModuleGraph, hashFunction?: string | typeof Hash); moduleGraph: ModuleGraph; connectChunkAndModule(chunk: Chunk, module: Module): void; disconnectChunkAndModule(chunk: Chunk, module: Module): void; disconnectChunk(chunk: Chunk): void; attachModules(chunk: Chunk, modules...
3,424
static getCompilationHooks( compilation: Compilation ): JsonpCompilationPluginHooks
class Compilation { /** * Creates an instance of Compilation. */ constructor(compiler: Compiler, params: CompilationParams); hooks: Readonly<{ buildModule: SyncHook<[Module]>; rebuildModule: SyncHook<[Module]>; failedModule: SyncHook<[Module, WebpackError]>; succeedModule: SyncHook<[Module]>; stillVali...
3,425
(warning: StatsError, textValue: string) => boolean
type StatsError = KnownStatsError & Record<string, any>;
3,426
(arg0: Compilation) => WebpackError[]
class Compilation { /** * Creates an instance of Compilation. */ constructor(compiler: Compiler, params: CompilationParams); hooks: Readonly<{ buildModule: SyncHook<[Module]>; rebuildModule: SyncHook<[Module]>; failedModule: SyncHook<[Module, WebpackError]>; succeedModule: SyncHook<[Module]>; stillVali...
3,427
( compiler: Compiler, callback: (err?: Error, api?: BackendApi) => void ) => void
interface BackendApi { dispose: (arg0?: Error) => void; module: (arg0: Module) => { client: string; data: string; active: boolean }; }
3,428
( compiler: Compiler, callback: (err?: Error, api?: BackendApi) => void ) => void
class Compiler { constructor(context: string, options?: WebpackOptionsNormalized); hooks: Readonly<{ initialize: SyncHook<[]>; shouldEmit: SyncBailHook<[Compilation], boolean>; done: AsyncSeriesHook<[Stats]>; afterDone: SyncHook<[Stats]>; additionalPass: AsyncSeriesHook<[]>; beforeRun: AsyncSeriesHook<[Co...
3,429
(err?: Error, api?: BackendApi) => void
interface BackendApi { dispose: (arg0?: Error) => void; module: (arg0: Module) => { client: string; data: string; active: boolean }; }
3,430
(compiler: Compiler) => Promise<BackendApi>
class Compiler { constructor(context: string, options?: WebpackOptionsNormalized); hooks: Readonly<{ initialize: SyncHook<[]>; shouldEmit: SyncBailHook<[Compilation], boolean>; done: AsyncSeriesHook<[Stats]>; afterDone: SyncHook<[Stats]>; additionalPass: AsyncSeriesHook<[]>; beforeRun: AsyncSeriesHook<[Co...
3,431
(module: Module) => boolean
interface Module { hot: webpack.Hot; }
3,432
(module: Module) => boolean
class Module extends DependenciesBlock { constructor(type: string, context?: string, layer?: string); type: string; context: null | string; layer: null | string; needId: boolean; debugId: number; resolveOptions: ResolveOptionsWebpackOptions; factoryMeta?: object; useSourceMap: boolean; useSimpleSourceMap: boo...
3,433
constructor( name: LibraryName, target: string, umdNamedDefine: boolean, auxiliaryComment: AuxiliaryComment, exportProperty: LibraryExport )
type LibraryName = string | string[] | LibraryCustomUmdObject;
3,434
constructor( name: LibraryName, target: string, umdNamedDefine: boolean, auxiliaryComment: AuxiliaryComment, exportProperty: LibraryExport )
type LibraryName = string[] | string | LibraryCustomUmdObject;
3,435
constructor( name: LibraryName, target: string, umdNamedDefine: boolean, auxiliaryComment: AuxiliaryComment, exportProperty: LibraryExport )
type LibraryName = string[] | string | LibraryCustomUmdObject;
3,436
constructor( name: LibraryName, target: string, umdNamedDefine: boolean, auxiliaryComment: AuxiliaryComment, exportProperty: LibraryExport )
type LibraryName = string[] | string | LibraryCustomUmdObject;
3,437
constructor( name: LibraryName, target: string, umdNamedDefine: boolean, auxiliaryComment: AuxiliaryComment, exportProperty: LibraryExport )
type AuxiliaryComment = string | LibraryCustomUmdCommentObject;
3,438
constructor( name: LibraryName, target: string, umdNamedDefine: boolean, auxiliaryComment: AuxiliaryComment, exportProperty: LibraryExport )
type AuxiliaryComment = string | LibraryCustomUmdCommentObject;
3,439
constructor( name: LibraryName, target: string, umdNamedDefine: boolean, auxiliaryComment: AuxiliaryComment, exportProperty: LibraryExport )
type AuxiliaryComment = string | LibraryCustomUmdCommentObject;
3,440
constructor( name: LibraryName, target: string, umdNamedDefine: boolean, auxiliaryComment: AuxiliaryComment, exportProperty: LibraryExport )
type AuxiliaryComment = string | LibraryCustomUmdCommentObject;
3,441
constructor( name: LibraryName, target: string, umdNamedDefine: boolean, auxiliaryComment: AuxiliaryComment, exportProperty: LibraryExport )
type LibraryExport = string | string[];
3,442
constructor( name: LibraryName, target: string, umdNamedDefine: boolean, auxiliaryComment: AuxiliaryComment, exportProperty: LibraryExport )
type LibraryExport = string[] | string;
3,443
constructor( name: LibraryName, target: string, umdNamedDefine: boolean, auxiliaryComment: AuxiliaryComment, exportProperty: LibraryExport )
type LibraryExport = string[] | string;
3,444
constructor( name: LibraryName, target: string, umdNamedDefine: boolean, auxiliaryComment: AuxiliaryComment, exportProperty: LibraryExport )
type LibraryExport = string[] | string;
3,445
constructor(options?: LimitChunkCountPluginOptions)
interface LimitChunkCountPluginOptions { /** * Constant overhead for a chunk. */ chunkOverhead?: number; /** * Multiplicator for initial chunks. */ entryChunkMultiplicator?: number; /** * Limit the maximum number of chunks using a value greater greater than or equal to 1. */ maxChunks: number; }
3,446
constructor(options?: LimitChunkCountPluginOptions)
interface LimitChunkCountPluginOptions { /** * Constant overhead for a chunk. */ chunkOverhead?: number; /** * Multiplicator for initial chunks. */ entryChunkMultiplicator?: number; /** * Limit the maximum number of chunks using a value greater greater than or equal to 1. */ maxChunks: number; }
3,447
static getCompilationHooks( compilation: Compilation ): LoadScriptCompilationHooks
class Compilation { /** * Creates an instance of Compilation. */ constructor(compiler: Compiler, params: CompilationParams); hooks: Readonly<{ buildModule: SyncHook<[Module]>; rebuildModule: SyncHook<[Module]>; failedModule: SyncHook<[Module, WebpackError]>; succeedModule: SyncHook<[Module]>; stillVali...
3,448
constructor(options?: LoaderOptionsPluginOptions)
interface LoaderOptionsPluginOptions { [index: string]: any; /** * Whether loaders should be in debug mode or not. debug will be removed as of webpack 3. */ debug?: boolean; /** * Where loaders can be switched to minimize mode. */ minimize?: boolean; /** * A configuration object that can be used to c...
3,449
constructor(options?: LoaderOptionsPluginOptions)
interface LoaderOptionsPluginOptions { /** * Whether loaders should be in debug mode or not. debug will be removed as of webpack 3. */ debug?: boolean; /** * Where loaders can be switched to minimize mode. */ minimize?: boolean; /** * A configuration object that can be used to configure older loaders. ...
3,450
constructor(options: MinChunkSizePluginOptions)
interface MinChunkSizePluginOptions { /** * Constant overhead for a chunk. */ chunkOverhead?: number; /** * Multiplicator for initial chunks. */ entryChunkMultiplicator?: number; /** * Minimum number of characters. */ minChunkSize: number; }
3,451
constructor(options: MinChunkSizePluginOptions)
interface MinChunkSizePluginOptions { /** * Constant overhead for a chunk. */ chunkOverhead?: number; /** * Multiplicator for initial chunks. */ entryChunkMultiplicator?: number; /** * Minimum number of characters. */ minChunkSize: number; }
3,452
getExportsType( moduleGraph: ModuleGraph, strict: boolean ): "namespace" | "default-only" | "default-with-named" | "dynamic"
class ModuleGraph { constructor(); setParents( dependency: Dependency, block: DependenciesBlock, module: Module, indexInBlock?: number ): void; getParentModule(dependency: Dependency): Module; getParentBlock(dependency: Dependency): DependenciesBlock; getParentBlockIndex(dependency: Dependency): number; ...
3,453
addPresentationalDependency(presentationalDependency: Dependency): void
class Dependency { constructor(); weak: boolean; optional: boolean; get type(): string; get category(): string; loc: DependencyLocation; setLoc( startLine?: any, startColumn?: any, endLine?: any, endColumn?: any ): void; getContext(): undefined | string; getResourceIdentifier(): null | string; couldA...
3,454
addCodeGenerationDependency(codeGenerationDependency: Dependency): void
class Dependency { constructor(); weak: boolean; optional: boolean; get type(): string; get category(): string; loc: DependencyLocation; setLoc( startLine?: any, startColumn?: any, endLine?: any, endColumn?: any ): void; getContext(): undefined | string; getResourceIdentifier(): null | string; couldA...
3,455
addWarning(warning: WebpackError): void
class WebpackError extends Error { /** * Creates an instance of WebpackError. */ constructor(message?: string); details: any; module: Module; loc: DependencyLocation; hideStack: boolean; chunk: Chunk; file: string; serialize(__0: { write: any }): void; deserialize(__0: { read: any }): void; /** * Crea...
3,456
addError(error: WebpackError): void
class WebpackError extends Error { /** * Creates an instance of WebpackError. */ constructor(message?: string); details: any; module: Module; loc: DependencyLocation; hideStack: boolean; chunk: Chunk; file: string; serialize(__0: { write: any }): void; deserialize(__0: { read: any }): void; /** * Crea...
3,457
isOptional(moduleGraph: ModuleGraph): boolean
class ModuleGraph { constructor(); setParents( dependency: Dependency, block: DependenciesBlock, module: Module, indexInBlock?: number ): void; getParentModule(dependency: Dependency): Module; getParentBlock(dependency: Dependency): DependenciesBlock; getParentBlockIndex(dependency: Dependency): number; ...
3,458
isAccessibleInChunk( chunkGraph: ChunkGraph, chunk: Chunk, ignoreChunk?: Chunk ): boolean
class Chunk { constructor(name?: string, backCompat?: boolean); id: null | string | number; ids: null | (string | number)[]; debugId: number; name: string; idNameHints: SortableSet<string>; preventIntegration: boolean; filenameTemplate: | null | string | ((arg0: PathData, arg1?: AssetInfo) => string); cs...
3,459
isAccessibleInChunk( chunkGraph: ChunkGraph, chunk: Chunk, ignoreChunk?: Chunk ): boolean
class ChunkGraph { constructor(moduleGraph: ModuleGraph, hashFunction?: string | typeof Hash); moduleGraph: ModuleGraph; connectChunkAndModule(chunk: Chunk, module: Module): void; disconnectChunkAndModule(chunk: Chunk, module: Module): void; disconnectChunk(chunk: Chunk): void; attachModules(chunk: Chunk, modules...
3,460
isAccessibleInChunkGroup( chunkGraph: ChunkGraph, chunkGroup: ChunkGroup, ignoreChunk?: Chunk ): boolean
class Chunk { constructor(name?: string, backCompat?: boolean); id: null | string | number; ids: null | (string | number)[]; debugId: number; name: string; idNameHints: SortableSet<string>; preventIntegration: boolean; filenameTemplate: | null | string | ((arg0: PathData, arg1?: AssetInfo) => string); cs...
3,461
isAccessibleInChunkGroup( chunkGraph: ChunkGraph, chunkGroup: ChunkGroup, ignoreChunk?: Chunk ): boolean
class ChunkGraph { constructor(moduleGraph: ModuleGraph, hashFunction?: string | typeof Hash); moduleGraph: ModuleGraph; connectChunkAndModule(chunk: Chunk, module: Module): void; disconnectChunkAndModule(chunk: Chunk, module: Module): void; disconnectChunk(chunk: Chunk): void; attachModules(chunk: Chunk, modules...
3,462
hasReasonForChunk( chunk: Chunk, moduleGraph: ModuleGraph, chunkGraph: ChunkGraph ): boolean
class ModuleGraph { constructor(); setParents( dependency: Dependency, block: DependenciesBlock, module: Module, indexInBlock?: number ): void; getParentModule(dependency: Dependency): Module; getParentBlock(dependency: Dependency): DependenciesBlock; getParentBlockIndex(dependency: Dependency): number; ...
3,463
hasReasonForChunk( chunk: Chunk, moduleGraph: ModuleGraph, chunkGraph: ChunkGraph ): boolean
class Chunk { constructor(name?: string, backCompat?: boolean); id: null | string | number; ids: null | (string | number)[]; debugId: number; name: string; idNameHints: SortableSet<string>; preventIntegration: boolean; filenameTemplate: | null | string | ((arg0: PathData, arg1?: AssetInfo) => string); cs...
3,464
hasReasonForChunk( chunk: Chunk, moduleGraph: ModuleGraph, chunkGraph: ChunkGraph ): boolean
class ChunkGraph { constructor(moduleGraph: ModuleGraph, hashFunction?: string | typeof Hash); moduleGraph: ModuleGraph; connectChunkAndModule(chunk: Chunk, module: Module): void; disconnectChunkAndModule(chunk: Chunk, module: Module): void; disconnectChunk(chunk: Chunk): void; attachModules(chunk: Chunk, modules...
3,465
hasReasons(moduleGraph: ModuleGraph, runtime: RuntimeSpec): boolean
class ModuleGraph { constructor(); setParents( dependency: Dependency, block: DependenciesBlock, module: Module, indexInBlock?: number ): void; getParentModule(dependency: Dependency): Module; getParentBlock(dependency: Dependency): DependenciesBlock; getParentBlockIndex(dependency: Dependency): number; ...
3,466
hasReasons(moduleGraph: ModuleGraph, runtime: RuntimeSpec): boolean
type RuntimeSpec = undefined | string | SortableSet<string>;
3,467
needBuild( context: NeedBuildContext, callback: (arg0?: null | WebpackError, arg1?: boolean) => void ): void
interface NeedBuildContext { compilation: Compilation; fileSystemInfo: FileSystemInfo; valueCacheVersions: Map<string, string | Set<string>>; }
3,468
build( options: WebpackOptionsNormalized, compilation: Compilation, resolver: ResolverWithOptions, fs: InputFileSystem, callback: (arg0?: WebpackError) => void ): void
class WebpackError extends Error { /** * Creates an instance of WebpackError. */ constructor(message?: string); details: any; module: Module; loc: DependencyLocation; hideStack: boolean; chunk: Chunk; file: string; serialize(__0: { write: any }): void; deserialize(__0: { read: any }): void; /** * Crea...
3,469
build( options: WebpackOptionsNormalized, compilation: Compilation, resolver: ResolverWithOptions, fs: InputFileSystem, callback: (arg0?: WebpackError) => void ): void
type ResolverWithOptions = Resolver & WithOptions;
3,470
build( options: WebpackOptionsNormalized, compilation: Compilation, resolver: ResolverWithOptions, fs: InputFileSystem, callback: (arg0?: WebpackError) => void ): void
interface InputFileSystem { readFile: ( arg0: string, arg1: (arg0?: null | NodeJS.ErrnoException, arg1?: string | Buffer) => void ) => void; readJson?: ( arg0: string, arg1: (arg0?: null | Error | NodeJS.ErrnoException, arg1?: any) => void ) => void; readlink: ( arg0: string, arg1: (arg0?: null | NodeJ...
3,471
build( options: WebpackOptionsNormalized, compilation: Compilation, resolver: ResolverWithOptions, fs: InputFileSystem, callback: (arg0?: WebpackError) => void ): void
interface WebpackOptionsNormalized { /** * Set the value of `require.amd` and `define.amd`. Or disable AMD support. */ amd?: false | { [index: string]: any }; /** * Report the first error as a hard error instead of tolerating it. */ bail?: boolean; /** * Cache generated modules and chunks to improve pe...
3,472
build( options: WebpackOptionsNormalized, compilation: Compilation, resolver: ResolverWithOptions, fs: InputFileSystem, callback: (arg0?: WebpackError) => void ): void
interface WebpackOptionsNormalized { /** * Set the value of `require.amd` and `define.amd`. Or disable AMD support. */ amd?: Amd; /** * Report the first error as a hard error instead of tolerating it. */ bail?: Bail; /** * Cache generated modules and chunks to improve performance for multiple incremental...
3,473
build( options: WebpackOptionsNormalized, compilation: Compilation, resolver: ResolverWithOptions, fs: InputFileSystem, callback: (arg0?: WebpackError) => void ): void
class Compilation { /** * Creates an instance of Compilation. */ constructor(compiler: Compiler, params: CompilationParams); hooks: Readonly<{ buildModule: SyncHook<[Module]>; rebuildModule: SyncHook<[Module]>; failedModule: SyncHook<[Module, WebpackError]>; succeedModule: SyncHook<[Module]>; stillVali...
3,474
(arg0?: WebpackError) => void
class WebpackError extends Error { /** * Creates an instance of WebpackError. */ constructor(message?: string); details: any; module: Module; loc: DependencyLocation; hideStack: boolean; chunk: Chunk; file: string; serialize(__0: { write: any }): void; deserialize(__0: { read: any }): void; /** * Crea...
3,475
libIdent(options: LibIdentOptions): null | string
interface LibIdentOptions { /** * absolute context path to which lib ident is relative to */ context: string; /** * object for caching */ associatedObjectForCache?: Object; }
3,476
getConcatenationBailoutReason( context: ConcatenationBailoutReasonContext ): undefined | string
interface ConcatenationBailoutReasonContext { /** * the module graph */ moduleGraph: ModuleGraph; /** * the chunk graph */ chunkGraph: ChunkGraph; }
3,477
getSideEffectsConnectionState(moduleGraph: ModuleGraph): ConnectionState
class ModuleGraph { constructor(); setParents( dependency: Dependency, block: DependenciesBlock, module: Module, indexInBlock?: number ): void; getParentModule(dependency: Dependency): Module; getParentBlock(dependency: Dependency): DependenciesBlock; getParentBlockIndex(dependency: Dependency): number; ...
3,478
codeGeneration(context: CodeGenerationContext): CodeGenerationResult
interface CodeGenerationContext { /** * the dependency templates */ dependencyTemplates: DependencyTemplates; /** * the runtime template */ runtimeTemplate: RuntimeTemplate; /** * the module graph */ moduleGraph: ModuleGraph; /** * the chunk graph */ chunkGraph: ChunkGraph; /** * the runt...
3,479
chunkCondition(chunk: Chunk, compilation: Compilation): boolean
class Compilation { /** * Creates an instance of Compilation. */ constructor(compiler: Compiler, params: CompilationParams); hooks: Readonly<{ buildModule: SyncHook<[Module]>; rebuildModule: SyncHook<[Module]>; failedModule: SyncHook<[Module, WebpackError]>; succeedModule: SyncHook<[Module]>; stillVali...
3,480
chunkCondition(chunk: Chunk, compilation: Compilation): boolean
class Chunk { constructor(name?: string, backCompat?: boolean); id: null | string | number; ids: null | (string | number)[]; debugId: number; name: string; idNameHints: SortableSet<string>; preventIntegration: boolean; filenameTemplate: | null | string | ((arg0: PathData, arg1?: AssetInfo) => string); cs...
3,481
updateCacheModule(module: Module): void
interface Module { hot: webpack.Hot; }
3,482
updateCacheModule(module: Module): void
class Module extends DependenciesBlock { constructor(type: string, context?: string, layer?: string); type: string; context: null | string; layer: null | string; needId: boolean; debugId: number; resolveOptions: ResolveOptionsWebpackOptions; factoryMeta?: object; useSourceMap: boolean; useSimpleSourceMap: boo...
3,483
create( data: ModuleFactoryCreateData, callback: (arg0?: Error, arg1?: ModuleFactoryResult) => void ): void
interface ModuleFactoryResult { /** * the created module or unset if no module was created */ module?: Module; fileDependencies?: Set<string>; contextDependencies?: Set<string>; missingDependencies?: Set<string>; /** * allow to use the unsafe cache */ cacheable?: boolean; }
3,484
create( data: ModuleFactoryCreateData, callback: (arg0?: Error, arg1?: ModuleFactoryResult) => void ): void
interface ModuleFactoryCreateData { contextInfo: ModuleFactoryCreateDataContextInfo; resolveOptions?: ResolveOptionsWebpackOptions; context: string; dependencies: Dependency[]; }
3,485
(arg0?: Error, arg1?: ModuleFactoryResult) => void
interface ModuleFactoryResult { /** * the created module or unset if no module was created */ module?: Module; fileDependencies?: Set<string>; contextDependencies?: Set<string>; missingDependencies?: Set<string>; /** * allow to use the unsafe cache */ cacheable?: boolean; }
3,486
constructor(options: ModuleFederationPluginOptions)
interface ModuleFederationPluginOptions { /** * Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request. */ exposes?: (string | ExposesObject)[] | ExposesObject; /** * The filename of the container as r...
3,487
constructor(options: ModuleFederationPluginOptions)
interface ModuleFederationPluginOptions { /** * Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request. */ exposes?: Exposes; /** * The filename of the container as relative path inside the `output.path...
3,488
setParents( dependency: Dependency, block: DependenciesBlock, module: Module, indexInBlock?: number ): void
class Dependency { constructor(); weak: boolean; optional: boolean; get type(): string; get category(): string; loc: DependencyLocation; setLoc( startLine?: any, startColumn?: any, endLine?: any, endColumn?: any ): void; getContext(): undefined | string; getResourceIdentifier(): null | string; couldA...
3,489
setParents( dependency: Dependency, block: DependenciesBlock, module: Module, indexInBlock?: number ): void
interface Module { hot: webpack.Hot; }
3,490
setParents( dependency: Dependency, block: DependenciesBlock, module: Module, indexInBlock?: number ): void
class Module extends DependenciesBlock { constructor(type: string, context?: string, layer?: string); type: string; context: null | string; layer: null | string; needId: boolean; debugId: number; resolveOptions: ResolveOptionsWebpackOptions; factoryMeta?: object; useSourceMap: boolean; useSimpleSourceMap: boo...
3,491
getParentModule(dependency: Dependency): Module
class Dependency { constructor(); weak: boolean; optional: boolean; get type(): string; get category(): string; loc: DependencyLocation; setLoc( startLine?: any, startColumn?: any, endLine?: any, endColumn?: any ): void; getContext(): undefined | string; getResourceIdentifier(): null | string; couldA...
3,492
getParentBlock(dependency: Dependency): DependenciesBlock
class Dependency { constructor(); weak: boolean; optional: boolean; get type(): string; get category(): string; loc: DependencyLocation; setLoc( startLine?: any, startColumn?: any, endLine?: any, endColumn?: any ): void; getContext(): undefined | string; getResourceIdentifier(): null | string; couldA...
3,493
getParentBlockIndex(dependency: Dependency): number
class Dependency { constructor(); weak: boolean; optional: boolean; get type(): string; get category(): string; loc: DependencyLocation; setLoc( startLine?: any, startColumn?: any, endLine?: any, endColumn?: any ): void; getContext(): undefined | string; getResourceIdentifier(): null | string; couldA...
3,494
setResolvedModule( originModule: Module, dependency: Dependency, module: Module ): void
class Dependency { constructor(); weak: boolean; optional: boolean; get type(): string; get category(): string; loc: DependencyLocation; setLoc( startLine?: any, startColumn?: any, endLine?: any, endColumn?: any ): void; getContext(): undefined | string; getResourceIdentifier(): null | string; couldA...
3,495
setResolvedModule( originModule: Module, dependency: Dependency, module: Module ): void
interface Module { hot: webpack.Hot; }
3,496
setResolvedModule( originModule: Module, dependency: Dependency, module: Module ): void
class Module extends DependenciesBlock { constructor(type: string, context?: string, layer?: string); type: string; context: null | string; layer: null | string; needId: boolean; debugId: number; resolveOptions: ResolveOptionsWebpackOptions; factoryMeta?: object; useSourceMap: boolean; useSimpleSourceMap: boo...
3,497
updateModule(dependency: Dependency, module: Module): void
class Dependency { constructor(); weak: boolean; optional: boolean; get type(): string; get category(): string; loc: DependencyLocation; setLoc( startLine?: any, startColumn?: any, endLine?: any, endColumn?: any ): void; getContext(): undefined | string; getResourceIdentifier(): null | string; couldA...
3,498
updateModule(dependency: Dependency, module: Module): void
interface Module { hot: webpack.Hot; }
3,499
updateModule(dependency: Dependency, module: Module): void
class Module extends DependenciesBlock { constructor(type: string, context?: string, layer?: string); type: string; context: null | string; layer: null | string; needId: boolean; debugId: number; resolveOptions: ResolveOptionsWebpackOptions; factoryMeta?: object; useSourceMap: boolean; useSimpleSourceMap: boo...