From a982cb8a0c31877408b69c905c91e1d0d817562f Mon Sep 17 00:00:00 2001 From: Sujal Goel Date: Mon, 30 Mar 2026 00:00:32 +0530 Subject: [PATCH 1/4] fix(types): correct intersection, indexedAccess, and add predicate/templateLiteral - `intersection` was using `|` separator (same as union); now correctly uses `&` - e.g. `A & B` previously rendered as `{A|B}`, now `{A&B}` - `indexedAccess` and `optional` were merged under one case using `type.elementType ?? type.objectType`; `IndexedAccessType` has no `elementType` field, so the fallback always lost the index type entirely - e.g. `T[K]` previously rendered as `{T}`, now `{T[K]}` - Add `predicate` case for type predicate signatures (`x is T`, `asserts x is T`) - Add `templateLiteral` case for template literal types (e.g. `` `prefix_${string}` ``) --- plugins/theme/partials/types.mjs | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/plugins/theme/partials/types.mjs b/plugins/theme/partials/types.mjs index cf7261db..ec95c079 100644 --- a/plugins/theme/partials/types.mjs +++ b/plugins/theme/partials/types.mjs @@ -25,12 +25,29 @@ 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': { + const target = type.targetType ? ` is ${resolve(type.targetType)}` : ''; + return (type.asserts ? 'asserts ' : '') + type.name + target; + } + + case 'templateLiteral': + return ( + '`' + + type.head + + type.tail.map(([t, s]) => '${' + resolve(t) + '}' + s).join('') + + '`' + ); case 'query': return resolve(type.queryType); From ead003e9f4709a3645be5047f063e17b4b4a33e2 Mon Sep 17 00:00:00 2001 From: Sujal Goel Date: Mon, 30 Mar 2026 00:51:02 +0530 Subject: [PATCH 2/4] chore: regenerate pages with corrected type rendering --- pages/v5.x/_media/GOVERNANCE.md | 3 - pages/v5.x/_media/WORKING_GROUP.md | 48 --- pages/v5.x/globals.md | 295 +++++------------- pages/v5.x/index.md | 4 +- pages/v5.x/type-map.json | 35 +-- .../v5.x/webpack/namespaces/RuntimeGlobals.md | 6 - pages/v5.x/webpack/namespaces/cli.md | 2 +- pages/v5.x/webpack/namespaces/container.md | 12 - pages/v5.x/webpack/namespaces/debug.md | 2 +- pages/v5.x/webpack/namespaces/dependencies.md | 8 - pages/v5.x/webpack/namespaces/esm.md | 21 +- .../experiments/namespaces/schemes.md | 8 +- pages/v5.x/webpack/namespaces/ids.md | 2 +- pages/v5.x/webpack/namespaces/javascript.md | 30 +- pages/v5.x/webpack/namespaces/runtime.md | 42 +-- pages/v5.x/webpack/namespaces/sharing.md | 8 - pages/v5.x/webpack/namespaces/util/index.md | 2 +- pages/v5.x/webpack/namespaces/web.md | 46 +-- 18 files changed, 124 insertions(+), 450 deletions(-) delete mode 100644 pages/v5.x/_media/GOVERNANCE.md delete mode 100644 pages/v5.x/_media/WORKING_GROUP.md diff --git a/pages/v5.x/_media/GOVERNANCE.md b/pages/v5.x/_media/GOVERNANCE.md deleted file mode 100644 index 6d004f58..00000000 --- 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 3578afb9..00000000 --- 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 afd8ee82..036bb3f2 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 e4abe0c2..93941f82 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 11ce1f64..dd268d5a 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 36f90b89..36782631 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 eaecba5b..5b66e695 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 b2c7189d..f1a9fb6a 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 f19576ea..0eeaefc5 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 7a338377..9ab9b195 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 21664f1a..fd180548 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 f8049410..258b4e29 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 2954fa14..8a6e0b6a 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 3f9be4de..9e045ab9 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 ea5f9641..c7e11699 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 36de4191..102b3323 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 18b891bc..e4b4a83f 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 d9849c5b..0724f70b 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 From eee06ec75d1c81ac67c725d323e551bd1da88778 Mon Sep 17 00:00:00 2001 From: Sujal Goel Date: Mon, 30 Mar 2026 01:19:49 +0530 Subject: [PATCH 3/4] fix(types): simplify predicate to target type, remove templateLiteral Per review feedback: - predicate: return resolve(type.targetType) instead of full predicate syntax - templateLiteral: reverted, doc-kit does not yet support this --- plugins/theme/partials/types.mjs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/plugins/theme/partials/types.mjs b/plugins/theme/partials/types.mjs index ec95c079..c52f4b2f 100644 --- a/plugins/theme/partials/types.mjs +++ b/plugins/theme/partials/types.mjs @@ -36,18 +36,8 @@ const resolve = type => { case 'indexedAccess': return `${resolve(type.objectType)}[${resolve(type.indexType)}]`; - case 'predicate': { - const target = type.targetType ? ` is ${resolve(type.targetType)}` : ''; - return (type.asserts ? 'asserts ' : '') + type.name + target; - } - - case 'templateLiteral': - return ( - '`' + - type.head + - type.tail.map(([t, s]) => '${' + resolve(t) + '}' + s).join('') + - '`' - ); + case 'predicate': + return resolve(type.targetType); case 'query': return resolve(type.queryType); From 342092fe72d2c6bc483284797d8223bce4180a86 Mon Sep 17 00:00:00 2001 From: Sujal Goel Date: Thu, 2 Apr 2026 20:57:41 +0530 Subject: [PATCH 4/4] chore: bump @node-core/doc-kit to 1.3.0, regenerate pages 1.3.0 includes intersection type support (splitByOuterSeparator), so AssetInfo and other intersection types now render with & instead of |. --- package-lock.json | 38 ++++++---------- package.json | 2 +- pages/v5.x/globals.md | 48 ++++++++++++++------- pages/v5.x/webpack/namespaces/javascript.md | 28 ++++++------ 4 files changed, 60 insertions(+), 56 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2f22380c..4b68520e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@node-core/doc-kit": "^1.2.0", + "@node-core/doc-kit": "^1.3.0", "semver": "^7.7.4", "typedoc": "^0.28.18", "typedoc-plugin-markdown": "^4.11.0", @@ -751,34 +751,33 @@ } }, "node_modules/@node-core/doc-kit": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@node-core/doc-kit/-/doc-kit-1.2.0.tgz", - "integrity": "sha512-19nyv/EClxAdfq9BIG8gZ40UCWZZ6JOq0aiAMSyRI8KLBUsyD095cCpIYG99Okmf8iMGjjHwd3mOM+Eybc3Lhw==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@node-core/doc-kit/-/doc-kit-1.3.0.tgz", + "integrity": "sha512-AVdpEryoIYhhjzrqvQ/VYMCqqVQef9G3YW+EkqVbXBcw02ZqmHH8fE+kq7QcMWUIUavbA4sUm0MWzqNIxEGvOA==", "dependencies": { "@actions/core": "^3.0.0", "@heroicons/react": "^2.2.0", "@minify-html/wasm": "^0.18.1", "@node-core/rehype-shiki": "^1.4.1", - "@node-core/ui-components": "^1.6.1", + "@node-core/ui-components": "^1.6.3", "@orama/orama": "^3.1.18", "@orama/ui": "^1.5.4", "@rollup/plugin-virtual": "^3.0.2", "@swc/html-wasm": "^1.15.18", "acorn": "^8.16.0", "commander": "^14.0.3", - "dedent": "^1.7.1", + "dedent": "^1.7.2", "estree-util-to-js": "^2.0.0", "estree-util-visit": "^2.0.0", "github-slugger": "^2.0.0", "glob-parent": "^6.0.2", - "globals": "^17.3.0", "hast-util-to-string": "^3.0.1", "hastscript": "^9.0.1", - "lightningcss-wasm": "^1.31.1", + "lightningcss-wasm": "^1.32.0", "mdast-util-slice-markdown": "^2.0.1", "piscina": "^5.1.4", - "preact": "^10.28.4", - "preact-render-to-string": "^6.6.3", + "preact": "^10.29.0", + "preact-render-to-string": "^6.6.6", "reading-time": "^1.5.0", "recma-jsx": "^1.0.1", "rehype-raw": "^7.0.0", @@ -788,9 +787,9 @@ "remark-parse": "^11.0.0", "remark-rehype": "^11.1.2", "remark-stringify": "^11.0.0", - "rolldown": "^1.0.0-rc.6", + "rolldown": "^1.0.0-rc.10", "semver": "^7.7.4", - "shiki": "^4.0.0", + "shiki": "^4.0.2", "tinyglobby": "^0.2.15", "unified": "^11.0.5", "unist-builder": "^4.0.0", @@ -799,7 +798,7 @@ "unist-util-remove": "^4.0.0", "unist-util-select": "^5.1.0", "unist-util-visit": "^5.1.0", - "yaml": "^2.8.2" + "yaml": "^2.8.3" }, "bin": { "doc-kit": "bin/cli.mjs" @@ -2560,18 +2559,6 @@ "hast-util-to-html": "^9.0.5" } }, - "node_modules/@shikijs/engine-javascript": { - "version": "3.23.0", - "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-3.23.0.tgz", - "integrity": "sha512-aHt9eiGFobmWR5uqJUViySI1bHMqrAgamWE1TYSUoftkAeCCAiGawPMwM+VCadylQtF4V3VNOZ5LmfItH5f3yA==", - "extraneous": true, - "license": "MIT", - "dependencies": { - "@shikijs/types": "3.23.0", - "@shikijs/vscode-textmate": "^10.0.2", - "oniguruma-to-es": "^4.3.4" - } - }, "node_modules/@shikijs/engine-oniguruma": { "version": "3.23.0", "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.23.0.tgz", @@ -4578,6 +4565,7 @@ "version": "17.4.0", "resolved": "https://registry.npmjs.org/globals/-/globals-17.4.0.tgz", "integrity": "sha512-hjrNztw/VajQwOLsMNT1cbJiH2muO3OROCHnbehc8eY5JyD2gqz4AcMHPqgaOR59DjgUjYAYLeH699g/eWi2jw==", + "dev": true, "license": "MIT", "engines": { "node": ">=18" diff --git a/package.json b/package.json index 029a5c9e..2dd8b608 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "prepare": "husky" }, "dependencies": { - "@node-core/doc-kit": "^1.2.0", + "@node-core/doc-kit": "^1.3.0", "semver": "^7.7.4", "typedoc": "^0.28.18", "typedoc-plugin-markdown": "^4.11.0", diff --git a/pages/v5.x/globals.md b/pages/v5.x/globals.md index 036bb3f2..40196a58 100644 --- a/pages/v5.x/globals.md +++ b/pages/v5.x/globals.md @@ -3015,14 +3015,14 @@ and properties. #### `new ExternalsPlugin(type, externals)` -* `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} +* `type` {"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"promise"|"this"|"var"|"script"|"commonjs"|"jsonp"|"system"|"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"|"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} +* `type` {"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"promise"|"this"|"var"|"script"|"commonjs"|"jsonp"|"system"|"assign"|"amd"|"amd-require"|"umd"|"umd2"|"commonjs2"|"window"|"self"|"commonjs-static"|"commonjs-module"|"node-commonjs"|"module-import"|object} ### Methods @@ -5836,7 +5836,7 @@ Apply the plugin ### Indexable -\[`index`: {number}\]: {object} +> \[`index`: {number}\]: {object} ### Constructors @@ -6205,7 +6205,7 @@ Options object as provided by the user. * `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`. * `externalsPresets` {ExternalsPresets} Enable presets of externals for specific targets. -* `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). +* `externalsType` {"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"promise"|"this"|"var"|"script"|"commonjs"|"jsonp"|"system"|"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. @@ -6238,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} *** @@ -6270,7 +6270,7 @@ If an dependency matches exactly a property of the object, the property value is ### Indexable -\[`index`: {string}\]: {ExternalItemValue} +> \[`index`: {string}\]: {ExternalItemValue} *** @@ -6812,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"|"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). +* `externalsType` {"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"promise"|"this"|"var"|"script"|"commonjs"|"jsonp"|"system"|"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. @@ -6844,7 +6844,7 @@ Plugin instance. ### Indexable -\[`index`: {string}\]: {any} +> \[`index`: {string}\]: {any} ### Properties @@ -7029,21 +7029,23 @@ Plugin instance. > **ResolvePluginInstance** = {object|object} -### Type Declaration +### Union Members + +#### Type Literal {object} -### Index Signature +#### Index Signature \[`index`: {string}\]: {any} * `apply` {object} The run point of the plugin, required method. -{object} +*** -* `this` {Resolver} -* `arg1` {Resolver} -* Returns: {void} +#### Function + +{object} *** @@ -7063,14 +7065,22 @@ Plugin instance. > **RuleSetUse** = {string|undefined|null|string|false|0|RuleSetUseFunction|object[]|RuleSetUseFunction|object} -### Type Declaration +### Union Members {string} +*** + {undefined|null|string|false|0|RuleSetUseFunction|object[]} +*** + {RuleSetUseFunction} +*** + +#### Type Literal + {object} * `ident` {string} Unique loader options identifier. @@ -7092,12 +7102,18 @@ Plugin instance. > **RuleSetUseItem** = {string|RuleSetUseFunction|object} -### Type Declaration +### Union Members {string} +*** + {RuleSetUseFunction} +*** + +#### Type Literal + {object} * `ident` {string} Unique loader options identifier. diff --git a/pages/v5.x/webpack/namespaces/javascript.md b/pages/v5.x/webpack/namespaces/javascript.md index 9e045ab9..fdd2098b 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` {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} +* `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} * `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` {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} +* `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} * `args` {AsArray} * Returns: {R} @@ -134,7 +134,7 @@ Block pre walking iterates the scope for block variable declarations `R` * `hookMap` {HookMap>} -* `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} +* `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} * `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: {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} +* 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} #### `enterIdentifier(pattern, onIdent)` @@ -253,13 +253,13 @@ Block pre walking iterates the scope for block variable declarations #### `enterPattern(pattern, onIdent)` -* `pattern` {Identifier|Property|MemberExpression|ObjectPattern|ArrayPattern|RestElement|AssignmentPattern} +* `pattern` {Property|Identifier|MemberExpression|ObjectPattern|ArrayPattern|RestElement|AssignmentPattern} * `onIdent` {object} * Returns: {void} #### `enterPatterns(patterns, onIdent)` -* `patterns` {string|Identifier|Property|MemberExpression|ObjectPattern|ArrayPattern|RestElement|AssignmentPattern[]} +* `patterns` {string|Property|Identifier|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` {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} +* `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} * Returns: {BasicEvaluatedExpression} #### `extractMemberExpressionChain(expression)` -* `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} +* `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} * Returns: {object} #### `getComments(range)` @@ -301,7 +301,7 @@ Block pre walking iterates the scope for block variable declarations #### `getMemberExpressionInfo(expression, allowedTypes)` -* `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} +* `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} * `allowedTypes` {number} * Returns: {CallExpressionInfo|ExpressionExpressionInfo} @@ -317,7 +317,7 @@ Block pre walking iterates the scope for block variable declarations #### `getRenameIdentifier(expr)` -* `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} +* `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} * Returns: {string|VariableInfo} #### `getTagData(name, tag)` @@ -353,7 +353,7 @@ Block pre walking iterates the scope for block variable declarations #### `inScope(params, fn)` -* `params` {string|Identifier|Property|MemberExpression|ObjectPattern|ArrayPattern|RestElement|AssignmentPattern[]} +* `params` {string|Property|Identifier|MemberExpression|ObjectPattern|ArrayPattern|RestElement|AssignmentPattern[]} * `fn` {object} * Returns: {void} @@ -364,7 +364,7 @@ Block pre walking iterates the scope for block variable declarations #### `isPure(expr, commentsStartPos)` -* `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} +* `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} * `commentsStartPos` {number} * Returns: {boolean} @@ -641,12 +641,12 @@ Pre walking iterates the scope for variable declarations #### `walkExpression(expression)` -* `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} +* `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} * Returns: {void} #### `walkExpressions(expressions)` -* `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[]} +* `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[]} * Returns: {void} #### `walkExpressionStatement(statement)`