webpack 5.33.0 → 5.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of webpack might be problematic. Click here for more details.
- package/bin/webpack.js +0 -0
- package/lib/BannerPlugin.js +11 -7
- package/lib/ChunkGraph.js +12 -6
- package/lib/CleanPlugin.js +17 -15
- package/lib/Compilation.js +1 -1
- package/lib/DllPlugin.js +11 -7
- package/lib/DllReferencePlugin.js +11 -7
- package/lib/FileSystemInfo.js +112 -74
- package/lib/IgnorePlugin.js +11 -6
- package/lib/LoaderOptionsPlugin.js +10 -7
- package/lib/NormalModule.js +2 -2
- package/lib/ProgressPlugin.js +10 -6
- package/lib/RuntimePlugin.js +3 -1
- package/lib/SourceMapDevToolPlugin.js +10 -7
- package/lib/WatchIgnorePlugin.js +11 -6
- package/lib/WebpackOptionsApply.js +2 -1
- package/lib/asset/AssetModulesPlugin.js +33 -14
- package/lib/cache/PackFileCacheStrategy.js +16 -2
- package/lib/config/defaults.js +2 -1
- package/lib/container/ContainerPlugin.js +11 -3
- package/lib/container/ContainerReferencePlugin.js +12 -3
- package/lib/container/ModuleFederationPlugin.js +12 -5
- package/lib/debug/ProfilingPlugin.js +10 -6
- package/lib/dependencies/LoaderPlugin.js +6 -1
- package/lib/ids/HashedModuleIdsPlugin.js +11 -6
- package/lib/ids/OccurrenceChunkIdsPlugin.js +11 -6
- package/lib/ids/OccurrenceModuleIdsPlugin.js +11 -6
- package/lib/index.js +9 -3
- package/lib/json/JsonModulesPlugin.js +9 -8
- package/lib/node/CommonJsChunkLoadingPlugin.js +3 -1
- package/lib/node/NodeTargetPlugin.js +5 -1
- package/lib/node/ReadFileCompileAsyncWasmPlugin.js +3 -1
- package/lib/node/ReadFileCompileWasmPlugin.js +3 -1
- package/lib/optimize/AggressiveSplittingPlugin.js +12 -6
- package/lib/optimize/LimitChunkCountPlugin.js +18 -10
- package/lib/optimize/MinChunkSizePlugin.js +11 -7
- package/lib/runtime/StartupChunkDependenciesPlugin.js +3 -1
- package/lib/serialization/BinaryMiddleware.js +47 -25
- package/lib/sharing/ConsumeSharedPlugin.js +11 -3
- package/lib/sharing/ProvideSharedPlugin.js +11 -3
- package/lib/util/comparators.js +1 -3
- package/lib/util/create-schema-validation.js +21 -0
- package/lib/util/registerExternalSerializer.js +1 -1
- package/lib/web/FetchCompileAsyncWasmPlugin.js +3 -1
- package/lib/web/FetchCompileWasmPlugin.js +3 -1
- package/lib/web/JsonpChunkLoadingPlugin.js +3 -1
- package/lib/webpack.js +7 -2
- package/lib/webworker/ImportScriptsChunkLoadingPlugin.js +3 -1
- package/package.json +6 -6
- package/schemas/WebpackOptions.check.d.ts +7 -0
- package/schemas/WebpackOptions.check.js +6 -0
- package/schemas/WebpackOptions.json +13 -9
- package/schemas/plugins/BannerPlugin.check.d.ts +7 -0
- package/schemas/plugins/BannerPlugin.check.js +6 -0
- package/schemas/plugins/DllPlugin.check.d.ts +7 -0
- package/schemas/plugins/DllPlugin.check.js +6 -0
- package/schemas/plugins/DllReferencePlugin.check.d.ts +7 -0
- package/schemas/plugins/DllReferencePlugin.check.js +6 -0
- package/schemas/plugins/HashedModuleIdsPlugin.check.d.ts +7 -0
- package/schemas/plugins/HashedModuleIdsPlugin.check.js +6 -0
- package/schemas/plugins/IgnorePlugin.check.d.ts +7 -0
- package/schemas/plugins/IgnorePlugin.check.js +6 -0
- package/schemas/plugins/JsonModulesPluginParser.check.d.ts +7 -0
- package/schemas/plugins/JsonModulesPluginParser.check.js +6 -0
- package/schemas/plugins/LoaderOptionsPlugin.check.d.ts +7 -0
- package/schemas/plugins/LoaderOptionsPlugin.check.js +6 -0
- package/schemas/plugins/ProgressPlugin.check.d.ts +7 -0
- package/schemas/plugins/ProgressPlugin.check.js +6 -0
- package/schemas/plugins/SourceMapDevToolPlugin.check.d.ts +7 -0
- package/schemas/plugins/SourceMapDevToolPlugin.check.js +6 -0
- package/schemas/plugins/WatchIgnorePlugin.check.d.ts +7 -0
- package/schemas/plugins/WatchIgnorePlugin.check.js +6 -0
- package/schemas/plugins/asset/AssetGeneratorOptions.check.d.ts +7 -0
- package/schemas/plugins/asset/AssetGeneratorOptions.check.js +6 -0
- package/schemas/plugins/asset/AssetGeneratorOptions.json +3 -0
- package/schemas/plugins/asset/AssetInlineGeneratorOptions.check.d.ts +7 -0
- package/schemas/plugins/asset/AssetInlineGeneratorOptions.check.js +6 -0
- package/schemas/plugins/asset/AssetInlineGeneratorOptions.json +3 -0
- package/schemas/plugins/asset/AssetParserOptions.check.d.ts +7 -0
- package/schemas/plugins/asset/AssetParserOptions.check.js +6 -0
- package/schemas/plugins/asset/AssetParserOptions.json +3 -0
- package/schemas/plugins/asset/AssetResourceGeneratorOptions.check.d.ts +7 -0
- package/schemas/plugins/asset/AssetResourceGeneratorOptions.check.js +6 -0
- package/schemas/plugins/asset/AssetResourceGeneratorOptions.json +3 -0
- package/schemas/plugins/container/ContainerPlugin.check.d.ts +7 -0
- package/schemas/plugins/container/ContainerPlugin.check.js +6 -0
- package/schemas/plugins/container/ContainerReferencePlugin.check.d.ts +7 -0
- package/schemas/plugins/container/ContainerReferencePlugin.check.js +6 -0
- package/schemas/plugins/container/ExternalsType.check.d.ts +7 -0
- package/schemas/plugins/container/ExternalsType.check.js +6 -0
- package/schemas/plugins/container/ExternalsType.json +3 -0
- package/schemas/plugins/container/ModuleFederationPlugin.check.d.ts +7 -0
- package/schemas/plugins/container/ModuleFederationPlugin.check.js +6 -0
- package/schemas/plugins/debug/ProfilingPlugin.check.d.ts +7 -0
- package/schemas/plugins/debug/ProfilingPlugin.check.js +6 -0
- package/schemas/plugins/ids/OccurrenceChunkIdsPlugin.check.d.ts +7 -0
- package/schemas/plugins/ids/OccurrenceChunkIdsPlugin.check.js +6 -0
- package/schemas/plugins/ids/OccurrenceModuleIdsPlugin.check.d.ts +7 -0
- package/schemas/plugins/ids/OccurrenceModuleIdsPlugin.check.js +6 -0
- package/schemas/plugins/optimize/AggressiveSplittingPlugin.check.d.ts +7 -0
- package/schemas/plugins/optimize/AggressiveSplittingPlugin.check.js +6 -0
- package/schemas/plugins/optimize/LimitChunkCountPlugin.check.d.ts +7 -0
- package/schemas/plugins/optimize/LimitChunkCountPlugin.check.js +6 -0
- package/schemas/plugins/optimize/MinChunkSizePlugin.check.d.ts +7 -0
- package/schemas/plugins/optimize/MinChunkSizePlugin.check.js +6 -0
- package/schemas/plugins/sharing/ConsumeSharedPlugin.check.d.ts +7 -0
- package/schemas/plugins/sharing/ConsumeSharedPlugin.check.js +6 -0
- package/schemas/plugins/sharing/ProvideSharedPlugin.check.d.ts +7 -0
- package/schemas/plugins/sharing/ProvideSharedPlugin.check.js +6 -0
- package/schemas/plugins/sharing/SharePlugin.check.d.ts +7 -0
- package/schemas/plugins/sharing/SharePlugin.check.js +6 -0
- package/types.d.ts +21 -3
@@ -0,0 +1,6 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
const r=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;function t(e,{instancePath:a="",parentData:o,parentDataProperty:n,rootData:s=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return t.errors=[{params:{type:"object"}}],!1;{const a=0;for(const r in e)if("outputPath"!==r)return t.errors=[{params:{additionalProperty:r}}],!1;if(0===a&&void 0!==e.outputPath){let a=e.outputPath;if("string"!=typeof a)return t.errors=[{params:{type:"string"}}],!1;if(a.includes("!")||!0!==r.test(a))return t.errors=[{params:{}}],!1}}return t.errors=null,!0}module.exports=t,module.exports.default=t;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
declare const check: (options: import("../../../declarations/plugins/ids/OccurrenceChunkIdsPlugin").OccurrenceChunkIdsPluginOptions) => boolean;
|
7
|
+
export = check;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
"use strict";function r(t,{instancePath:e="",parentData:o,parentDataProperty:a,rootData:i=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return r.errors=[{params:{type:"object"}}],!1;{const e=0;for(const e in t)if("prioritiseInitial"!==e)return r.errors=[{params:{additionalProperty:e}}],!1;if(0===e&&void 0!==t.prioritiseInitial&&"boolean"!=typeof t.prioritiseInitial)return r.errors=[{params:{type:"boolean"}}],!1}return r.errors=null,!0}module.exports=r,module.exports.default=r;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
declare const check: (options: import("../../../declarations/plugins/ids/OccurrenceModuleIdsPlugin").OccurrenceModuleIdsPluginOptions) => boolean;
|
7
|
+
export = check;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
"use strict";function r(t,{instancePath:e="",parentData:o,parentDataProperty:a,rootData:i=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return r.errors=[{params:{type:"object"}}],!1;{const e=0;for(const e in t)if("prioritiseInitial"!==e)return r.errors=[{params:{additionalProperty:e}}],!1;if(0===e&&void 0!==t.prioritiseInitial&&"boolean"!=typeof t.prioritiseInitial)return r.errors=[{params:{type:"boolean"}}],!1}return r.errors=null,!0}module.exports=r,module.exports.default=r;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
declare const check: (options: import("../../../declarations/plugins/optimize/AggressiveSplittingPlugin").AggressiveSplittingPluginOptions) => boolean;
|
7
|
+
export = check;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
"use strict";function e(r,{instancePath:t="",parentData:i,parentDataProperty:n,rootData:o=r}={}){if(!r||"object"!=typeof r||Array.isArray(r))return e.errors=[{params:{type:"object"}}],!1;{const t=0;for(const t in r)if("chunkOverhead"!==t&&"entryChunkMultiplicator"!==t&&"maxSize"!==t&&"minSize"!==t)return e.errors=[{params:{additionalProperty:t}}],!1;if(0===t){if(void 0!==r.chunkOverhead){let t=r.chunkOverhead;const i=0;if("number"!=typeof t||!isFinite(t))return e.errors=[{params:{type:"number"}}],!1;var a=0===i}else a=!0;if(a){if(void 0!==r.entryChunkMultiplicator){let t=r.entryChunkMultiplicator;const i=0;if("number"!=typeof t||!isFinite(t))return e.errors=[{params:{type:"number"}}],!1;a=0===i}else a=!0;if(a){if(void 0!==r.maxSize){let t=r.maxSize;const i=0;if("number"!=typeof t||!isFinite(t))return e.errors=[{params:{type:"number"}}],!1;a=0===i}else a=!0;if(a)if(void 0!==r.minSize){let t=r.minSize;const i=0;if("number"!=typeof t||!isFinite(t))return e.errors=[{params:{type:"number"}}],!1;a=0===i}else a=!0}}}}return e.errors=null,!0}module.exports=e,module.exports.default=e;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
declare const check: (options: import("../../../declarations/plugins/optimize/LimitChunkCountPlugin").LimitChunkCountPluginOptions) => boolean;
|
7
|
+
export = check;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
"use strict";function r(e,{instancePath:t="",parentData:n,parentDataProperty:i,rootData:a=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{let t;if(void 0===e.maxChunks&&(t="maxChunks"))return r.errors=[{params:{missingProperty:t}}],!1;{const t=0;for(const t in e)if("chunkOverhead"!==t&&"entryChunkMultiplicator"!==t&&"maxChunks"!==t)return r.errors=[{params:{additionalProperty:t}}],!1;if(0===t){if(void 0!==e.chunkOverhead){let t=e.chunkOverhead;const n=0;if("number"!=typeof t||!isFinite(t))return r.errors=[{params:{type:"number"}}],!1;var s=0===n}else s=!0;if(s){if(void 0!==e.entryChunkMultiplicator){let t=e.entryChunkMultiplicator;const n=0;if("number"!=typeof t||!isFinite(t))return r.errors=[{params:{type:"number"}}],!1;s=0===n}else s=!0;if(s)if(void 0!==e.maxChunks){let t=e.maxChunks;const n=0;if(0===n){if("number"!=typeof t||!isFinite(t))return r.errors=[{params:{type:"number"}}],!1;if(t<1||isNaN(t))return r.errors=[{params:{comparison:">=",limit:1}}],!1}s=0===n}else s=!0}}}}return r.errors=null,!0}module.exports=r,module.exports.default=r;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
declare const check: (options: import("../../../declarations/plugins/optimize/MinChunkSizePlugin").MinChunkSizePluginOptions) => boolean;
|
7
|
+
export = check;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
"use strict";function r(e,{instancePath:t="",parentData:i,parentDataProperty:n,rootData:o=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{let t;if(void 0===e.minChunkSize&&(t="minChunkSize"))return r.errors=[{params:{missingProperty:t}}],!1;{const t=0;for(const t in e)if("chunkOverhead"!==t&&"entryChunkMultiplicator"!==t&&"minChunkSize"!==t)return r.errors=[{params:{additionalProperty:t}}],!1;if(0===t){if(void 0!==e.chunkOverhead){let t=e.chunkOverhead;const i=0;if("number"!=typeof t||!isFinite(t))return r.errors=[{params:{type:"number"}}],!1;var a=0===i}else a=!0;if(a){if(void 0!==e.entryChunkMultiplicator){let t=e.entryChunkMultiplicator;const i=0;if("number"!=typeof t||!isFinite(t))return r.errors=[{params:{type:"number"}}],!1;a=0===i}else a=!0;if(a)if(void 0!==e.minChunkSize){let t=e.minChunkSize;const i=0;if("number"!=typeof t||!isFinite(t))return r.errors=[{params:{type:"number"}}],!1;a=0===i}else a=!0}}}}return r.errors=null,!0}module.exports=r,module.exports.default=r;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
declare const check: (options: import("../../../declarations/plugins/sharing/ConsumeSharedPlugin").ConsumeSharedPluginOptions) => boolean;
|
7
|
+
export = check;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
"use strict";function r(e,{instancePath:t="",parentData:n,parentDataProperty:s,rootData:a=e}={}){let o=null,i=0;if(0===i){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{const t=i;for(const t in e)if("eager"!==t&&"import"!==t&&"packageName"!==t&&"requiredVersion"!==t&&"shareKey"!==t&&"shareScope"!==t&&"singleton"!==t&&"strictVersion"!==t)return r.errors=[{params:{additionalProperty:t}}],!1;if(t===i){if(void 0!==e.eager){const t=i;if("boolean"!=typeof e.eager)return r.errors=[{params:{type:"boolean"}}],!1;var l=t===i}else l=!0;if(l){if(void 0!==e.import){let t=e.import;const n=i,s=i;let a=!1;const f=i;if(!1!==t){const r={params:{}};null===o?o=[r]:o.push(r),i++}var p=f===i;if(a=a||p,!a){const r=i;if(i==i)if("string"==typeof t){if(t.length<1){const r={params:{}};null===o?o=[r]:o.push(r),i++}}else{const r={params:{type:"string"}};null===o?o=[r]:o.push(r),i++}p=r===i,a=a||p}if(!a){const e={params:{}};return null===o?o=[e]:o.push(e),i++,r.errors=o,!1}i=s,null!==o&&(s?o.length=s:o=null),l=n===i}else l=!0;if(l){if(void 0!==e.packageName){let t=e.packageName;const n=i;if(i===n){if("string"!=typeof t)return r.errors=[{params:{type:"string"}}],!1;if(t.length<1)return r.errors=[{params:{}}],!1}l=n===i}else l=!0;if(l){if(void 0!==e.requiredVersion){let t=e.requiredVersion;const n=i,s=i;let a=!1;const p=i;if(!1!==t){const r={params:{}};null===o?o=[r]:o.push(r),i++}var f=p===i;if(a=a||f,!a){const r=i;if("string"!=typeof t){const r={params:{type:"string"}};null===o?o=[r]:o.push(r),i++}f=r===i,a=a||f}if(!a){const e={params:{}};return null===o?o=[e]:o.push(e),i++,r.errors=o,!1}i=s,null!==o&&(s?o.length=s:o=null),l=n===i}else l=!0;if(l){if(void 0!==e.shareKey){let t=e.shareKey;const n=i;if(i===n){if("string"!=typeof t)return r.errors=[{params:{type:"string"}}],!1;if(t.length<1)return r.errors=[{params:{}}],!1}l=n===i}else l=!0;if(l){if(void 0!==e.shareScope){let t=e.shareScope;const n=i;if(i===n){if("string"!=typeof t)return r.errors=[{params:{type:"string"}}],!1;if(t.length<1)return r.errors=[{params:{}}],!1}l=n===i}else l=!0;if(l){if(void 0!==e.singleton){const t=i;if("boolean"!=typeof e.singleton)return r.errors=[{params:{type:"boolean"}}],!1;l=t===i}else l=!0;if(l)if(void 0!==e.strictVersion){const t=i;if("boolean"!=typeof e.strictVersion)return r.errors=[{params:{type:"boolean"}}],!1;l=t===i}else l=!0}}}}}}}}}return r.errors=o,0===i}function e(t,{instancePath:n="",parentData:s,parentDataProperty:a,rootData:o=t}={}){let i=null,l=0;if(0===l){if(!t||"object"!=typeof t||Array.isArray(t))return e.errors=[{params:{type:"object"}}],!1;for(const s in t){let a=t[s];const f=l,c=l;let u=!1;const y=l;r(a,{instancePath:n+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:s,rootData:o})||(i=null===i?r.errors:i.concat(r.errors),l=i.length);var p=y===l;if(u=u||p,!u){const r=l;if(l==l)if("string"==typeof a){if(a.length<1){const r={params:{}};null===i?i=[r]:i.push(r),l++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),l++}p=r===l,u=u||p}if(!u){const r={params:{}};return null===i?i=[r]:i.push(r),l++,e.errors=i,!1}if(l=c,null!==i&&(c?i.length=c:i=null),f!==l)break}}return e.errors=i,0===l}function t(r,{instancePath:n="",parentData:s,parentDataProperty:a,rootData:o=r}={}){let i=null,l=0;const p=l;let f=!1;const c=l;if(l===c)if(Array.isArray(r)){const t=r.length;for(let s=0;s<t;s++){let t=r[s];const a=l,p=l;let f=!1;const c=l;if(l==l)if("string"==typeof t){if(t.length<1){const r={params:{}};null===i?i=[r]:i.push(r),l++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),l++}var u=c===l;if(f=f||u,!f){const a=l;e(t,{instancePath:n+"/"+s,parentData:r,parentDataProperty:s,rootData:o})||(i=null===i?e.errors:i.concat(e.errors),l=i.length),u=a===l,f=f||u}if(f)l=p,null!==i&&(p?i.length=p:i=null);else{const r={params:{}};null===i?i=[r]:i.push(r),l++}if(a!==l)break}}else{const r={params:{type:"array"}};null===i?i=[r]:i.push(r),l++}var y=c===l;if(f=f||y,!f){const t=l;e(r,{instancePath:n,parentData:s,parentDataProperty:a,rootData:o})||(i=null===i?e.errors:i.concat(e.errors),l=i.length),y=t===l,f=f||y}if(!f){const r={params:{}};return null===i?i=[r]:i.push(r),l++,t.errors=i,!1}return l=p,null!==i&&(p?i.length=p:i=null),t.errors=i,0===l}function n(r,{instancePath:e="",parentData:s,parentDataProperty:a,rootData:o=r}={}){let i=null,l=0;if(0===l){if(!r||"object"!=typeof r||Array.isArray(r))return n.errors=[{params:{type:"object"}}],!1;{let s;if(void 0===r.consumes&&(s="consumes"))return n.errors=[{params:{missingProperty:s}}],!1;{const s=l;for(const e in r)if("consumes"!==e&&"shareScope"!==e)return n.errors=[{params:{additionalProperty:e}}],!1;if(s===l){if(void 0!==r.consumes){const n=l;t(r.consumes,{instancePath:e+"/consumes",parentData:r,parentDataProperty:"consumes",rootData:o})||(i=null===i?t.errors:i.concat(t.errors),l=i.length);var p=n===l}else p=!0;if(p)if(void 0!==r.shareScope){let e=r.shareScope;const t=l;if(l===t){if("string"!=typeof e)return n.errors=[{params:{type:"string"}}],!1;if(e.length<1)return n.errors=[{params:{}}],!1}p=t===l}else p=!0}}}}return n.errors=i,0===l}module.exports=n,module.exports.default=n;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
declare const check: (options: import("../../../declarations/plugins/sharing/ProvideSharedPlugin").ProvideSharedPluginOptions) => boolean;
|
7
|
+
export = check;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
"use strict";function r(t,{instancePath:e="",parentData:s,parentDataProperty:n,rootData:a=t}={}){let o=null,l=0;if(0===l){if(!t||"object"!=typeof t||Array.isArray(t))return r.errors=[{params:{type:"object"}}],!1;for(const e in t){let s=t[e];const n=l,a=l;let f=!1;const u=l;if(l==l)if(s&&"object"==typeof s&&!Array.isArray(s)){const r=l;for(const r in s)if("eager"!==r&&"shareKey"!==r&&"shareScope"!==r&&"version"!==r){const t={params:{additionalProperty:r}};null===o?o=[t]:o.push(t),l++;break}if(r===l){if(void 0!==s.eager){const r=l;if("boolean"!=typeof s.eager){const r={params:{type:"boolean"}};null===o?o=[r]:o.push(r),l++}var i=r===l}else i=!0;if(i){if(void 0!==s.shareKey){let r=s.shareKey;const t=l;if(l===t)if("string"==typeof r){if(r.length<1){const r={params:{}};null===o?o=[r]:o.push(r),l++}}else{const r={params:{type:"string"}};null===o?o=[r]:o.push(r),l++}i=t===l}else i=!0;if(i){if(void 0!==s.shareScope){let r=s.shareScope;const t=l;if(l===t)if("string"==typeof r){if(r.length<1){const r={params:{}};null===o?o=[r]:o.push(r),l++}}else{const r={params:{type:"string"}};null===o?o=[r]:o.push(r),l++}i=t===l}else i=!0;if(i)if(void 0!==s.version){let r=s.version;const t=l,e=l;let n=!1;const a=l;if(!1!==r){const r={params:{}};null===o?o=[r]:o.push(r),l++}var p=a===l;if(n=n||p,!n){const t=l;if("string"!=typeof r){const r={params:{type:"string"}};null===o?o=[r]:o.push(r),l++}p=t===l,n=n||p}if(n)l=e,null!==o&&(e?o.length=e:o=null);else{const r={params:{}};null===o?o=[r]:o.push(r),l++}i=t===l}else i=!0}}}}else{const r={params:{type:"object"}};null===o?o=[r]:o.push(r),l++}var c=u===l;if(f=f||c,!f){const r=l;if(l==l)if("string"==typeof s){if(s.length<1){const r={params:{}};null===o?o=[r]:o.push(r),l++}}else{const r={params:{type:"string"}};null===o?o=[r]:o.push(r),l++}c=r===l,f=f||c}if(!f){const t={params:{}};return null===o?o=[t]:o.push(t),l++,r.errors=o,!1}if(l=a,null!==o&&(a?o.length=a:o=null),n!==l)break}}return r.errors=o,0===l}function t(e,{instancePath:s="",parentData:n,parentDataProperty:a,rootData:o=e}={}){let l=null,i=0;const p=i;let c=!1;const f=i;if(i===f)if(Array.isArray(e)){const t=e.length;for(let n=0;n<t;n++){let t=e[n];const a=i,p=i;let c=!1;const f=i;if(i==i)if("string"==typeof t){if(t.length<1){const r={params:{}};null===l?l=[r]:l.push(r),i++}}else{const r={params:{type:"string"}};null===l?l=[r]:l.push(r),i++}var u=f===i;if(c=c||u,!c){const a=i;r(t,{instancePath:s+"/"+n,parentData:e,parentDataProperty:n,rootData:o})||(l=null===l?r.errors:l.concat(r.errors),i=l.length),u=a===i,c=c||u}if(c)i=p,null!==l&&(p?l.length=p:l=null);else{const r={params:{}};null===l?l=[r]:l.push(r),i++}if(a!==i)break}}else{const r={params:{type:"array"}};null===l?l=[r]:l.push(r),i++}var h=f===i;if(c=c||h,!c){const t=i;r(e,{instancePath:s,parentData:n,parentDataProperty:a,rootData:o})||(l=null===l?r.errors:l.concat(r.errors),i=l.length),h=t===i,c=c||h}if(!c){const r={params:{}};return null===l?l=[r]:l.push(r),i++,t.errors=l,!1}return i=p,null!==l&&(p?l.length=p:l=null),t.errors=l,0===i}function e(r,{instancePath:s="",parentData:n,parentDataProperty:a,rootData:o=r}={}){let l=null,i=0;if(0===i){if(!r||"object"!=typeof r||Array.isArray(r))return e.errors=[{params:{type:"object"}}],!1;{let n;if(void 0===r.provides&&(n="provides"))return e.errors=[{params:{missingProperty:n}}],!1;{const n=i;for(const t in r)if("provides"!==t&&"shareScope"!==t)return e.errors=[{params:{additionalProperty:t}}],!1;if(n===i){if(void 0!==r.provides){const e=i;t(r.provides,{instancePath:s+"/provides",parentData:r,parentDataProperty:"provides",rootData:o})||(l=null===l?t.errors:l.concat(t.errors),i=l.length);var p=e===i}else p=!0;if(p)if(void 0!==r.shareScope){let t=r.shareScope;const s=i;if(i===s){if("string"!=typeof t)return e.errors=[{params:{type:"string"}}],!1;if(t.length<1)return e.errors=[{params:{}}],!1}p=s===i}else p=!0}}}}return e.errors=l,0===i}module.exports=e,module.exports.default=e;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*
|
2
|
+
* This file was automatically generated.
|
3
|
+
* DO NOT MODIFY BY HAND.
|
4
|
+
* Run `yarn special-lint-fix` to update
|
5
|
+
*/
|
6
|
+
"use strict";module.exports=a,module.exports.default=a;const r={eager:{type:"boolean"},import:{anyOf:[{enum:[!1]},{$ref:"#/definitions/SharedItem"}]},packageName:{type:"string",minLength:1},requiredVersion:{anyOf:[{enum:[!1]},{type:"string"}]},shareKey:{type:"string",minLength:1},shareScope:{type:"string",minLength:1},singleton:{type:"boolean"},strictVersion:{type:"boolean"},version:{anyOf:[{enum:[!1]},{type:"string"}]}},e=Object.prototype.hasOwnProperty;function t(n,{instancePath:s="",parentData:a,parentDataProperty:o,rootData:i=n}={}){let l=null,p=0;if(0===p){if(!n||"object"!=typeof n||Array.isArray(n))return t.errors=[{params:{type:"object"}}],!1;{const s=p;for(const s in n)if(!e.call(r,s))return t.errors=[{params:{additionalProperty:s}}],!1;if(s===p){if(void 0!==n.eager){const r=p;if("boolean"!=typeof n.eager)return t.errors=[{params:{type:"boolean"}}],!1;var f=r===p}else f=!0;if(f){if(void 0!==n.import){let r=n.import;const e=p,s=p;let a=!1;const o=p;if(!1!==r){const r={params:{}};null===l?l=[r]:l.push(r),p++}var u=o===p;if(a=a||u,!a){const e=p;if(p==p)if("string"==typeof r){if(r.length<1){const r={params:{}};null===l?l=[r]:l.push(r),p++}}else{const r={params:{type:"string"}};null===l?l=[r]:l.push(r),p++}u=e===p,a=a||u}if(!a){const r={params:{}};return null===l?l=[r]:l.push(r),p++,t.errors=l,!1}p=s,null!==l&&(s?l.length=s:l=null),f=e===p}else f=!0;if(f){if(void 0!==n.packageName){let r=n.packageName;const e=p;if(p===e){if("string"!=typeof r)return t.errors=[{params:{type:"string"}}],!1;if(r.length<1)return t.errors=[{params:{}}],!1}f=e===p}else f=!0;if(f){if(void 0!==n.requiredVersion){let r=n.requiredVersion;const e=p,s=p;let a=!1;const o=p;if(!1!==r){const r={params:{}};null===l?l=[r]:l.push(r),p++}var c=o===p;if(a=a||c,!a){const e=p;if("string"!=typeof r){const r={params:{type:"string"}};null===l?l=[r]:l.push(r),p++}c=e===p,a=a||c}if(!a){const r={params:{}};return null===l?l=[r]:l.push(r),p++,t.errors=l,!1}p=s,null!==l&&(s?l.length=s:l=null),f=e===p}else f=!0;if(f){if(void 0!==n.shareKey){let r=n.shareKey;const e=p;if(p===e){if("string"!=typeof r)return t.errors=[{params:{type:"string"}}],!1;if(r.length<1)return t.errors=[{params:{}}],!1}f=e===p}else f=!0;if(f){if(void 0!==n.shareScope){let r=n.shareScope;const e=p;if(p===e){if("string"!=typeof r)return t.errors=[{params:{type:"string"}}],!1;if(r.length<1)return t.errors=[{params:{}}],!1}f=e===p}else f=!0;if(f){if(void 0!==n.singleton){const r=p;if("boolean"!=typeof n.singleton)return t.errors=[{params:{type:"boolean"}}],!1;f=r===p}else f=!0;if(f){if(void 0!==n.strictVersion){const r=p;if("boolean"!=typeof n.strictVersion)return t.errors=[{params:{type:"boolean"}}],!1;f=r===p}else f=!0;if(f)if(void 0!==n.version){let r=n.version;const e=p,s=p;let a=!1;const o=p;if(!1!==r){const r={params:{}};null===l?l=[r]:l.push(r),p++}var y=o===p;if(a=a||y,!a){const e=p;if("string"!=typeof r){const r={params:{type:"string"}};null===l?l=[r]:l.push(r),p++}y=e===p,a=a||y}if(!a){const r={params:{}};return null===l?l=[r]:l.push(r),p++,t.errors=l,!1}p=s,null!==l&&(s?l.length=s:l=null),f=e===p}else f=!0}}}}}}}}}}return t.errors=l,0===p}function n(r,{instancePath:e="",parentData:s,parentDataProperty:a,rootData:o=r}={}){let i=null,l=0;if(0===l){if(!r||"object"!=typeof r||Array.isArray(r))return n.errors=[{params:{type:"object"}}],!1;for(const s in r){let a=r[s];const f=l,u=l;let c=!1;const y=l;t(a,{instancePath:e+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:s,rootData:o})||(i=null===i?t.errors:i.concat(t.errors),l=i.length);var p=y===l;if(c=c||p,!c){const r=l;if(l==l)if("string"==typeof a){if(a.length<1){const r={params:{}};null===i?i=[r]:i.push(r),l++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),l++}p=r===l,c=c||p}if(!c){const r={params:{}};return null===i?i=[r]:i.push(r),l++,n.errors=i,!1}if(l=u,null!==i&&(u?i.length=u:i=null),f!==l)break}}return n.errors=i,0===l}function s(r,{instancePath:e="",parentData:t,parentDataProperty:a,rootData:o=r}={}){let i=null,l=0;const p=l;let f=!1;const u=l;if(l===u)if(Array.isArray(r)){const t=r.length;for(let s=0;s<t;s++){let t=r[s];const a=l,p=l;let f=!1;const u=l;if(l==l)if("string"==typeof t){if(t.length<1){const r={params:{}};null===i?i=[r]:i.push(r),l++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),l++}var c=u===l;if(f=f||c,!f){const a=l;n(t,{instancePath:e+"/"+s,parentData:r,parentDataProperty:s,rootData:o})||(i=null===i?n.errors:i.concat(n.errors),l=i.length),c=a===l,f=f||c}if(f)l=p,null!==i&&(p?i.length=p:i=null);else{const r={params:{}};null===i?i=[r]:i.push(r),l++}if(a!==l)break}}else{const r={params:{type:"array"}};null===i?i=[r]:i.push(r),l++}var y=u===l;if(f=f||y,!f){const s=l;n(r,{instancePath:e,parentData:t,parentDataProperty:a,rootData:o})||(i=null===i?n.errors:i.concat(n.errors),l=i.length),y=s===l,f=f||y}if(!f){const r={params:{}};return null===i?i=[r]:i.push(r),l++,s.errors=i,!1}return l=p,null!==i&&(p?i.length=p:i=null),s.errors=i,0===l}function a(r,{instancePath:e="",parentData:t,parentDataProperty:n,rootData:o=r}={}){let i=null,l=0;if(0===l){if(!r||"object"!=typeof r||Array.isArray(r))return a.errors=[{params:{type:"object"}}],!1;{let t;if(void 0===r.shared&&(t="shared"))return a.errors=[{params:{missingProperty:t}}],!1;{const t=l;for(const e in r)if("shareScope"!==e&&"shared"!==e)return a.errors=[{params:{additionalProperty:e}}],!1;if(t===l){if(void 0!==r.shareScope){let e=r.shareScope;const t=l;if(l===t){if("string"!=typeof e)return a.errors=[{params:{type:"string"}}],!1;if(e.length<1)return a.errors=[{params:{}}],!1}var p=t===l}else p=!0;if(p)if(void 0!==r.shared){const t=l;s(r.shared,{instancePath:e+"/shared",parentData:r,parentDataProperty:"shared",rootData:o})||(i=null===i?s.errors:i.concat(s.errors),l=i.length),p=t===l}else p=!0}}}}return a.errors=i,0===l}
|
package/types.d.ts
CHANGED
@@ -12,6 +12,7 @@ import {
|
|
12
12
|
AssignmentPattern,
|
13
13
|
AssignmentProperty,
|
14
14
|
AwaitExpression,
|
15
|
+
BigIntLiteral,
|
15
16
|
BinaryExpression,
|
16
17
|
BlockStatement,
|
17
18
|
BreakStatement,
|
@@ -3528,6 +3529,7 @@ type Expression =
|
|
3528
3529
|
| YieldExpression
|
3529
3530
|
| SimpleLiteral
|
3530
3531
|
| RegExpLiteral
|
3532
|
+
| BigIntLiteral
|
3531
3533
|
| UpdateExpression
|
3532
3534
|
| BinaryExpression
|
3533
3535
|
| AssignmentExpression
|
@@ -3757,6 +3759,11 @@ declare class FetchCompileWasmPlugin {
|
|
3757
3759
|
* Options object for persistent file-based caching.
|
3758
3760
|
*/
|
3759
3761
|
declare interface FileCacheOptions {
|
3762
|
+
/**
|
3763
|
+
* Allows to collect unused memory allocated during deserialization. This requires copying data into smaller buffers and has a performance cost.
|
3764
|
+
*/
|
3765
|
+
allowCollectingMemory?: boolean;
|
3766
|
+
|
3760
3767
|
/**
|
3761
3768
|
* Dependencies the build depends on (in multiple categories, default categories: 'defaultWebpack').
|
3762
3769
|
*/
|
@@ -3778,12 +3785,12 @@ declare interface FileCacheOptions {
|
|
3778
3785
|
hashAlgorithm?: string;
|
3779
3786
|
|
3780
3787
|
/**
|
3781
|
-
* Time in ms after which idle period the cache storing should happen (only for store: 'pack'
|
3788
|
+
* Time in ms after which idle period the cache storing should happen (only for store: 'pack').
|
3782
3789
|
*/
|
3783
3790
|
idleTimeout?: number;
|
3784
3791
|
|
3785
3792
|
/**
|
3786
|
-
* Time in ms after which idle period the initial cache storing should happen (only for store: 'pack'
|
3793
|
+
* Time in ms after which idle period the initial cache storing should happen (only for store: 'pack').
|
3787
3794
|
*/
|
3788
3795
|
idleTimeoutForInitialStore?: number;
|
3789
3796
|
|
@@ -4287,7 +4294,13 @@ type IgnorePluginOptions =
|
|
4287
4294
|
*/
|
4288
4295
|
checkResource?: (resource: string, context: string) => boolean;
|
4289
4296
|
};
|
4290
|
-
type ImportSource =
|
4297
|
+
type ImportSource =
|
4298
|
+
| undefined
|
4299
|
+
| null
|
4300
|
+
| string
|
4301
|
+
| SimpleLiteral
|
4302
|
+
| RegExpLiteral
|
4303
|
+
| BigIntLiteral;
|
4291
4304
|
|
4292
4305
|
/**
|
4293
4306
|
* Options for infrastructure level logging.
|
@@ -4500,6 +4513,7 @@ declare class JavascriptParser extends Parser {
|
|
4500
4513
|
| YieldExpression
|
4501
4514
|
| SimpleLiteral
|
4502
4515
|
| RegExpLiteral
|
4516
|
+
| BigIntLiteral
|
4503
4517
|
| UpdateExpression
|
4504
4518
|
| BinaryExpression
|
4505
4519
|
| AssignmentExpression
|
@@ -4707,6 +4721,7 @@ declare class JavascriptParser extends Parser {
|
|
4707
4721
|
| YieldExpression
|
4708
4722
|
| SimpleLiteral
|
4709
4723
|
| RegExpLiteral
|
4724
|
+
| BigIntLiteral
|
4710
4725
|
| UpdateExpression
|
4711
4726
|
| BinaryExpression
|
4712
4727
|
| AssignmentExpression
|
@@ -4915,6 +4930,7 @@ declare class JavascriptParser extends Parser {
|
|
4915
4930
|
| YieldExpression
|
4916
4931
|
| SimpleLiteral
|
4917
4932
|
| RegExpLiteral
|
4933
|
+
| BigIntLiteral
|
4918
4934
|
| UpdateExpression
|
4919
4935
|
| BinaryExpression
|
4920
4936
|
| AssignmentExpression
|
@@ -4965,6 +4981,7 @@ declare class JavascriptParser extends Parser {
|
|
4965
4981
|
| YieldExpression
|
4966
4982
|
| SimpleLiteral
|
4967
4983
|
| RegExpLiteral
|
4984
|
+
| BigIntLiteral
|
4968
4985
|
| UpdateExpression
|
4969
4986
|
| BinaryExpression
|
4970
4987
|
| AssignmentExpression
|
@@ -6658,6 +6675,7 @@ type NodeEstreeIndex =
|
|
6658
6675
|
| YieldExpression
|
6659
6676
|
| SimpleLiteral
|
6660
6677
|
| RegExpLiteral
|
6678
|
+
| BigIntLiteral
|
6661
6679
|
| UpdateExpression
|
6662
6680
|
| BinaryExpression
|
6663
6681
|
| AssignmentExpression
|