diff --git a/pages/v5.x/_media/GOVERNANCE.md b/pages/v5.x/_media/GOVERNANCE.md deleted file mode 100644 index 6d004f5..0000000 --- a/pages/v5.x/_media/GOVERNANCE.md +++ /dev/null @@ -1,3 +0,0 @@ -# webpack Project Governance - -The webpack project (and organization) follows the webpack's governance model defined within [the webpack governance repository](https://github.com/webpack/governance/blob/main/README.md). diff --git a/pages/v5.x/_media/WORKING_GROUP.md b/pages/v5.x/_media/WORKING_GROUP.md deleted file mode 100644 index 3578afb..0000000 --- a/pages/v5.x/_media/WORKING_GROUP.md +++ /dev/null @@ -1,48 +0,0 @@ -# Webpack Core Working Group - -This document outlines the webpack core working group. - ---- - -## Working Group Name - -Webpack Core Working Group - -## Purpose and Responsibilities - -The purpose of this working group is to facilitate, implement and fix problems and features within the core of webpack. This core includes tasking such as bugfixes, feature implementation and in general maintaining the main logic of webpack. - -Each member of the working group is required to adhere to the [governance model of webpack](https://github.com/webpack/governance). In addition to having responsibility of the main part of webpack, the working group will manage other parts of the webpack organization repositories in such way they see fit. - -## Goals & Objectives - -- Develop features within the webpack organization and core areas. -- Fix bugs within webpack organization and core areas. -- Maintain and steer webpack in general together with the Technical Steering Committee. -- Ensure performance and code coverage is sustained and top-notch. - -## Members - -- [snitin315](https://github.com/snitin315) - - **Nitin Kumar** <> (he/him) -- [thelarkinn](https://github.com/thelarkinn) - - **Sean Larkin** <> (he/him) -- [jhnns](https://github.com/jhnns) - - **Johannes Ewald** <> -- [sokra](https://github.com/sokra) - - **Tobias Koppers** <> -- [spacek33z](https://github.com/spacek33z) - - **Kees Kluskens** <> - -## Communication - -Meetings are hosted on an as-needed basis and private discussions are held in the #core-wg channel. For public feedback and communication, please use an appropriate channel within the webpack discord (e.g `#development-general`). - -## Resources - -- https://github.com/webpack -- https://github.com/webpack/governance - -## Reporting & Updates - -- The working group can choose to involve the webpack TSC for feedback and updates, but has full autonomy of making changes to any codebase within webpack. diff --git a/pages/v5.x/globals.md b/pages/v5.x/globals.md index afd8ee8..036bb3f 100644 --- a/pages/v5.x/globals.md +++ b/pages/v5.x/globals.md @@ -232,7 +232,7 @@ After this method has succeeded the cache can only be restored when build depend * `contentHash` {Record} * `cssFilenameTemplate` {string|object} * `debugId` {number} -* `entryModule` {Module} +* `entryModule` {Module} * `extraAsync` {boolean} * `filenameTemplate` {string|object} * `files` {Set} @@ -320,8 +320,6 @@ After this method has succeeded the cache can only be restored when build depend #### `getChunkMaps(realHash)` -> Stability: 0 - Deprecated - * `realHash` {boolean} * Returns: {ChunkMaps} @@ -915,22 +913,16 @@ After this method has succeeded the cache can only be restored when build depend #### Static method: `clearChunkGraphForChunk(chunk)` -> Stability: 0 - Deprecated - * `chunk` {Chunk} * Returns: {void} #### Static method: `clearChunkGraphForModule(module)` -> Stability: 0 - Deprecated - * `module` {Module} * Returns: {void} #### Static method: `getChunkGraphForChunk(chunk, deprecateMessage, deprecationCode)` -> Stability: 0 - Deprecated - * `chunk` {Chunk} * `deprecateMessage` {string} * `deprecationCode` {string} @@ -938,8 +930,6 @@ After this method has succeeded the cache can only be restored when build depend #### Static method: `getChunkGraphForModule(module, deprecateMessage, deprecationCode)` -> Stability: 0 - Deprecated - * `module` {Module} * `deprecateMessage` {string} * `deprecationCode` {string} @@ -947,16 +937,12 @@ After this method has succeeded the cache can only be restored when build depend #### Static method: `setChunkGraphForChunk(chunk, chunkGraph)` -> Stability: 0 - Deprecated - * `chunk` {Chunk} * `chunkGraph` {ChunkGraph} * Returns: {void} #### Static method: `setChunkGraphForModule(module, chunkGraph)` -> Stability: 0 - Deprecated - * `module` {Module} * `chunkGraph` {ChunkGraph} * Returns: {void} @@ -1184,7 +1170,7 @@ Performs an unshift of a specific chunk ### Properties -* `options` {CleanOptions} +* `options` {CleanOptions&object} ### Methods @@ -1296,7 +1282,7 @@ Creates an instance of Compilation. * `codeGeneratedModules` {WeakSet} * `codeGenerationResults` {CodeGenerationResults} * `comparedForEmitAssets` {Set} -* `compilationDependencies` {object} +* `compilationDependencies` {object} * `compiler` {Compiler} * `compilerPath` {string} * `contextDependencies` {LazySet} @@ -1440,8 +1426,6 @@ If `module` is passed, `loc` and `request` must also be passed. #### `assignDepth(module)` -> Stability: 0 - Deprecated - * `module` {Module} * Returns: {void} @@ -1542,13 +1526,13 @@ from parent (or top level compiler) and creates a child Compilation ##### Call Signature -* `options` {FactorizeModuleOptions|object} +* `options` {FactorizeModuleOptions&object} * `callback` {object} * Returns: {void} ##### Call Signature -* `options` {FactorizeModuleOptions|object} +* `options` {FactorizeModuleOptions&object} * `callback` {object} * Returns: {void} @@ -1855,19 +1839,6 @@ Fetches a module from a compilation by its identifier * `callback` {object} * Returns: {void} -#### `validate(schema, value[, options][, check])` - -###### T - -`T` *extends* {object|object[]} = {object} -* `schema` {JSONSchema4|ExtendedSchema|JSONSchema6|ExtendedSchema|JSONSchema7|ExtendedSchema|object} -* `value` {T} -* `options` {ValidationErrorConfiguration} -* `check` {object} -* Returns: {void} - -Schema validation function with optional pre-compiled check - #### `watch(watchOptions, handler)` * `watchOptions` {WatchOptions} @@ -1942,7 +1913,7 @@ Schema validation function with optional pre-compiled check #### Static method: `matchModuleReference(name)` * `name` {string} -* Returns: {ModuleReferenceOptions|object} +* Returns: {ModuleReferenceOptions&object} *** @@ -2141,8 +2112,6 @@ implement this method to allow the occurrence order plugin to count correctly #### `getReference(moduleGraph)` -> Stability: 0 - Deprecated - * `moduleGraph` {ModuleGraph} * Returns: {never} @@ -2206,7 +2175,7 @@ Update the hash ### Properties -* `options` {DllPluginOptions} +* `options` {object} ### Methods @@ -2254,7 +2223,7 @@ Apply the plugin ### Properties -* `options` {DotenvPluginOptions} +* `options` {object} ### Methods @@ -2718,7 +2687,7 @@ Apply the plugin * `hasEqualsChunks` {any} * `hash` {string} * `hot` {boolean} -* `id` {string|number} +* `id` {string|number} * `index` {number} * `index2` {number} * `issuer` {Module} @@ -2726,7 +2695,7 @@ Apply the plugin * `layer` {string} * `moduleArgument` {string} * `needId` {boolean} -* `optimizationBailout` {string|object[]} +* `optimizationBailout` {string|object[]} * `optional` {boolean} * `parent` {DependenciesBlock} * `presentationalDependencies` {Dependency[]} @@ -2975,14 +2944,10 @@ This data will be passed to restoreFromUnsafeCache later. #### `needRebuild(fileTimestamps, contextTimestamps)` -> Stability: 0 - Deprecated - * `fileTimestamps` {Map} * `contextTimestamps` {Map} * Returns: {boolean} -Use needBuild instead - #### `originalSource()` * Returns: {Source} @@ -3022,15 +2987,11 @@ restore unsafe cache data #### `source(dependencyTemplates, runtimeTemplate[, type])` -> Stability: 0 - Deprecated - * `dependencyTemplates` {DependencyTemplates} * `runtimeTemplate` {RuntimeTemplate} * `type` {string} * Returns: {Source} -Use codeGeneration() instead - #### `updateCacheModule(module)` * `module` {Module} @@ -3046,20 +3007,6 @@ and properties. * `context` {UpdateHashContextDependency} * Returns: {void} -#### Static method: `getCompilationHooks(compilation)` - -* `compilation` {Compilation} -* Returns: {ExternalModuleHooks} - -#### Static method: `getSourceBasicTypes(module)` - -> Stability: 0 - Deprecated - -* `module` {Module} -* Returns: {ReadonlySet} - -In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method. - *** ## Class: `ExternalsPlugin` @@ -3068,14 +3015,14 @@ In webpack 6, call getSourceBasicTypes() directly on the module instance instead #### `new ExternalsPlugin(type, externals)` -* `type` {"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"commonjs"|"jsonp"|"promise"|"this"|"var"|"assign"|"window"|"self"|"commonjs2"|"commonjs-module"|"commonjs-static"|"amd"|"amd-require"|"umd"|"umd2"|"system"|"module-import"|"script"|"node-commonjs"|object} +* `type` {"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"promise"|"this"|"var"|"script"|"jsonp"|"system"|"commonjs"|"assign"|"amd"|"amd-require"|"umd"|"umd2"|"commonjs2"|"window"|"self"|"commonjs-static"|"commonjs-module"|"node-commonjs"|"module-import"|object} * `externals` {Externals} * Returns: {ExternalsPlugin} ### Properties * `externals` {Externals} -* `type` {"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"commonjs"|"jsonp"|"promise"|"this"|"var"|"assign"|"window"|"self"|"commonjs2"|"commonjs-module"|"commonjs-static"|"amd"|"amd-require"|"umd"|"umd2"|"system"|"module-import"|"script"|"node-commonjs"|object} +* `type` {"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"promise"|"this"|"var"|"script"|"jsonp"|"system"|"commonjs"|"assign"|"amd"|"amd-require"|"umd"|"umd2"|"commonjs2"|"window"|"self"|"commonjs-static"|"commonjs-module"|"node-commonjs"|"module-import"|object} ### Methods @@ -3177,7 +3124,7 @@ Apply the plugin * `contentHash` {Record} * `cssFilenameTemplate` {string|object} * `debugId` {number} -* `entryModule` {Module} +* `entryModule` {Module} * `extraAsync` {boolean} * `filenameTemplate` {string|object} * `files` {Set} @@ -3265,8 +3212,6 @@ Apply the plugin #### `getChunkMaps(realHash)` -> Stability: 0 - Deprecated - * `realHash` {boolean} * Returns: {ChunkMaps} @@ -3618,12 +3563,12 @@ Apply the plugin #### `new LoaderOptionsPlugin([options])` -* `options` {LoaderOptionsPluginOptions|MatchObject} +* `options` {LoaderOptionsPluginOptions&MatchObject} * Returns: {LoaderOptionsPlugin} ### Properties -* `options` {LoaderOptionsPluginOptions|MatchObject} +* `options` {LoaderOptionsPluginOptions&MatchObject} ### Methods @@ -3664,14 +3609,14 @@ Apply the plugin ### Constructors -#### `new ManifestPlugin([options])` +#### `new ManifestPlugin(options)` * `options` {ManifestPluginOptions} * Returns: {ManifestPlugin} ### Properties -* `options` {ManifestPluginOptions} +* `options` {ManifestPluginOptions&Required>} ### Methods @@ -3722,7 +3667,7 @@ Apply the plugin * `hasEqualsChunks` {any} * `hash` {string} * `hot` {boolean} -* `id` {string|number} +* `id` {string|number} * `index` {number} * `index2` {number} * `issuer` {Module} @@ -3730,7 +3675,7 @@ Apply the plugin * `layer` {string} * `moduleArgument` {string} * `needId` {boolean} -* `optimizationBailout` {string|object[]} +* `optimizationBailout` {string|object[]} * `optional` {boolean} * `parent` {DependenciesBlock} * `presentationalDependencies` {Dependency[]} @@ -3975,14 +3920,10 @@ This data will be passed to restoreFromUnsafeCache later. #### `needRebuild(fileTimestamps, contextTimestamps)` -> Stability: 0 - Deprecated - * `fileTimestamps` {Map} * `contextTimestamps` {Map} * Returns: {boolean} -Use needBuild instead - #### `originalSource()` * Returns: {Source} @@ -4014,15 +3955,11 @@ Use needBuild instead #### `source(dependencyTemplates, runtimeTemplate[, type])` -> Stability: 0 - Deprecated - * `dependencyTemplates` {DependencyTemplates} * `runtimeTemplate` {RuntimeTemplate} * `type` {string} * Returns: {Source} -Use codeGeneration() instead - #### `updateCacheModule(module)` * `module` {Module} @@ -4038,15 +3975,6 @@ and properties. * `context` {UpdateHashContextDependency} * Returns: {void} -#### Static method: `getSourceBasicTypes(module)` - -> Stability: 0 - Deprecated - -* `module` {Module} -* Returns: {ReadonlySet} - -In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method. - *** ## Class: `ModuleFactory` @@ -4414,15 +4342,11 @@ In webpack 6, call getSourceBasicTypes() directly on the module instance instead #### Static method: `clearModuleGraphForModule(module)` -> Stability: 0 - Deprecated - * `module` {Module} * Returns: {void} #### Static method: `getModuleGraphForModule(module, deprecateMessage, deprecationCode)` -> Stability: 0 - Deprecated - * `module` {Module} * `deprecateMessage` {string} * `deprecationCode` {string} @@ -4430,8 +4354,6 @@ In webpack 6, call getSourceBasicTypes() directly on the module instance instead #### Static method: `setModuleGraphForModule(module, moduleGraph)` -> Stability: 0 - Deprecated - * `module` {Module} * `moduleGraph` {ModuleGraph} * Returns: {void} @@ -4523,7 +4445,7 @@ In webpack 6, call getSourceBasicTypes() directly on the module instance instead * `hooks` {Readonly} * `inputFileSystem` {InputFileSystem} * `intermediateFileSystem` {IntermediateFileSystem} -* `options` {WebpackOptionsNormalized[]|MultiCompilerOptions} +* `options` {WebpackOptionsNormalized[]&MultiCompilerOptions} * `outputFileSystem` {OutputFileSystem} * `outputPath` {string} * `running` {boolean} @@ -4552,15 +4474,11 @@ In webpack 6, call getSourceBasicTypes() directly on the module instance instead #### `runWithDependencies(compilers, fn, callback)` -> Stability: 0 - Deprecated - * `compilers` {Compiler[]} * `fn` {object} * `callback` {CallbackWebpackFunction_2} * Returns: {void} -This method should have been private - #### `setDependencies(compiler, dependencies)` * `compiler` {Compiler} @@ -4605,12 +4523,12 @@ This method should have been private #### `toJson([options])` -* `options` {boolean|"verbose"|"none"|"summary"|"errors-only"|"errors-warnings"|"minimal"|"normal"|"detailed"|StatsOptions} +* `options` {boolean|"none"|"normal"|"verbose"|"detailed"|"minimal"|"errors-only"|"errors-warnings"|"summary"|StatsOptions} * Returns: {StatsCompilation} #### `toString([options])` -* `options` {boolean|"verbose"|"none"|"summary"|"errors-only"|"errors-warnings"|"minimal"|"normal"|"detailed"|StatsOptions} +* `options` {boolean|"none"|"normal"|"verbose"|"detailed"|"minimal"|"errors-only"|"errors-warnings"|"summary"|StatsOptions} * Returns: {string} *** @@ -4669,7 +4587,7 @@ Apply the plugin * `hasEqualsChunks` {any} * `hash` {string} * `hot` {boolean} -* `id` {string|number} +* `id` {string|number} * `index` {number} * `index2` {number} * `issuer` {Module} @@ -4679,7 +4597,7 @@ Apply the plugin * `matchResource` {string} * `moduleArgument` {string} * `needId` {boolean} -* `optimizationBailout` {string|object[]} +* `optimizationBailout` {string|object[]} * `optional` {boolean} * `parent` {DependenciesBlock} * `parser` {ParserClass} @@ -4691,7 +4609,7 @@ Apply the plugin * `request` {string} * `resolveOptions` {ResolveOptions} * `resource` {string} -* `resourceResolveData` {ResourceSchemeData|Partial} +* `resourceResolveData` {ResourceSchemeData&Partial} * `type` {string} * `used` {any} * `usedExports` {boolean|SortableSet} @@ -4969,14 +4887,10 @@ This data will be passed to restoreFromUnsafeCache later. #### `needRebuild(fileTimestamps, contextTimestamps)` -> Stability: 0 - Deprecated - * `fileTimestamps` {Map} * `contextTimestamps` {Map} * Returns: {boolean} -Use needBuild instead - #### `originalSource()` * Returns: {Source} @@ -5022,15 +4936,11 @@ restore unsafe cache data #### `source(dependencyTemplates, runtimeTemplate[, type])` -> Stability: 0 - Deprecated - * `dependencyTemplates` {DependencyTemplates} * `runtimeTemplate` {RuntimeTemplate} * `type` {string} * Returns: {Source} -Use codeGeneration() instead - #### `updateCacheModule(module)` * `module` {Module} @@ -5056,15 +4966,6 @@ and properties. * `compilation` {Compilation} * Returns: {NormalModuleCompilationHooks} -#### Static method: `getSourceBasicTypes(module)` - -> Stability: 0 - Deprecated - -* `module` {Module} -* Returns: {ReadonlySet} - -In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method. - *** ## Class: `NormalModuleReplacementPlugin` @@ -5181,15 +5082,14 @@ Apply the plugin * `dependenciesCount` {number} * `handler` {object} * `modulesCount` {number} -* `options` {ProgressPluginOptions} -* `percentBy` {"entries"|"modules"|"dependencies"} +* `percentBy` {"entries"|"dependencies"|"modules"} * `profile` {boolean} * `showActiveModules` {boolean} * `showDependencies` {boolean} * `showEntries` {boolean} * `showModules` {boolean} * `createDefaultHandler` {object} -* `defaultOptions` {Required>} +* `defaultOptions` {object} ### Methods @@ -5356,7 +5256,7 @@ Apply the plugin * `hasEqualsChunks` {any} * `hash` {string} * `hot` {boolean} -* `id` {string|number} +* `id` {string|number} * `index` {number} * `index2` {number} * `issuer` {Module} @@ -5365,7 +5265,7 @@ Apply the plugin * `moduleArgument` {string} * `name` {string} * `needId` {boolean} -* `optimizationBailout` {string|object[]} +* `optimizationBailout` {string|object[]} * `optional` {boolean} * `parent` {DependenciesBlock} * `presentationalDependencies` {Dependency[]} @@ -5630,14 +5530,10 @@ This data will be passed to restoreFromUnsafeCache later. #### `needRebuild(fileTimestamps, contextTimestamps)` -> Stability: 0 - Deprecated - * `fileTimestamps` {Map} * `contextTimestamps` {Map} * Returns: {boolean} -Use needBuild instead - #### `originalSource()` * Returns: {Source} @@ -5673,15 +5569,11 @@ Use needBuild instead #### `source(dependencyTemplates, runtimeTemplate[, type])` -> Stability: 0 - Deprecated - * `dependencyTemplates` {DependencyTemplates} * `runtimeTemplate` {RuntimeTemplate} * `type` {string} * Returns: {Source} -Use codeGeneration() instead - #### `updateCacheModule(module)` * `module` {Module} @@ -5697,15 +5589,6 @@ and properties. * `context` {UpdateHashContextDependency} * Returns: {void} -#### Static method: `getSourceBasicTypes(module)` - -> Stability: 0 - Deprecated - -* `module` {Module} -* Returns: {ReadonlySet} - -In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method. - *** ## Class: `SourceMapDevToolPlugin` @@ -5765,12 +5648,12 @@ Apply the plugin #### `toJson([options])` -* `options` {boolean|"verbose"|"none"|"summary"|"errors-only"|"errors-warnings"|"minimal"|"normal"|"detailed"|StatsOptions} +* `options` {boolean|"none"|"normal"|"verbose"|"detailed"|"minimal"|"errors-only"|"errors-warnings"|"summary"|StatsOptions} * Returns: {StatsCompilation} #### `toString([options])` -* `options` {boolean|"verbose"|"none"|"summary"|"errors-only"|"errors-warnings"|"minimal"|"normal"|"detailed"|StatsOptions} +* `options` {boolean|"none"|"normal"|"verbose"|"detailed"|"minimal"|"errors-only"|"errors-warnings"|"summary"|StatsOptions} * Returns: {string} *** @@ -5843,7 +5726,7 @@ Apply the plugin #### Static method: `renderRuntimeModules(runtimeModules, renderContext)` * `runtimeModules` {RuntimeModule[]} -* `renderContext` {RenderContextJavascriptModulesPlugin|object} +* `renderContext` {RenderContextJavascriptModulesPlugin&object} * Returns: {Source} #### Static method: `toComment(str)` @@ -5879,7 +5762,7 @@ Apply the plugin ### Properties -* `options` {WatchIgnorePluginOptions} +* `paths` {string|RegExp[]} ### Methods @@ -5953,7 +5836,7 @@ Apply the plugin ### Indexable -> \[`index`: {number}\]: {object} +\[`index`: {number}\]: {object} ### Constructors @@ -6320,9 +6203,9 @@ Options object as provided by the user. * `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 on `output.libraryTarget`. +* `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 on `output.libraryTarget`. * `externalsPresets` {ExternalsPresets} Enable presets of externals for specific targets. -* `externalsType` {"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"commonjs"|"jsonp"|"promise"|"this"|"var"|"assign"|"window"|"self"|"commonjs2"|"commonjs-module"|"commonjs-static"|"amd"|"amd-require"|"umd"|"umd2"|"system"|"module-import"|"script"|"node-commonjs"} Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value). +* `externalsType` {"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"promise"|"this"|"var"|"script"|"jsonp"|"system"|"commonjs"|"assign"|"amd"|"amd-require"|"umd"|"umd2"|"commonjs2"|"window"|"self"|"commonjs-static"|"commonjs-module"|"node-commonjs"|"module-import"} 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. @@ -6342,9 +6225,8 @@ Options object as provided by the user. * `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|"verbose"|"none"|"summary"|"errors-only"|"errors-warnings"|"minimal"|"normal"|"detailed"|StatsOptions} Stats options object or preset name. +* `stats` {boolean|"none"|"normal"|"verbose"|"detailed"|"minimal"|"errors-only"|"errors-warnings"|"summary"|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. @@ -6356,7 +6238,7 @@ Multiple entry bundles are created. The key is the entry name. The value can be ### Indexable -> \[`index`: {string}\]: {string|string[]|EntryDescription} +\[`index`: {string}\]: {string|string[]|EntryDescription} *** @@ -6388,7 +6270,7 @@ If an dependency matches exactly a property of the object, the property value is ### Indexable -> \[`index`: {string}\]: {ExternalItemValue} +\[`index`: {string}\]: {ExternalItemValue} *** @@ -6496,7 +6378,7 @@ Options for library. `ContextAdditions` = {object} -* `this` {NormalModuleLoaderContext|LoaderRunnerLoaderContext|LoaderPluginLoaderContext|HotModuleReplacementPluginLoaderContext|ContextAdditions} +* `this` {NormalModuleLoaderContext&LoaderRunnerLoaderContext&LoaderPluginLoaderContext&HotModuleReplacementPluginLoaderContext&ContextAdditions} * `content` {string} * `sourceMap` {string|RawSourceMap} * `additionalData` {AdditionalData} @@ -6670,7 +6552,7 @@ Specify options for each parser. `ContextAdditions` = {object} -* `this` {NormalModuleLoaderContext|LoaderRunnerLoaderContext|LoaderPluginLoaderContext|HotModuleReplacementPluginLoaderContext|ContextAdditions} +* `this` {NormalModuleLoaderContext&LoaderRunnerLoaderContext&LoaderPluginLoaderContext&HotModuleReplacementPluginLoaderContext&ContextAdditions} * `remainingRequest` {string} * `previousRequest` {string} * `data` {object} @@ -6703,7 +6585,7 @@ Specify options for each parser. `ContextAdditions` = {object} -* `this` {NormalModuleLoaderContext|LoaderRunnerLoaderContext|LoaderPluginLoaderContext|HotModuleReplacementPluginLoaderContext|ContextAdditions} +* `this` {NormalModuleLoaderContext&LoaderRunnerLoaderContext&LoaderPluginLoaderContext&HotModuleReplacementPluginLoaderContext&ContextAdditions} * `content` {Buffer} * `sourceMap` {string|RawSourceMap} * `additionalData` {AdditionalData} @@ -6737,7 +6619,7 @@ Specify options for each parser. * `context` {string} * `contextDependencies` {LazySet} * `contextInfo` {ModuleFactoryCreateDataContextInfo} -* `createData` {Partial} +* `createData` {Partial} * `dependencies` {ModuleDependency[]} * `dependencyType` {string} * `fileDependencies` {LazySet} @@ -6838,7 +6720,7 @@ Stats options object. * `cached` {boolean} Add information about cached (not built) modules (deprecated: use 'cachedModules' instead). * `cachedAssets` {boolean} Show cached assets (setting this to `false` only shows emitted files). * `cachedModules` {boolean} Add information about cached (not built) modules. -* `children` {boolean|"verbose"|"none"|"summary"|"errors-only"|"errors-warnings"|"minimal"|"normal"|"detailed"|StatsOptions|StatsValue[]} Add children information. +* `children` {boolean|"none"|"normal"|"verbose"|"detailed"|"minimal"|"errors-only"|"errors-warnings"|"summary"|StatsOptions|StatsValue[]} Add children information. * `chunkGroupAuxiliary` {boolean} Display auxiliary assets in chunk groups. * `chunkGroupChildren` {boolean} Display children of chunk groups. * `chunkGroupMaxAssets` {number} Limit of assets displayed in chunk groups. @@ -6879,7 +6761,7 @@ Stats options object. * `groupReasonsByOrigin` {boolean} Group reasons by their origin module. * `hash` {boolean} Add the hash of the compilation. * `ids` {boolean} Add ids. -* `logging` {boolean|"error"|"warn"|"info"|"log"|"verbose"|"none"} Add logging output. +* `logging` {boolean|"error"|"warn"|"info"|"log"|"none"|"verbose"} Add logging output. * `loggingDebug` {string|boolean|RegExp|FilterItemTypes[]|object} Include debug logging of specified loggers (i. e. for plugins or loaders). Filters can be Strings, RegExps or Functions. * `loggingTrace` {boolean} Add stack traces to logging output. * `moduleAssets` {boolean} Add information about assets inside modules. @@ -6930,7 +6812,7 @@ Normalized webpack options object. * `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 on `output.libraryTarget`. * `externalsPresets` {ExternalsPresets} Enable presets of externals for specific targets. -* `externalsType` {"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"commonjs"|"jsonp"|"promise"|"this"|"var"|"assign"|"window"|"self"|"commonjs2"|"commonjs-module"|"commonjs-static"|"amd"|"amd-require"|"umd"|"umd2"|"system"|"module-import"|"script"|"node-commonjs"} Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value). +* `externalsType` {"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"promise"|"this"|"var"|"script"|"jsonp"|"system"|"commonjs"|"assign"|"amd"|"amd-require"|"umd"|"umd2"|"commonjs2"|"window"|"self"|"commonjs-static"|"commonjs-module"|"node-commonjs"|"module-import"} 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. @@ -6951,7 +6833,6 @@ Normalized webpack options object. * `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. @@ -6963,7 +6844,7 @@ Plugin instance. ### Indexable -> \[`index`: {string}\]: {any} +\[`index`: {string}\]: {any} ### Properties @@ -6973,7 +6854,7 @@ Plugin instance. ## Type: `AssetInfo` -> **AssetInfo** = {KnownAssetInfo|Record} +> **AssetInfo** = {KnownAssetInfo&Record} *** @@ -6991,7 +6872,7 @@ Plugin instance. ## Type: `EntryOptions` -> **EntryOptions** = {object|Omit} +> **EntryOptions** = {object&Omit} ### Type Declaration @@ -7001,7 +6882,7 @@ Plugin instance. ## Type: `ExternalItem` -> **ExternalItem** = {string|RegExp|ExternalItemObjectKnown|ExternalItemObjectUnknown|object|object} +> **ExternalItem** = {string|RegExp|ExternalItemObjectKnown&ExternalItemObjectUnknown|object|object} *** @@ -7068,13 +6949,13 @@ Plugin instance. ## Type: `Externals` -> **Externals** = {string|RegExp|ExternalItemObjectKnown|ExternalItemObjectUnknown|object|object|ExternalItem[]} +> **Externals** = {string|RegExp|ExternalItemObjectKnown&ExternalItemObjectUnknown|object|object|ExternalItem[]} *** ## Type: `LoaderContext` -> **LoaderContext**\<`OptionsType`\> = {NormalModuleLoaderContext|LoaderRunnerLoaderContext|LoaderPluginLoaderContext|HotModuleReplacementPluginLoaderContext} +> **LoaderContext**\<`OptionsType`\> = {NormalModuleLoaderContext&LoaderRunnerLoaderContext&LoaderPluginLoaderContext&HotModuleReplacementPluginLoaderContext} ### Type Parameters @@ -7086,7 +6967,7 @@ Plugin instance. ## Type: `LoaderDefinition` -> **LoaderDefinition**\<`OptionsType`, `ContextAdditions`\> = {LoaderDefinitionFunction|object} +> **LoaderDefinition**\<`OptionsType`, `ContextAdditions`\> = {LoaderDefinitionFunction&object} ### Type Declaration @@ -7107,19 +6988,19 @@ Plugin instance. ## Type: `MultiConfiguration` -> **MultiConfiguration** = {ReadonlyArray|MultiCompilerOptions} +> **MultiConfiguration** = {ReadonlyArray&MultiCompilerOptions} *** ## Type: `ParserState` -> **ParserState** = {ParserStateBase|Record} +> **ParserState** = {ParserStateBase&Record} *** ## Type: `RawLoaderDefinition` -> **RawLoaderDefinition**\<`OptionsType`, `ContextAdditions`\> = {RawLoaderDefinitionFunction|object} +> **RawLoaderDefinition**\<`OptionsType`, `ContextAdditions`\> = {RawLoaderDefinitionFunction&object} ### Type Declaration @@ -7148,24 +7029,22 @@ Plugin instance. > **ResolvePluginInstance** = {object|object} -### Union Members - -#### Type Literal +### Type Declaration {object} -#### Index Signature +### Index Signature \[`index`: {string}\]: {any} * `apply` {object} The run point of the plugin, required method. -*** - -#### Function - {object} +* `this` {Resolver} +* `arg1` {Resolver} +* Returns: {void} + *** ## Type: `RuleSetCondition` @@ -7184,22 +7063,14 @@ Plugin instance. > **RuleSetUse** = {string|undefined|null|string|false|0|RuleSetUseFunction|object[]|RuleSetUseFunction|object} -### Union Members +### Type Declaration {string} -*** - {undefined|null|string|false|0|RuleSetUseFunction|object[]} -*** - {RuleSetUseFunction} -*** - -#### Type Literal - {object} * `ident` {string} Unique loader options identifier. @@ -7221,18 +7092,12 @@ Plugin instance. > **RuleSetUseItem** = {string|RuleSetUseFunction|object} -### Union Members +### Type Declaration {string} -*** - {RuleSetUseFunction} -*** - -#### Type Literal - {object} * `ident` {string} Unique loader options identifier. @@ -7243,85 +7108,85 @@ Plugin instance. ## Type: `StatsAsset` -> **StatsAsset** = {KnownStatsAsset|Record} +> **StatsAsset** = {KnownStatsAsset&Record} *** ## Type: `StatsChunk` -> **StatsChunk** = {KnownStatsChunk|Record} +> **StatsChunk** = {KnownStatsChunk&Record} *** ## Type: `StatsChunkGroup` -> **StatsChunkGroup** = {KnownStatsChunkGroup|Record} +> **StatsChunkGroup** = {KnownStatsChunkGroup&Record} *** ## Type: `StatsChunkOrigin` -> **StatsChunkOrigin** = {KnownStatsChunkOrigin|Record} +> **StatsChunkOrigin** = {KnownStatsChunkOrigin&Record} *** ## Type: `StatsCompilation` -> **StatsCompilation** = {KnownStatsCompilation|Record} +> **StatsCompilation** = {KnownStatsCompilation&Record} *** ## Type: `StatsError` -> **StatsError** = {KnownStatsError|Record} +> **StatsError** = {KnownStatsError&Record} *** ## Type: `StatsLogging` -> **StatsLogging** = {KnownStatsLogging|Record} +> **StatsLogging** = {KnownStatsLogging&Record} *** ## Type: `StatsLoggingEntry` -> **StatsLoggingEntry** = {KnownStatsLoggingEntry|Record} +> **StatsLoggingEntry** = {KnownStatsLoggingEntry&Record} *** ## Type: `StatsModule` -> **StatsModule** = {KnownStatsModule|Record} +> **StatsModule** = {KnownStatsModule&Record} *** ## Type: `StatsModuleIssuer` -> **StatsModuleIssuer** = {KnownStatsModuleIssuer|Record} +> **StatsModuleIssuer** = {KnownStatsModuleIssuer&Record} *** ## Type: `StatsModuleReason` -> **StatsModuleReason** = {KnownStatsModuleReason|Record} +> **StatsModuleReason** = {KnownStatsModuleReason&Record} *** ## Type: `StatsModuleTraceDependency` -> **StatsModuleTraceDependency** = {KnownStatsModuleTraceDependency|Record} +> **StatsModuleTraceDependency** = {KnownStatsModuleTraceDependency&Record} *** ## Type: `StatsModuleTraceItem` -> **StatsModuleTraceItem** = {KnownStatsModuleTraceItem|Record} +> **StatsModuleTraceItem** = {KnownStatsModuleTraceItem&Record} *** ## Type: `StatsProfile` -> **StatsProfile** = {KnownStatsProfile|Record} +> **StatsProfile** = {KnownStatsProfile&Record} *** @@ -7360,8 +7225,8 @@ Plugin instance. > `const` **validateSchema**: {object} -* `schema` {Parameters} -* `options` {Parameters} +* `schema` {Parameters[0]} +* `options` {Parameters[1]} * `validationConfiguration` {ValidationErrorConfiguration} * Returns: {void} diff --git a/pages/v5.x/index.md b/pages/v5.x/index.md index e4abe0c..93941f8 100644 --- a/pages/v5.x/index.md +++ b/pages/v5.x/index.md @@ -299,7 +299,7 @@ If you have discovered a 🐜 or have a feature suggestion, feel free to create ## Current project members -For information about the governance of the webpack project, see [GOVERNANCE.md](_media/GOVERNANCE.md). +For information about the governance of the webpack project, see [GOVERNANCE.md](./GOVERNANCE.md). ### TSC (Technical Steering Committee) @@ -316,7 +316,7 @@ For information about the governance of the webpack project, see [GOVERNANCE.md] ### Maintenance -This webpack repository is maintained by the [`Core Working Group`](_media/WORKING_GROUP.md). +This webpack repository is maintained by the [`Core Working Group`](./WORKING_GROUP.md). ## Sponsoring diff --git a/pages/v5.x/type-map.json b/pages/v5.x/type-map.json index 11ce1f6..dd268d5 100644 --- a/pages/v5.x/type-map.json +++ b/pages/v5.x/type-map.json @@ -23,17 +23,14 @@ "container.ContainerPlugin": "webpack/namespaces/container.md#containerplugin", "container.ContainerPlugin.constructor": "webpack/namespaces/container.md#constructor", "container.ContainerPlugin.constructor.ContainerPlugin": "webpack/namespaces/container.md#constructorcontainerplugin", - "container.ContainerPlugin.options": "webpack/namespaces/container.md#options", "container.ContainerPlugin.apply": "webpack/namespaces/container.md#apply", "container.ContainerReferencePlugin": "webpack/namespaces/container.md#containerreferenceplugin", "container.ContainerReferencePlugin.constructor": "webpack/namespaces/container.md#constructor", "container.ContainerReferencePlugin.constructor.ContainerReferencePlugin": "webpack/namespaces/container.md#constructorcontainerreferenceplugin", - "container.ContainerReferencePlugin.options": "webpack/namespaces/container.md#options", "container.ContainerReferencePlugin.apply": "webpack/namespaces/container.md#apply", "container.ModuleFederationPlugin": "webpack/namespaces/container.md#modulefederationplugin", "container.ModuleFederationPlugin.constructor": "webpack/namespaces/container.md#constructor", "container.ModuleFederationPlugin.constructor.ModuleFederationPlugin": "webpack/namespaces/container.md#constructormodulefederationplugin", - "container.ModuleFederationPlugin.options": "webpack/namespaces/container.md#options", "container.ModuleFederationPlugin.apply": "webpack/namespaces/container.md#apply", "container.ModuleFederationPlugin.getCompilationHooks": "webpack/namespaces/container.md#getcompilationhooks", "container.scope": "webpack/namespaces/container.md#scope", @@ -55,7 +52,7 @@ "debug.ProfilingPlugin": "webpack/namespaces/debug.md#profilingplugin", "debug.ProfilingPlugin.constructor": "webpack/namespaces/debug.md#constructor", "debug.ProfilingPlugin.constructor.ProfilingPlugin": "webpack/namespaces/debug.md#constructorprofilingplugin", - "debug.ProfilingPlugin.options": "webpack/namespaces/debug.md#options", + "debug.ProfilingPlugin.outputPath": "webpack/namespaces/debug.md#outputpath", "debug.ProfilingPlugin.Profiler": "webpack/namespaces/debug.md#profiler", "debug.ProfilingPlugin.apply": "webpack/namespaces/debug.md#apply", "dependencies": "webpack/namespaces/dependencies.md", @@ -309,7 +306,7 @@ "esm.ModuleChunkLoadingRuntimeModule.getNumberOfWarnings": "webpack/namespaces/esm.md#getnumberofwarnings", "esm.ModuleChunkLoadingRuntimeModule.getRootBlock": "webpack/namespaces/esm.md#getrootblock", "esm.ModuleChunkLoadingRuntimeModule.getSideEffectsConnectionState": "webpack/namespaces/esm.md#getsideeffectsconnectionstate", - "esm.ModuleChunkLoadingRuntimeModule.getSourceBasicTypes": "webpack/namespaces/esm.md#getsourcebasictypes-1", + "esm.ModuleChunkLoadingRuntimeModule.getSourceBasicTypes": "webpack/namespaces/esm.md#getsourcebasictypes", "esm.ModuleChunkLoadingRuntimeModule.getSourceTypes": "webpack/namespaces/esm.md#getsourcetypes", "esm.ModuleChunkLoadingRuntimeModule.getUnsafeCacheData": "webpack/namespaces/esm.md#getunsafecachedata", "esm.ModuleChunkLoadingRuntimeModule.getWarnings": "webpack/namespaces/esm.md#getwarnings", @@ -355,9 +352,7 @@ "experiments.schemes.VirtualUrlPlugin": "webpack/namespaces/experiments/namespaces/schemes.md#virtualurlplugin", "experiments.schemes.VirtualUrlPlugin.constructor": "webpack/namespaces/experiments/namespaces/schemes.md#constructor", "experiments.schemes.VirtualUrlPlugin.constructor.VirtualUrlPlugin": "webpack/namespaces/experiments/namespaces/schemes.md#constructorvirtualurlplugin", - "experiments.schemes.VirtualUrlPlugin.context": "webpack/namespaces/experiments/namespaces/schemes.md#context", "experiments.schemes.VirtualUrlPlugin.modules": "webpack/namespaces/experiments/namespaces/schemes.md#modules", - "experiments.schemes.VirtualUrlPlugin.options": "webpack/namespaces/experiments/namespaces/schemes.md#options", "experiments.schemes.VirtualUrlPlugin.scheme": "webpack/namespaces/experiments/namespaces/schemes.md#scheme", "experiments.schemes.VirtualUrlPlugin.DEFAULT_SCHEME": "webpack/namespaces/experiments/namespaces/schemes.md#default-scheme", "experiments.schemes.VirtualUrlPlugin.apply": "webpack/namespaces/experiments/namespaces/schemes.md#apply", @@ -845,7 +840,7 @@ "runtime.GetChunkFilenameRuntimeModule.getNumberOfWarnings": "webpack/namespaces/runtime.md#getnumberofwarnings", "runtime.GetChunkFilenameRuntimeModule.getRootBlock": "webpack/namespaces/runtime.md#getrootblock", "runtime.GetChunkFilenameRuntimeModule.getSideEffectsConnectionState": "webpack/namespaces/runtime.md#getsideeffectsconnectionstate", - "runtime.GetChunkFilenameRuntimeModule.getSourceBasicTypes": "webpack/namespaces/runtime.md#getsourcebasictypes-1", + "runtime.GetChunkFilenameRuntimeModule.getSourceBasicTypes": "webpack/namespaces/runtime.md#getsourcebasictypes", "runtime.GetChunkFilenameRuntimeModule.getSourceTypes": "webpack/namespaces/runtime.md#getsourcetypes", "runtime.GetChunkFilenameRuntimeModule.getUnsafeCacheData": "webpack/namespaces/runtime.md#getunsafecachedata", "runtime.GetChunkFilenameRuntimeModule.getWarnings": "webpack/namespaces/runtime.md#getwarnings", @@ -963,7 +958,7 @@ "runtime.LoadScriptRuntimeModule.getNumberOfWarnings": "webpack/namespaces/runtime.md#getnumberofwarnings", "runtime.LoadScriptRuntimeModule.getRootBlock": "webpack/namespaces/runtime.md#getrootblock", "runtime.LoadScriptRuntimeModule.getSideEffectsConnectionState": "webpack/namespaces/runtime.md#getsideeffectsconnectionstate", - "runtime.LoadScriptRuntimeModule.getSourceBasicTypes": "webpack/namespaces/runtime.md#getsourcebasictypes-1", + "runtime.LoadScriptRuntimeModule.getSourceBasicTypes": "webpack/namespaces/runtime.md#getsourcebasictypes", "runtime.LoadScriptRuntimeModule.getSourceTypes": "webpack/namespaces/runtime.md#getsourcetypes", "runtime.LoadScriptRuntimeModule.getUnsafeCacheData": "webpack/namespaces/runtime.md#getunsafecachedata", "runtime.LoadScriptRuntimeModule.getWarnings": "webpack/namespaces/runtime.md#getwarnings", @@ -1006,7 +1001,6 @@ "RuntimeGlobals.createFakeNamespaceObject": "webpack/namespaces/RuntimeGlobals.md#createfakenamespaceobject", "RuntimeGlobals.createScript": "webpack/namespaces/RuntimeGlobals.md#createscript", "RuntimeGlobals.createScriptUrl": "webpack/namespaces/RuntimeGlobals.md#createscripturl", - "RuntimeGlobals.cssInjectStyle": "webpack/namespaces/RuntimeGlobals.md#cssinjectstyle", "RuntimeGlobals.cssMergeStyleSheets": "webpack/namespaces/RuntimeGlobals.md#cssmergestylesheets", "RuntimeGlobals.currentRemoteGetScope": "webpack/namespaces/RuntimeGlobals.md#currentremotegetscope", "RuntimeGlobals.deferredModuleAsyncTransitiveDependencies": "webpack/namespaces/RuntimeGlobals.md#deferredmoduleasynctransitivedependencies", @@ -1081,12 +1075,10 @@ "sharing.ConsumeSharedPlugin": "webpack/namespaces/sharing.md#consumesharedplugin", "sharing.ConsumeSharedPlugin.constructor": "webpack/namespaces/sharing.md#constructor", "sharing.ConsumeSharedPlugin.constructor.ConsumeSharedPlugin": "webpack/namespaces/sharing.md#constructorconsumesharedplugin", - "sharing.ConsumeSharedPlugin.options": "webpack/namespaces/sharing.md#options", "sharing.ConsumeSharedPlugin.apply": "webpack/namespaces/sharing.md#apply", "sharing.ProvideSharedPlugin": "webpack/namespaces/sharing.md#providesharedplugin", "sharing.ProvideSharedPlugin.constructor": "webpack/namespaces/sharing.md#constructor", "sharing.ProvideSharedPlugin.constructor.ProvideSharedPlugin": "webpack/namespaces/sharing.md#constructorprovidesharedplugin", - "sharing.ProvideSharedPlugin.options": "webpack/namespaces/sharing.md#options", "sharing.ProvideSharedPlugin.apply": "webpack/namespaces/sharing.md#apply", "sharing.SharePlugin": "webpack/namespaces/sharing.md#shareplugin", "sharing.SharePlugin.constructor": "webpack/namespaces/sharing.md#constructor", @@ -1462,7 +1454,7 @@ "web.CssLoadingRuntimeModule.getNumberOfWarnings": "webpack/namespaces/web.md#getnumberofwarnings", "web.CssLoadingRuntimeModule.getRootBlock": "webpack/namespaces/web.md#getrootblock", "web.CssLoadingRuntimeModule.getSideEffectsConnectionState": "webpack/namespaces/web.md#getsideeffectsconnectionstate", - "web.CssLoadingRuntimeModule.getSourceBasicTypes": "webpack/namespaces/web.md#getsourcebasictypes-1", + "web.CssLoadingRuntimeModule.getSourceBasicTypes": "webpack/namespaces/web.md#getsourcebasictypes", "web.CssLoadingRuntimeModule.getSourceTypes": "webpack/namespaces/web.md#getsourcetypes", "web.CssLoadingRuntimeModule.getUnsafeCacheData": "webpack/namespaces/web.md#getunsafecachedata", "web.CssLoadingRuntimeModule.getWarnings": "webpack/namespaces/web.md#getwarnings", @@ -1590,7 +1582,7 @@ "web.JsonpChunkLoadingRuntimeModule.getNumberOfWarnings": "webpack/namespaces/web.md#getnumberofwarnings", "web.JsonpChunkLoadingRuntimeModule.getRootBlock": "webpack/namespaces/web.md#getrootblock", "web.JsonpChunkLoadingRuntimeModule.getSideEffectsConnectionState": "webpack/namespaces/web.md#getsideeffectsconnectionstate", - "web.JsonpChunkLoadingRuntimeModule.getSourceBasicTypes": "webpack/namespaces/web.md#getsourcebasictypes-1", + "web.JsonpChunkLoadingRuntimeModule.getSourceBasicTypes": "webpack/namespaces/web.md#getsourcebasictypes", "web.JsonpChunkLoadingRuntimeModule.getSourceTypes": "webpack/namespaces/web.md#getsourcetypes", "web.JsonpChunkLoadingRuntimeModule.getUnsafeCacheData": "webpack/namespaces/web.md#getunsafecachedata", "web.JsonpChunkLoadingRuntimeModule.getWarnings": "webpack/namespaces/web.md#getwarnings", @@ -2099,7 +2091,6 @@ "Compiler.readRecords": "globals.md#readrecords", "Compiler.run": "globals.md#run", "Compiler.runAsChild": "globals.md#runaschild", - "Compiler.validate": "globals.md#validate", "Compiler.watch": "globals.md#watch", "ConcatenationScope": "globals.md#concatenationscope", "ConcatenationScope.constructor": "globals.md#constructor", @@ -2374,7 +2365,7 @@ "ExternalModule.getNumberOfWarnings": "globals.md#getnumberofwarnings", "ExternalModule.getRootBlock": "globals.md#getrootblock", "ExternalModule.getSideEffectsConnectionState": "globals.md#getsideeffectsconnectionstate", - "ExternalModule.getSourceBasicTypes": "globals.md#getsourcebasictypes-1", + "ExternalModule.getSourceBasicTypes": "globals.md#getsourcebasictypes", "ExternalModule.getSourceTypes": "globals.md#getsourcetypes", "ExternalModule.getUnsafeCacheData": "globals.md#getunsafecachedata", "ExternalModule.getWarnings": "globals.md#getwarnings", @@ -2403,7 +2394,6 @@ "ExternalModule.source": "globals.md#source", "ExternalModule.updateCacheModule": "globals.md#updatecachemodule", "ExternalModule.updateHash": "globals.md#updatehash", - "ExternalModule.getCompilationHooks": "globals.md#getcompilationhooks", "ExternalsPlugin": "globals.md#externalsplugin", "ExternalsPlugin.constructor": "globals.md#constructor", "ExternalsPlugin.constructor.ExternalsPlugin": "globals.md#constructorexternalsplugin", @@ -2630,7 +2620,7 @@ "Module.getNumberOfWarnings": "globals.md#getnumberofwarnings", "Module.getRootBlock": "globals.md#getrootblock", "Module.getSideEffectsConnectionState": "globals.md#getsideeffectsconnectionstate", - "Module.getSourceBasicTypes": "globals.md#getsourcebasictypes-1", + "Module.getSourceBasicTypes": "globals.md#getsourcebasictypes", "Module.getSourceTypes": "globals.md#getsourcetypes", "Module.getUnsafeCacheData": "globals.md#getunsafecachedata", "Module.getWarnings": "globals.md#getwarnings", @@ -2881,7 +2871,7 @@ "NormalModule.getResource": "globals.md#getresource", "NormalModule.getRootBlock": "globals.md#getrootblock", "NormalModule.getSideEffectsConnectionState": "globals.md#getsideeffectsconnectionstate", - "NormalModule.getSourceBasicTypes": "globals.md#getsourcebasictypes-1", + "NormalModule.getSourceBasicTypes": "globals.md#getsourcebasictypes", "NormalModule.getSourceTypes": "globals.md#getsourcetypes", "NormalModule.getUnsafeCacheData": "globals.md#getunsafecachedata", "NormalModule.getWarnings": "globals.md#getwarnings", @@ -2940,7 +2930,6 @@ "ProgressPlugin.dependenciesCount": "globals.md#dependenciescount", "ProgressPlugin.handler": "globals.md#handler", "ProgressPlugin.modulesCount": "globals.md#modulescount", - "ProgressPlugin.options": "globals.md#options", "ProgressPlugin.percentBy": "globals.md#percentby", "ProgressPlugin.profile": "globals.md#profile", "ProgressPlugin.showActiveModules": "globals.md#showactivemodules", @@ -3062,7 +3051,7 @@ "RuntimeModule.getNumberOfWarnings": "globals.md#getnumberofwarnings", "RuntimeModule.getRootBlock": "globals.md#getrootblock", "RuntimeModule.getSideEffectsConnectionState": "globals.md#getsideeffectsconnectionstate", - "RuntimeModule.getSourceBasicTypes": "globals.md#getsourcebasictypes-1", + "RuntimeModule.getSourceBasicTypes": "globals.md#getsourcebasictypes", "RuntimeModule.getSourceTypes": "globals.md#getsourcetypes", "RuntimeModule.getUnsafeCacheData": "globals.md#getunsafecachedata", "RuntimeModule.getWarnings": "globals.md#getwarnings", @@ -3137,7 +3126,7 @@ "WatchIgnorePlugin": "globals.md#watchignoreplugin", "WatchIgnorePlugin.constructor": "globals.md#constructor", "WatchIgnorePlugin.constructor.WatchIgnorePlugin": "globals.md#constructorwatchignoreplugin", - "WatchIgnorePlugin.options": "globals.md#options", + "WatchIgnorePlugin.paths": "globals.md#paths", "WatchIgnorePlugin.apply": "globals.md#apply", "Watching": "globals.md#abstract-watching", "Watching.constructor": "globals.md#constructor", @@ -3300,7 +3289,6 @@ "Configuration.snapshot": "globals.md#snapshot", "Configuration.stats": "globals.md#stats", "Configuration.target": "globals.md#target", - "Configuration.validate": "globals.md#validate", "Configuration.watch": "globals.md#watch", "Configuration.watchOptions": "globals.md#watchoptions", "EntryObject": "globals.md#entryobject", @@ -3681,7 +3669,6 @@ "WebpackOptionsNormalized.snapshot": "globals.md#snapshot", "WebpackOptionsNormalized.stats": "globals.md#stats", "WebpackOptionsNormalized.target": "globals.md#target", - "WebpackOptionsNormalized.validate": "globals.md#validate", "WebpackOptionsNormalized.watch": "globals.md#watch", "WebpackOptionsNormalized.watchOptions": "globals.md#watchoptions", "WebpackPluginInstance": "globals.md#webpackplugininstance", diff --git a/pages/v5.x/webpack/namespaces/RuntimeGlobals.md b/pages/v5.x/webpack/namespaces/RuntimeGlobals.md index 36f90b8..3678263 100644 --- a/pages/v5.x/webpack/namespaces/RuntimeGlobals.md +++ b/pages/v5.x/webpack/namespaces/RuntimeGlobals.md @@ -72,12 +72,6 @@ *** -## `cssInjectStyle` - -> **cssInjectStyle**: {"__webpack_require__.is"} - -*** - ## `cssMergeStyleSheets` > **cssMergeStyleSheets**: {"__webpack_require__.mcs"} diff --git a/pages/v5.x/webpack/namespaces/cli.md b/pages/v5.x/webpack/namespaces/cli.md index eaecba5..5b66e69 100644 --- a/pages/v5.x/webpack/namespaces/cli.md +++ b/pages/v5.x/webpack/namespaces/cli.md @@ -13,7 +13,7 @@ > **getArguments**: {object} -* `schema` {JSONSchema4|object|JSONSchema6|object|JSONSchema7|object} +* `schema` {JSONSchema4&object|JSONSchema6&object|JSONSchema7&object} * Returns: {Flags} *** diff --git a/pages/v5.x/webpack/namespaces/container.md b/pages/v5.x/webpack/namespaces/container.md index b2c7189..f1a9fb6 100644 --- a/pages/v5.x/webpack/namespaces/container.md +++ b/pages/v5.x/webpack/namespaces/container.md @@ -9,10 +9,6 @@ * `options` {ContainerPluginOptions} * Returns: {ContainerPlugin} -### Properties - -* `options` {ContainerPluginOptions} - ### Methods #### `apply(compiler)` @@ -33,10 +29,6 @@ Apply the plugin * `options` {ContainerReferencePluginOptions} * Returns: {ContainerReferencePlugin} -### Properties - -* `options` {ContainerReferencePluginOptions} - ### Methods #### `apply(compiler)` @@ -57,10 +49,6 @@ Apply the plugin * `options` {ModuleFederationPluginOptions} * Returns: {ModuleFederationPlugin} -### Properties - -* `options` {ModuleFederationPluginOptions} - ### Methods #### `apply(compiler)` diff --git a/pages/v5.x/webpack/namespaces/debug.md b/pages/v5.x/webpack/namespaces/debug.md index f19576e..0eeaefc 100644 --- a/pages/v5.x/webpack/namespaces/debug.md +++ b/pages/v5.x/webpack/namespaces/debug.md @@ -11,7 +11,7 @@ ### Properties -* `options` {ProfilingPluginOptions} +* `outputPath` {string} * `Profiler` {Profiler} ### Methods diff --git a/pages/v5.x/webpack/namespaces/dependencies.md b/pages/v5.x/webpack/namespaces/dependencies.md index 7a33837..9ab9b19 100644 --- a/pages/v5.x/webpack/namespaces/dependencies.md +++ b/pages/v5.x/webpack/namespaces/dependencies.md @@ -84,8 +84,6 @@ implement this method to allow the occurrence order plugin to count correctly #### `getReference(moduleGraph)` -> Stability: 0 - Deprecated - * `moduleGraph` {ModuleGraph} * Returns: {never} @@ -251,8 +249,6 @@ implement this method to allow the occurrence order plugin to count correctly #### `getReference(moduleGraph)` -> Stability: 0 - Deprecated - * `moduleGraph` {ModuleGraph} * Returns: {never} @@ -393,8 +389,6 @@ implement this method to allow the occurrence order plugin to count correctly #### `getReference(moduleGraph)` -> Stability: 0 - Deprecated - * `moduleGraph` {ModuleGraph} * Returns: {never} @@ -529,8 +523,6 @@ implement this method to allow the occurrence order plugin to count correctly #### `getReference(moduleGraph)` -> Stability: 0 - Deprecated - * `moduleGraph` {ModuleGraph} * Returns: {never} diff --git a/pages/v5.x/webpack/namespaces/esm.md b/pages/v5.x/webpack/namespaces/esm.md index 21664f1..fd18054 100644 --- a/pages/v5.x/webpack/namespaces/esm.md +++ b/pages/v5.x/webpack/namespaces/esm.md @@ -35,7 +35,7 @@ * `hasEqualsChunks` {any} * `hash` {string} * `hot` {boolean} -* `id` {string|number} +* `id` {string|number} * `index` {number} * `index2` {number} * `issuer` {Module} @@ -44,7 +44,7 @@ * `moduleArgument` {string} * `name` {string} * `needId` {boolean} -* `optimizationBailout` {string|object[]} +* `optimizationBailout` {string|object[]} * `optional` {boolean} * `parent` {DependenciesBlock} * `presentationalDependencies` {Dependency[]} @@ -309,14 +309,10 @@ This data will be passed to restoreFromUnsafeCache later. #### `needRebuild(fileTimestamps, contextTimestamps)` -> Stability: 0 - Deprecated - * `fileTimestamps` {Map} * `contextTimestamps` {Map} * Returns: {boolean} -Use needBuild instead - #### `originalSource()` * Returns: {Source} @@ -352,15 +348,11 @@ Use needBuild instead #### `source(dependencyTemplates, runtimeTemplate[, type])` -> Stability: 0 - Deprecated - * `dependencyTemplates` {DependencyTemplates} * `runtimeTemplate` {RuntimeTemplate} * `type` {string} * Returns: {Source} -Use codeGeneration() instead - #### `updateCacheModule(module)` * `module` {Module} @@ -380,12 +372,3 @@ and properties. * `compilation` {Compilation} * Returns: {JsonpCompilationPluginHooks} - -#### Static method: `getSourceBasicTypes(module)` - -> Stability: 0 - Deprecated - -* `module` {Module} -* Returns: {ReadonlySet} - -In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method. diff --git a/pages/v5.x/webpack/namespaces/experiments/namespaces/schemes.md b/pages/v5.x/webpack/namespaces/experiments/namespaces/schemes.md index f804941..258b4e2 100644 --- a/pages/v5.x/webpack/namespaces/experiments/namespaces/schemes.md +++ b/pages/v5.x/webpack/namespaces/experiments/namespaces/schemes.md @@ -28,17 +28,15 @@ Apply the plugin ### Constructors -#### `new VirtualUrlPlugin(modules[, schemeOrOptions])` +#### `new VirtualUrlPlugin(modules[, scheme])` * `modules` {VirtualModules} -* `schemeOrOptions` {string|Omit} +* `scheme` {string} * Returns: {VirtualUrlPlugin} ### Properties -* `context` {string} * `modules` {NormalizedModules} -* `options` {VirtualUrlOptions} * `scheme` {string} * `DEFAULT_SCHEME` {string} @@ -54,7 +52,7 @@ Apply the plugin #### `findVirtualModuleConfigById(id)` * `id` {string} -* Returns: {VirtualModule} +* Returns: {VirtualModuleConfig} #### `getCacheVersion(version)` diff --git a/pages/v5.x/webpack/namespaces/ids.md b/pages/v5.x/webpack/namespaces/ids.md index 2954fa1..8a6e0b6 100644 --- a/pages/v5.x/webpack/namespaces/ids.md +++ b/pages/v5.x/webpack/namespaces/ids.md @@ -83,7 +83,7 @@ Apply the plugin ### Properties -* `options` {HashedModuleIdsPluginOptions} +* `options` {Required>&object} ### Methods diff --git a/pages/v5.x/webpack/namespaces/javascript.md b/pages/v5.x/webpack/namespaces/javascript.md index 3f9be4d..9e045ab 100644 --- a/pages/v5.x/webpack/namespaces/javascript.md +++ b/pages/v5.x/webpack/namespaces/javascript.md @@ -58,7 +58,7 @@ Apply the plugin * `hooks` {Readonly} * `magicCommentContext` {Context} * `options` {object} -* `prevStatement` {ClassDeclaration|MaybeNamedClassDeclaration|ClassExpression|Identifier|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|FunctionDeclaration|MaybeNamedFunctionDeclaration|ImportDeclaration|ExportNamedDeclaration|ExportDefaultDeclaration|ExportAllDeclaration|ExpressionStatement|BlockStatement|StaticBlock|EmptyStatement|DebuggerStatement|WithStatement|ReturnStatement|LabeledStatement|BreakStatement|ContinueStatement|IfStatement|SwitchStatement|ThrowStatement|TryStatement|WhileStatement|DoWhileStatement|ForStatement|ForInStatement|ForOfStatement|VariableDeclaration} +* `prevStatement` {Identifier|ClassDeclaration|MaybeNamedClassDeclaration|ClassExpression|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|FunctionDeclaration|MaybeNamedFunctionDeclaration|ImportDeclaration|ExportNamedDeclaration|ExportDefaultDeclaration|ExportAllDeclaration|ExpressionStatement|BlockStatement|StaticBlock|EmptyStatement|DebuggerStatement|WithStatement|ReturnStatement|LabeledStatement|BreakStatement|ContinueStatement|IfStatement|SwitchStatement|ThrowStatement|TryStatement|WhileStatement|DoWhileStatement|ForStatement|ForInStatement|ForOfStatement|VariableDeclaration} * `scope` {ScopeInfo} * `semicolons` {Set} * `sourceType` {"module"|"auto"|"script"} @@ -120,7 +120,7 @@ Block pre walking iterates the scope for block variable declarations `R` * `hookMap` {HookMap>} -* `expr` {ClassExpression|Identifier|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|Super} +* `expr` {Identifier|ClassExpression|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|Super} * `args` {AsArray} * Returns: {R} @@ -134,7 +134,7 @@ Block pre walking iterates the scope for block variable declarations `R` * `hookMap` {HookMap>} -* `expr` {ClassExpression|Identifier|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|Super} +* `expr` {Identifier|ClassExpression|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|Super} * `fallback` {object} * `defined` {object} * `args` {AsArray} @@ -237,7 +237,7 @@ Block pre walking iterates the scope for block variable declarations * `pattern` {Pattern} * `expression` {Expression} -* Returns: {ClassExpression|Identifier|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression} +* Returns: {Identifier|ClassExpression|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression} #### `enterIdentifier(pattern, onIdent)` @@ -253,13 +253,13 @@ Block pre walking iterates the scope for block variable declarations #### `enterPattern(pattern, onIdent)` -* `pattern` {Property|Identifier|MemberExpression|ObjectPattern|ArrayPattern|RestElement|AssignmentPattern} +* `pattern` {Identifier|Property|MemberExpression|ObjectPattern|ArrayPattern|RestElement|AssignmentPattern} * `onIdent` {object} * Returns: {void} #### `enterPatterns(patterns, onIdent)` -* `patterns` {string|Property|Identifier|MemberExpression|ObjectPattern|ArrayPattern|RestElement|AssignmentPattern[]} +* `patterns` {string|Identifier|Property|MemberExpression|ObjectPattern|ArrayPattern|RestElement|AssignmentPattern[]} * `onIdent` {object} * Returns: {void} @@ -281,12 +281,12 @@ Block pre walking iterates the scope for block variable declarations #### `evaluateExpression(expression)` -* `expression` {ClassExpression|Identifier|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|PrivateIdentifier|SpreadElement|Super} +* `expression` {Identifier|ClassExpression|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|PrivateIdentifier|SpreadElement|Super} * Returns: {BasicEvaluatedExpression} #### `extractMemberExpressionChain(expression)` -* `expression` {ClassExpression|Identifier|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|Super} +* `expression` {Identifier|ClassExpression|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|Super} * Returns: {object} #### `getComments(range)` @@ -301,7 +301,7 @@ Block pre walking iterates the scope for block variable declarations #### `getMemberExpressionInfo(expression, allowedTypes)` -* `expression` {ClassExpression|Identifier|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|Super} +* `expression` {Identifier|ClassExpression|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|Super} * `allowedTypes` {number} * Returns: {CallExpressionInfo|ExpressionExpressionInfo} @@ -317,7 +317,7 @@ Block pre walking iterates the scope for block variable declarations #### `getRenameIdentifier(expr)` -* `expr` {ClassExpression|Identifier|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|SpreadElement} +* `expr` {Identifier|ClassExpression|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|SpreadElement} * Returns: {string|VariableInfo} #### `getTagData(name, tag)` @@ -353,9 +353,7 @@ Block pre walking iterates the scope for block variable declarations #### `inScope(params, fn)` -> Stability: 0 - Deprecated - -* `params` {string|Property|Identifier|MemberExpression|ObjectPattern|ArrayPattern|RestElement|AssignmentPattern[]} +* `params` {string|Identifier|Property|MemberExpression|ObjectPattern|ArrayPattern|RestElement|AssignmentPattern[]} * `fn` {object} * Returns: {void} @@ -366,7 +364,7 @@ Block pre walking iterates the scope for block variable declarations #### `isPure(expr, commentsStartPos)` -* `expr` {ClassDeclaration|MaybeNamedClassDeclaration|ClassExpression|Identifier|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|FunctionDeclaration|MaybeNamedFunctionDeclaration|PrivateIdentifier|VariableDeclaration} +* `expr` {Identifier|ClassDeclaration|MaybeNamedClassDeclaration|ClassExpression|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|FunctionDeclaration|MaybeNamedFunctionDeclaration|PrivateIdentifier|VariableDeclaration} * `commentsStartPos` {number} * Returns: {boolean} @@ -643,12 +641,12 @@ Pre walking iterates the scope for variable declarations #### `walkExpression(expression)` -* `expression` {ClassExpression|Identifier|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|PrivateIdentifier|SpreadElement|Super} +* `expression` {Identifier|ClassExpression|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|PrivateIdentifier|SpreadElement|Super} * Returns: {void} #### `walkExpressions(expressions)` -* `expressions` {ClassExpression|Identifier|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|SpreadElement[]} +* `expressions` {Identifier|ClassExpression|SimpleLiteral|RegExpLiteral|BigIntLiteral|ArrayExpression|ArrowFunctionExpression|AssignmentExpression|AwaitExpression|BinaryExpression|SimpleCallExpression|NewExpression|ChainExpression|ConditionalExpression|FunctionExpression|ImportExpression|LogicalExpression|MemberExpression|MetaProperty|ObjectExpression|SequenceExpression|TaggedTemplateExpression|TemplateLiteral|ThisExpression|UnaryExpression|UpdateExpression|YieldExpression|SpreadElement[]} * Returns: {void} #### `walkExpressionStatement(statement)` diff --git a/pages/v5.x/webpack/namespaces/runtime.md b/pages/v5.x/webpack/namespaces/runtime.md index ea5f964..c7e1169 100644 --- a/pages/v5.x/webpack/namespaces/runtime.md +++ b/pages/v5.x/webpack/namespaces/runtime.md @@ -43,7 +43,7 @@ * `hasEqualsChunks` {any} * `hash` {string} * `hot` {boolean} -* `id` {string|number} +* `id` {string|number} * `index` {number} * `index2` {number} * `issuer` {Module} @@ -52,7 +52,7 @@ * `moduleArgument` {string} * `name` {string} * `needId` {boolean} -* `optimizationBailout` {string|object[]} +* `optimizationBailout` {string|object[]} * `optional` {boolean} * `parent` {DependenciesBlock} * `presentationalDependencies` {Dependency[]} @@ -317,14 +317,10 @@ This data will be passed to restoreFromUnsafeCache later. #### `needRebuild(fileTimestamps, contextTimestamps)` -> Stability: 0 - Deprecated - * `fileTimestamps` {Map} * `contextTimestamps` {Map} * Returns: {boolean} -Use needBuild instead - #### `originalSource()` * Returns: {Source} @@ -360,15 +356,11 @@ Use needBuild instead #### `source(dependencyTemplates, runtimeTemplate[, type])` -> Stability: 0 - Deprecated - * `dependencyTemplates` {DependencyTemplates} * `runtimeTemplate` {RuntimeTemplate} * `type` {string} * Returns: {Source} -Use codeGeneration() instead - #### `updateCacheModule(module)` * `module` {Module} @@ -384,15 +376,6 @@ and properties. * `context` {UpdateHashContextDependency} * Returns: {void} -#### Static method: `getSourceBasicTypes(module)` - -> Stability: 0 - Deprecated - -* `module` {Module} -* Returns: {ReadonlySet} - -In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method. - *** ## Class: `LoadScriptRuntimeModule` @@ -431,7 +414,7 @@ In webpack 6, call getSourceBasicTypes() directly on the module instance instead * `hasEqualsChunks` {any} * `hash` {string} * `hot` {boolean} -* `id` {string|number} +* `id` {string|number} * `index` {number} * `index2` {number} * `issuer` {Module} @@ -440,7 +423,7 @@ In webpack 6, call getSourceBasicTypes() directly on the module instance instead * `moduleArgument` {string} * `name` {string} * `needId` {boolean} -* `optimizationBailout` {string|object[]} +* `optimizationBailout` {string|object[]} * `optional` {boolean} * `parent` {DependenciesBlock} * `presentationalDependencies` {Dependency[]} @@ -705,14 +688,10 @@ This data will be passed to restoreFromUnsafeCache later. #### `needRebuild(fileTimestamps, contextTimestamps)` -> Stability: 0 - Deprecated - * `fileTimestamps` {Map} * `contextTimestamps` {Map} * Returns: {boolean} -Use needBuild instead - #### `originalSource()` * Returns: {Source} @@ -748,15 +727,11 @@ Use needBuild instead #### `source(dependencyTemplates, runtimeTemplate[, type])` -> Stability: 0 - Deprecated - * `dependencyTemplates` {DependencyTemplates} * `runtimeTemplate` {RuntimeTemplate} * `type` {string} * Returns: {Source} -Use codeGeneration() instead - #### `updateCacheModule(module)` * `module` {Module} @@ -776,12 +751,3 @@ and properties. * `compilation` {Compilation} * Returns: {LoadScriptCompilationHooks} - -#### Static method: `getSourceBasicTypes(module)` - -> Stability: 0 - Deprecated - -* `module` {Module} -* Returns: {ReadonlySet} - -In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method. diff --git a/pages/v5.x/webpack/namespaces/sharing.md b/pages/v5.x/webpack/namespaces/sharing.md index 36de419..102b332 100644 --- a/pages/v5.x/webpack/namespaces/sharing.md +++ b/pages/v5.x/webpack/namespaces/sharing.md @@ -9,10 +9,6 @@ * `options` {ConsumeSharedPluginOptions} * Returns: {ConsumeSharedPlugin} -### Properties - -* `options` {ConsumeSharedPluginOptions} - ### Methods #### `apply(compiler)` @@ -33,10 +29,6 @@ Apply the plugin * `options` {ProvideSharedPluginOptions} * Returns: {ProvideSharedPlugin} -### Properties - -* `options` {ProvideSharedPluginOptions} - ### Methods #### `apply(compiler)` diff --git a/pages/v5.x/webpack/namespaces/util/index.md b/pages/v5.x/webpack/namespaces/util/index.md index 18b891b..e4b4a83 100644 --- a/pages/v5.x/webpack/namespaces/util/index.md +++ b/pages/v5.x/webpack/namespaces/util/index.md @@ -108,7 +108,7 @@ `O` * `first` {null|T} * `second` {null|O} -* Returns: {T|O|T|O} +* Returns: {T|O|T&O} *** diff --git a/pages/v5.x/webpack/namespaces/web.md b/pages/v5.x/webpack/namespaces/web.md index d9849c5..0724f70 100644 --- a/pages/v5.x/webpack/namespaces/web.md +++ b/pages/v5.x/webpack/namespaces/web.md @@ -35,7 +35,7 @@ * `hasEqualsChunks` {any} * `hash` {string} * `hot` {boolean} -* `id` {string|number} +* `id` {string|number} * `index` {number} * `index2` {number} * `issuer` {Module} @@ -44,7 +44,7 @@ * `moduleArgument` {string} * `name` {string} * `needId` {boolean} -* `optimizationBailout` {string|object[]} +* `optimizationBailout` {string|object[]} * `optional` {boolean} * `parent` {DependenciesBlock} * `presentationalDependencies` {Dependency[]} @@ -309,14 +309,10 @@ This data will be passed to restoreFromUnsafeCache later. #### `needRebuild(fileTimestamps, contextTimestamps)` -> Stability: 0 - Deprecated - * `fileTimestamps` {Map} * `contextTimestamps` {Map} * Returns: {boolean} -Use needBuild instead - #### `originalSource()` * Returns: {Source} @@ -352,15 +348,11 @@ Use needBuild instead #### `source(dependencyTemplates, runtimeTemplate[, type])` -> Stability: 0 - Deprecated - * `dependencyTemplates` {DependencyTemplates} * `runtimeTemplate` {RuntimeTemplate} * `type` {string} * Returns: {Source} -Use codeGeneration() instead - #### `updateCacheModule(module)` * `module` {Module} @@ -381,15 +373,6 @@ and properties. * `compilation` {Compilation} * Returns: {CssLoadingRuntimeModulePluginHooks} -#### Static method: `getSourceBasicTypes(module)` - -> Stability: 0 - Deprecated - -* `module` {Module} -* Returns: {ReadonlySet} - -In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method. - *** ## Class: `FetchCompileAsyncWasmPlugin` @@ -470,7 +453,7 @@ Apply the plugin * `hasEqualsChunks` {any} * `hash` {string} * `hot` {boolean} -* `id` {string|number} +* `id` {string|number} * `index` {number} * `index2` {number} * `issuer` {Module} @@ -479,7 +462,7 @@ Apply the plugin * `moduleArgument` {string} * `name` {string} * `needId` {boolean} -* `optimizationBailout` {string|object[]} +* `optimizationBailout` {string|object[]} * `optional` {boolean} * `parent` {DependenciesBlock} * `presentationalDependencies` {Dependency[]} @@ -744,14 +727,10 @@ This data will be passed to restoreFromUnsafeCache later. #### `needRebuild(fileTimestamps, contextTimestamps)` -> Stability: 0 - Deprecated - * `fileTimestamps` {Map} * `contextTimestamps` {Map} * Returns: {boolean} -Use needBuild instead - #### `originalSource()` * Returns: {Source} @@ -787,15 +766,11 @@ Use needBuild instead #### `source(dependencyTemplates, runtimeTemplate[, type])` -> Stability: 0 - Deprecated - * `dependencyTemplates` {DependencyTemplates} * `runtimeTemplate` {RuntimeTemplate} * `type` {string} * Returns: {Source} -Use codeGeneration() instead - #### `updateCacheModule(module)` * `module` {Module} @@ -816,15 +791,6 @@ and properties. * `compilation` {Compilation} * Returns: {JsonpCompilationPluginHooks} -#### Static method: `getSourceBasicTypes(module)` - -> Stability: 0 - Deprecated - -* `module` {Module} -* Returns: {ReadonlySet} - -In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method. - *** ## Class: `JsonpTemplatePlugin` @@ -846,9 +812,5 @@ Apply the plugin #### Static method: `getCompilationHooks(compilation)` -> Stability: 0 - Deprecated - * `compilation` {Compilation} * Returns: {JsonpCompilationPluginHooks} - -use JsonpChunkLoadingRuntimeModule.getCompilationHooks instead diff --git a/plugins/theme/partials/types.mjs b/plugins/theme/partials/types.mjs index cf7261d..c52f4b2 100644 --- a/plugins/theme/partials/types.mjs +++ b/plugins/theme/partials/types.mjs @@ -25,12 +25,19 @@ const resolve = type => { return `Tuple<${union(type.elements, ', ')}>`; case 'union': - case 'intersection': return union(type.types); + case 'intersection': + return union(type.types, '&'); + case 'optional': + return resolve(type.elementType); + case 'indexedAccess': - return resolve(type.elementType ?? type.objectType); + return `${resolve(type.objectType)}[${resolve(type.indexType)}]`; + + case 'predicate': + return resolve(type.targetType); case 'query': return resolve(type.queryType);