These types are not exported by webpack, but they are available to TypeScript consumers.
<number>[index: {string}]{AliasOptionNewRequest}
<boolean><boolean><object>
Include all modules matching any of these conditions.<boolean><number>Advanced options for cleaning assets.
<Map><number>
,
<CompiledAliasOption>
[]> bucketed by first char code<boolean><boolean>Options object as provided by the user.
amd<false>|<object>Set the value ofrequire.amdanddefine.amd. Or disable AMD support.bail<boolean>Report the first error as a hard error instead of tolerating it.cache<boolean>|<FileCacheOptions>|<MemoryCacheOptions>Cache generated modules and chunks to improve performance for multiple incremental builds.context<string>The base directory (absolute path!) for resolving theentryoption. Ifoutput.pathinfois set, the included pathinfo is shortened to this directory.dependencies<string>[] References to other configurations to depend on.devtool<string>|<false>|<object>[] A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).dotenv<boolean>|<DotenvPluginOptions>Enable and configure the Dotenv plugin to load environment variables from .env files.entry<string>|<string>[] |<EntryObject>|<object>The entry point(s) of the compilation.experiments<Experiments>Enables/Disables experiments (experimental features with relax SemVer compatibility).extends<string>|<string>[] Extend configuration from another configuration (only works when using webpack-cli).externals<string>|<RegExp>|<ExternalItemObjectKnown>|<ExternalItemObjectUnknown>|<object>|<object>|<ExternalItem>[] Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends onoutput.libraryTarget.externalsPresets<ExternalsPresets>Enable presets of externals for specific targets.externalsType<"asset">|<"module">|<"asset-url">|<"css-import">|<"global">|<"import">|<"promise">|<"this">|<"var">|<"script">|<"commonjs">|<"jsonp">|<"assign">|<"window">|<"self">|<"commonjs2">|<"commonjs-module">|<"commonjs-static">|<"amd">|<"amd-require">|<"umd">|<"umd2">|<"system">|<"module-import">|<"node-commonjs">|<"css-url">Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).ignoreWarnings<RegExp>|<object>|<object>[] Ignore specific warnings.infrastructureLogging{InfrastructureLogging} Options for infrastructure level logging.loader<Loader>Custom values available in the loader context.mode<"development">|<"none">|<"production">Enable production optimizations or development hints.module<ModuleOptions>Options affecting the normal modules (NormalModuleFactory).name<string>Name of the configuration. Used when loading multiple configurations.node<false>|<NodeOptions>Include polyfills or mocks for various node stuff.optimization{Optimization} Enables/Disables integrated optimizations.output<Output>Options affecting the output of the compilation.outputoptions tell webpack how to write the compiled files to disk.parallelism<number>The number of parallel processed modules in the compilation.performance<false>|<PerformanceOptions>Configuration for web performance recommendations.plugins<false>|<"">|<0>|<WebpackPluginInstance>|<object>|<null>|<undefined>[] Add additional plugins to the compiler.profile<boolean>Capture timing information for each module.recordsInputPath<string>|<false>Store compiler state to a json file.recordsOutputPath<string>|<false>Load compiler state from a json file.recordsPath<string>|<false>Store/Load compiler state from/to a json file. This will result in persistent ids of modules and chunks. An absolute path is expected.recordsPathis used forrecordsInputPathandrecordsOutputPathif they left undefined.resolve<ResolveOptions>Options for the resolver.resolveLoader<ResolveOptions>Options for the resolver when resolving loaders.snapshot<SnapshotOptionsWebpackOptions>Options affecting how file system snapshots are created and validated.stats<boolean>|<"none">|<"verbose">|<"summary">|<"errors-only">|<"errors-warnings">|<"minimal">|<"normal">|<"detailed">|<StatsOptions>Stats options object or preset name.target<string>|<false>|<string>[] Environment to build for. An array of environments to build for all of them when possible.validate<boolean>Enable validation of webpack configuration. Defaults to true in development mode. In production mode, defaults to true unless futureDefaults is enabled, then defaults to false.watch<boolean>Enter watch mode, which rebuilds on file change.watchOptions<WatchOptions>Options for the watcher.
Options for consuming shared modules.
<Consumes><string>exposes{Exposes} 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.filename<string>The filename for this container relative path inside theoutput.pathdirectory.library<LibraryOptions>Options for library.name<string>The name for this container.runtime<string>|<false>The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.shareScope<string>The name of the share scope which is shared with the host (defaults to 'default').
<Remotes><ExternalsType><string>Generator options for css modules.
Parser options for css modules.
exportType<"link">|<"text">|<"css-style-sheet">|<"style">Configure how CSS content is exported as default.import<boolean>Enable/disable@importat-rules handling.namedExports<boolean>Use ES modules named export for css exports.url<boolean>Enable/disableurl()/image-set()/src()/image()functions handling.
<string><boolean><boolean><string><string><string>Options for Dotenv plugin.
<string>
|
<false><string>No generator options are supported for this module type.
No parser options are supported for this module type.
<boolean>[index: {string}]<any>
Generator options for html modules.
<boolean>.html
output file alongside the module's JavaScript export. When unset, extraction defaults to
true
for HTML modules used as compilation entries (HTML entry points) and
false
for HTML modules imported from JavaScript. Filenames follow
output.htmlFilename
/
output.htmlChunkFilename
.Options for building http resources.
<string>
|
<false><boolean><string><string><boolean>Parser options for javascript modules.
amd<false>|<object>Set the value ofrequire.amdanddefine.amd. Or disable AMD support.anonymousDefaultExportName<boolean>Set .name to "default" for anonymous default export functions and classes per ES spec. Disable to reduce output size when .name is not needed.browserify<boolean>Enable/disable special handling for browserify bundles.commonjs<boolean>Enable/disable parsing of CommonJs syntax.commonjsMagicComments<boolean>Enable/disable parsing of magic comments in CommonJs syntax.createRequire<string>|<boolean>Enable/disable parsing "import { createRequire } from "module"" and evaluating createRequire().deferImport<boolean>Enable experimental tc39 proposal https://github.com/tc39/proposal-defer-import-eval. This allows to defer execution of a module until it's first use.dynamicImportFetchPriority<false>|<"auto">|<"low">|<"high">Specifies global fetchPriority for dynamic import.dynamicImportMode<"eager">|<"weak">|<"lazy">|<"lazy-once">Specifies global mode for dynamic import.dynamicImportPrefetch<number>|<boolean>Specifies global prefetch for dynamic import.dynamicImportPreload<number>|<boolean>Specifies global preload for dynamic import.dynamicUrl<boolean>Enable/disable parsing of dynamic URL.exportsPresence<false>|<"error">|<"warn">|<"auto">Specifies the behavior of invalid export names in "import ... from ..." and "export ... from ...".exprContextCritical<boolean>Enable warnings for full dynamic dependencies.exprContextRecursive<boolean>Enable recursive directory lookup for full dynamic dependencies.exprContextRegExp<boolean>|<RegExp>Sets the default regular expression for full dynamic dependencies.exprContextRequest<string>Set the default request for full dynamic dependencies.harmony<boolean>Enable/disable parsing of EcmaScript Modules syntax.import<boolean>Enable/disable parsing of import() syntax.importExportsPresence<false>|<"error">|<"warn">|<"auto">Specifies the behavior of invalid export names in "import ... from ...".importMeta<boolean>|<"preserve-unknown">Enable/disable evaluating import.meta. Set to 'preserve-unknown' to preserve unknown properties for runtime evaluation.importMetaContext<boolean>Enable/disable evaluating import.meta.webpackContext.node<false>|<NodeOptions>Include polyfills or mocks for various node stuff.overrideStrict<"strict">|<"non-strict">Override the module to strict or non-strict. This may affect the behavior of the module (some behaviors differ between strict and non-strict), so please configure this option carefully.parse<object>Function to parser source code.reexportExportsPresence<false>|<"error">|<"warn">|<"auto">Specifies the behavior of invalid export names in "export ... from ...". This might be useful to disable during the migration from "export ... from ..." to "export type ... from ..." when reexporting types in TypeScript.requireContext<boolean>Enable/disable parsing of require.context syntax.requireEnsure<boolean>Enable/disable parsing of require.ensure syntax.requireInclude<boolean>Enable/disable parsing of require.include syntax.requireJs<boolean>Enable/disable parsing of require.js special syntax like require.config, requirejs.config, require.version and requirejs.onError.sourceImport<boolean>Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase.strictExportPresence<boolean>Deprecated in favor of "exportsPresence". Emit errors instead of warnings when imported names don't exist in imported module.strictThisContextOnImports<boolean>Handle the this context correctly according to the spec for namespace objects.system<boolean>Enable/disable parsing of System.js special syntax like System.import, System.get, System.set and System.register.typescript<boolean>Enable typescript support.unknownContextCritical<boolean>Enable warnings when using the require function in a not statically analyse-able way.unknownContextRecursive<boolean>Enable recursive directory lookup when using the require function in a not statically analyse-able way.unknownContextRegExp<boolean>|<RegExp>Sets the regular expression when using the require function in a not statically analyse-able way.unknownContextRequest<string>Sets the request when using the require function in a not statically analyse-able way.url<boolean>|<"relative">Enable/disable parsing of new URL() syntax.worker<boolean>|<string>[] Disable or configure parsing of WebWorker syntax like new Worker() or navigator.serviceWorker.register().wrappedContextCritical<boolean>Enable warnings for partial dynamic dependencies.wrappedContextRecursive<boolean>Enable recursive directory lookup for partial dynamic dependencies.wrappedContextRegExp<RegExp>Set the inner regular expression for partial dynamic dependencies.
Generator options for json modules.
<boolean>JSON.parse
when the JSON string is longer than 20 characters.Parser options for JSON modules.
<string>
|
<false><number><boolean><boolean><boolean><boolean><number><boolean><string>
|
<false><number><string>
|
<false><string><boolean><boolean>
|
<"auto"><object><object><boolean><boolean><boolean><boolean><boolean><boolean><boolean><boolean><boolean><boolean><false>
|
<"error">
|
<"warn">
|
<"info">
|
<"log">
|
<"none">
|
<"verbose"><object><boolean><string>
|
<false><number><string>
|
<false><number><boolean><boolean><object>Options for the default backend.
<string><"http">
|
<"https">
Specifies the protocol the client should use to connect to the server.<ServerOptions>
<
<IncomingMessage>
,
<ServerResponse>
> |
<ServerOptions>
<
<IncomingMessage>
,
<ServerResponse>
> |
<object>
Specifies how to create the server handling the EventSource requests.Options for compiling entrypoints and import()s only when they are accessed.
<object>
|
<object>
|
<LazyCompilationDefaultBackendOptions><boolean><boolean>[index: {string}]<any>
<string><boolean><boolean><string><string><string><boolean><string>manifest.json
inside the 'output.path' directory.<object><object><string><object><number>infrastructureLogging{InfrastructureLogging} infrastructure logging options
Options object for node compatibility features.
<boolean>
|
<"warn-mock">
|
<"mock">
|
<"node-module">
|
<"eval-only"><boolean>
|
<"warn-mock">
|
<"mock">
|
<"node-module">
|
<"eval-only"><boolean>
|
<"warn"><boolean>[index: {string}]<any>
Configuration object for web performance recommendations.
<object><false>
|
<"error">
|
<"warning">
Sets the format of the hints: warnings, errors or nothing at all.<number><number><string>path.resolve(__dirname, 'profiling/events.json')
. Defaults to
events.json
.Options object for the ProgressPlugin.
<boolean><boolean><number><boolean><object><boolean><number><"entries">
|
<"dependencies">
|
<"modules">
|
<null>
Collect percent algorithm. By default it calculates by a median from modules, entries and dependencies percent.provides{Provides} Modules that should be provided as shared modules to the share scope. When provided, property name is used to match modules, otherwise this is automatically inferred from share key.shareScope<string>Share scope name used for all provided modules (defaults to 'default').
Returns location of targetPath relative to rootPath.
<boolean><string><HashFunction>Options for shared modules.
Options affecting how file system snapshots are created and validated.
<object><object><object><object><object><string>
|
<false>
|
<TemplatePathFn><PathData>
> |
<null>
Appends the given value to the original asset. Usually the #sourceMappingURL comment. [url] is replaced with a URL to the source map file. false disables the appending.<boolean><boolean><object>
Exclude modules that match the given value from source map generation.<string><object>
Decide whether to ignore source files that match the specified value in the SourceMap.<object>
Include source maps for module paths that match the given value.<boolean><string><boolean><string><string>Returns location of targetPath relative to rootPath.
Returns location of targetPath relative to rootPath.
<string><string><string><"auto">
References to other tsconfig files. 'auto' inherits from TypeScript config, or an array of relative/absolute pathsOptions for building virtual resources.
Options for the watcher.
<number><boolean><boolean>Normalized webpack options object.
amd<false>|<object>Set the value ofrequire.amdanddefine.amd. Or disable AMD support.bail<boolean>Report the first error as a hard error instead of tolerating it.cache<CacheOptionsNormalized>Cache generated modules and chunks to improve performance for multiple incremental builds.context<string>The base directory (absolute path!) for resolving theentryoption. Ifoutput.pathinfois set, the included pathinfo is shortened to this directory.dependencies<string>[] References to other configurations to depend on.devServer<false>|<object>Options for the webpack-dev-server.devtool<string>|<false>|<object>[] A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).dotenv<boolean>|<DotenvPluginOptions>Enable and configure the Dotenv plugin to load environment variables from .env files.entry<EntryNormalized>The entry point(s) of the compilation.experiments{ExperimentsNormalized} Enables/Disables experiments (experimental features with relax SemVer compatibility).externals<Externals>Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends onoutput.libraryTarget.externalsPresets<ExternalsPresets>Enable presets of externals for specific targets.externalsType<"asset">|<"module">|<"asset-url">|<"css-import">|<"global">|<"import">|<"promise">|<"this">|<"var">|<"script">|<"commonjs">|<"jsonp">|<"assign">|<"window">|<"self">|<"commonjs2">|<"commonjs-module">|<"commonjs-static">|<"amd">|<"amd-require">|<"umd">|<"umd2">|<"system">|<"module-import">|<"node-commonjs">|<"css-url">Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).ignoreWarnings<object>[] Ignore specific warnings.infrastructureLogging{InfrastructureLogging} Options for infrastructure level logging.loader<Loader>Custom values available in the loader context.mode<"development">|<"none">|<"production">Enable production optimizations or development hints.module<ModuleOptionsNormalized>Options affecting the normal modules (NormalModuleFactory).name<string>Name of the configuration. Used when loading multiple configurations.node<NodeWebpackOptions>Include polyfills or mocks for various node stuff.optimization{OptimizationNormalized} Enables/Disables integrated optimizations.output{OutputNormalized} Normalized options affecting the output of the compilation.outputoptions tell webpack how to write the compiled files to disk.parallelism<number>The number of parallel processed modules in the compilation.performance<false>|<PerformanceOptions>Configuration for web performance recommendations.plugins<WebpackPluginInstance>|<object>[] Add additional plugins to the compiler.profile<boolean>Capture timing information for each module.recordsInputPath<string>|<false>Store compiler state to a json file.recordsOutputPath<string>|<false>Load compiler state from a json file.resolve<ResolveOptions>Options for the resolver.resolveLoader<ResolveOptions>Options for the resolver when resolving loaders.snapshot<SnapshotOptionsWebpackOptions>Options affecting how file system snapshots are created and validated.stats<StatsValue>Stats options object or preset name.target<string>|<false>|<string>[] Environment to build for. An array of environments to build for all of them when possible.validate<boolean>Enable validation of webpack configuration. Defaults to true in development mode. In production mode, defaults to true unless futureDefaults is enabled, then defaults to false.watch<boolean>Enter watch mode, which rebuilds on file change.watchOptions<WatchOptions>Options for the watcher.
<object><string><string><string>
|
<DllReferencePluginOptionsManifest><string><string><"var">
|
<"assign">
|
<"this">
|
<"window">
|
<"global">
|
<"commonjs">
|
<"commonjs2">
|
<"commonjs-module">
|
<"amd">
|
<"amd-require">
|
<"umd">
|
<"umd2">
|
<"jsonp">
|
<"system">
How the dll is exposed (libraryTarget, defaults to manifest.type).<"object">
|
<"require">
The way how the export of the dll bundle is used.<string><string><string><string><"var">
|
<"assign">
|
<"this">
|
<"window">
|
<"global">
|
<"commonjs">
|
<"commonjs2">
|
<"commonjs-module">
|
<"amd">
|
<"amd-require">
|
<"umd">
|
<"umd2">
|
<"jsonp">
|
<"system">
How the dll is exposed (libraryTarget).<"object">
|
<"require">
The way how the export of the dll bundle is used.<object><false>
|
<NodeOptions><KnownNormalizedStatsOptions>
|
<Omit><StatsOptions>
,
<"context">
|
<"chunkGroups">
|
<"requestShortener">
|
<"chunksSort">
|
<"modulesSort">
|
<"chunkModulesSort">
|
<"nestedModulesSort">
|
<"assetsSort">
|
<"ids">
|
<"cachedAssets">
|
<"groupAssetsByEmitStatus">
|
<"groupAssetsByPath">
|
<"groupAssetsByExtension">
|
<"assetsSpace">
|
<"excludeAssets">
|
<"excludeModules">
|
<"warningsFilter">
|
<"cachedModules">
|
<"orphanModules">
|
<"dependentModules">
|
<"runtimeModules">
|
<"groupModulesByCacheStatus">
|
<"groupModulesByLayer">
|
<"groupModulesByAttributes">
|
<"groupModulesByPath">
|
<"groupModulesByExtension">
|
<"groupModulesByType">
|
<"entrypoints">
|
<"chunkGroupAuxiliary">
|
<"chunkGroupChildren">
|
<"chunkGroupMaxAssets">
|
<"modulesSpace">
|
<"chunkModulesSpace">
|
<"nestedModulesSpace">
|
<"logging">
|
<"loggingDebug">
|
<"loggingTrace">
|
<"_env">
> |
<Record>
<
<string>
,
<any>
><StreamOptions>
|
<object><string>infrastructureLogging{InfrastructureLoggingNormalizedWithDefaults}
<NonNullable>output{OutputNormalizedWithDefaults}
optimization{OptimizationNormalizedWithDefaults}
<NonNullable><NonNullable><StatsValue>
><NonNullable><NonNullable><undefined>
|
<boolean>
><number><SnapshotNormalizedWithDefaults><ExternalsPresetsNormalizedWithDefaults><NonNullable><undefined>
|
<"import">
|
<"var">
|
<"module">
|
<"assign">
|
<"this">
|
<"window">
|
<"self">
|
<"global">
|
<"commonjs">
|
<"commonjs2">
|
<"commonjs-module">
|
<"commonjs-static">
|
<"amd">
|
<"amd-require">
|
<"umd">
|
<"umd2">
|
<"jsonp">
|
<"system">
|
<"promise">
|
<"module-import">
|
<"script">
|
<"node-commonjs">
|
<"asset">
|
<"asset-url">
|
<"css-import">
|
<"css-url">
><NonNullable><undefined>
|
<boolean>
><NonNullable><NonNullable><NonNullable><NonNullable><StreamOptions>
|
<object>