webpack 5.96.1 → 5.97.1
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.
- package/lib/CssModule.js +5 -0
- package/lib/DefinePlugin.js +7 -1
- package/lib/DependencyTemplate.js +2 -2
- package/lib/EvalSourceMapDevToolPlugin.js +5 -0
- package/lib/FalseIIFEUmdWarning.js +19 -0
- package/lib/HotModuleReplacementPlugin.js +4 -0
- package/lib/Module.js +6 -0
- package/lib/ModuleSourceTypesConstants.js +12 -0
- package/lib/NormalModule.js +1 -0
- package/lib/RuntimeTemplate.js +7 -0
- package/lib/SourceMapDevToolPlugin.js +8 -0
- package/lib/WebpackOptionsApply.js +3 -1
- package/lib/asset/AssetModulesPlugin.js +7 -2
- package/lib/config/defaults.js +52 -36
- package/lib/config/normalization.js +0 -1
- package/lib/config/target.js +8 -8
- package/lib/css/CssGenerator.js +139 -35
- package/lib/css/CssLoadingRuntimeModule.js +108 -198
- package/lib/css/CssModulesPlugin.js +78 -124
- package/lib/css/CssParser.js +545 -121
- package/lib/css/walkCssTokens.js +41 -19
- package/lib/dependencies/CachedConstDependency.js +2 -1
- package/lib/dependencies/ContextDependencyTemplateAsId.js +3 -2
- package/lib/dependencies/{CssExportDependency.js → CssIcssExportDependency.js} +35 -35
- package/lib/dependencies/CssIcssImportDependency.js +118 -0
- package/lib/dependencies/CssIcssSymbolDependency.js +132 -0
- package/lib/dependencies/CssImportDependency.js +0 -8
- package/lib/dependencies/CssLocalIdentifierDependency.js +69 -73
- package/lib/dependencies/CssUrlDependency.js +1 -0
- package/lib/esm/ModuleChunkFormatPlugin.js +8 -4
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +17 -10
- package/lib/hmr/HotModuleReplacementRuntimeModule.js +0 -1
- package/lib/index.js +9 -3
- package/lib/javascript/EnableChunkLoadingPlugin.js +2 -4
- package/lib/javascript/JavascriptParser.js +1 -0
- package/lib/library/AssignLibraryPlugin.js +1 -1
- package/lib/library/EnableLibraryPlugin.js +17 -0
- package/lib/node/ReadFileCompileAsyncWasmPlugin.js +81 -78
- package/lib/node/ReadFileCompileWasmPlugin.js +76 -57
- package/lib/optimize/MergeDuplicateChunksPlugin.js +22 -2
- package/lib/sharing/ConsumeSharedPlugin.js +35 -12
- package/lib/sharing/utils.js +35 -4
- package/lib/stats/DefaultStatsFactoryPlugin.js +0 -5
- package/lib/util/Queue.js +1 -6
- package/lib/util/generateDebugId.js +33 -0
- package/lib/util/internalSerializables.js +6 -2
- package/lib/wasm/EnableWasmLoadingPlugin.js +36 -25
- package/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js +26 -2
- package/lib/wasm-async/UniversalCompileAsyncWasmPlugin.js +103 -0
- package/lib/wasm-sync/WebAssemblyParser.js +1 -1
- package/lib/web/FetchCompileAsyncWasmPlugin.js +43 -44
- package/lib/web/FetchCompileWasmPlugin.js +4 -4
- package/package.json +4 -4
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +34 -12
- package/schemas/plugins/BannerPlugin.json +1 -1
- package/schemas/plugins/SourceMapDevToolPlugin.check.js +1 -1
- package/schemas/plugins/SourceMapDevToolPlugin.json +4 -0
- package/schemas/plugins/css/CssAutoParserOptions.check.js +1 -1
- package/schemas/plugins/css/CssGlobalParserOptions.check.js +1 -1
- package/schemas/plugins/css/CssModuleParserOptions.check.js +1 -1
- package/schemas/plugins/css/CssParserOptions.check.js +1 -1
- package/schemas/plugins/optimize/MergeDuplicateChunksPlugin.check.d.ts +7 -0
- package/schemas/plugins/optimize/MergeDuplicateChunksPlugin.check.js +6 -0
- package/schemas/plugins/optimize/MergeDuplicateChunksPlugin.json +11 -0
- package/types.d.ts +94 -27
- package/lib/css/CssExportsGenerator.js +0 -207
@@ -395,8 +395,14 @@
|
|
395
395
|
"type": "object",
|
396
396
|
"additionalProperties": false,
|
397
397
|
"properties": {
|
398
|
+
"import": {
|
399
|
+
"$ref": "#/definitions/CssParserImport"
|
400
|
+
},
|
398
401
|
"namedExports": {
|
399
402
|
"$ref": "#/definitions/CssParserNamedExports"
|
403
|
+
},
|
404
|
+
"url": {
|
405
|
+
"$ref": "#/definitions/CssParserUrl"
|
400
406
|
}
|
401
407
|
}
|
402
408
|
},
|
@@ -483,15 +489,17 @@
|
|
483
489
|
"type": "object",
|
484
490
|
"additionalProperties": false,
|
485
491
|
"properties": {
|
492
|
+
"import": {
|
493
|
+
"$ref": "#/definitions/CssParserImport"
|
494
|
+
},
|
486
495
|
"namedExports": {
|
487
496
|
"$ref": "#/definitions/CssParserNamedExports"
|
497
|
+
},
|
498
|
+
"url": {
|
499
|
+
"$ref": "#/definitions/CssParserUrl"
|
488
500
|
}
|
489
501
|
}
|
490
502
|
},
|
491
|
-
"CssHeadDataCompression": {
|
492
|
-
"description": "Compress the data in the head tag of CSS files.",
|
493
|
-
"type": "boolean"
|
494
|
-
},
|
495
503
|
"CssModuleGeneratorOptions": {
|
496
504
|
"description": "Generator options for css/module modules.",
|
497
505
|
"type": "object",
|
@@ -516,11 +524,21 @@
|
|
516
524
|
"type": "object",
|
517
525
|
"additionalProperties": false,
|
518
526
|
"properties": {
|
527
|
+
"import": {
|
528
|
+
"$ref": "#/definitions/CssParserImport"
|
529
|
+
},
|
519
530
|
"namedExports": {
|
520
531
|
"$ref": "#/definitions/CssParserNamedExports"
|
532
|
+
},
|
533
|
+
"url": {
|
534
|
+
"$ref": "#/definitions/CssParserUrl"
|
521
535
|
}
|
522
536
|
}
|
523
537
|
},
|
538
|
+
"CssParserImport": {
|
539
|
+
"description": "Enable/disable `@import` at-rules handling.",
|
540
|
+
"type": "boolean"
|
541
|
+
},
|
524
542
|
"CssParserNamedExports": {
|
525
543
|
"description": "Use ES modules named export for css exports.",
|
526
544
|
"type": "boolean"
|
@@ -530,11 +548,21 @@
|
|
530
548
|
"type": "object",
|
531
549
|
"additionalProperties": false,
|
532
550
|
"properties": {
|
551
|
+
"import": {
|
552
|
+
"$ref": "#/definitions/CssParserImport"
|
553
|
+
},
|
533
554
|
"namedExports": {
|
534
555
|
"$ref": "#/definitions/CssParserNamedExports"
|
556
|
+
},
|
557
|
+
"url": {
|
558
|
+
"$ref": "#/definitions/CssParserUrl"
|
535
559
|
}
|
536
560
|
}
|
537
561
|
},
|
562
|
+
"CssParserUrl": {
|
563
|
+
"description": "Enable/disable `url()`/`image-set()`/`src()`/`image()` functions handling.",
|
564
|
+
"type": "boolean"
|
565
|
+
},
|
538
566
|
"Dependencies": {
|
539
567
|
"description": "References to other configurations to depend on.",
|
540
568
|
"type": "array",
|
@@ -564,7 +592,7 @@
|
|
564
592
|
},
|
565
593
|
{
|
566
594
|
"type": "string",
|
567
|
-
"pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map
|
595
|
+
"pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map(-debugids)?$"
|
568
596
|
}
|
569
597
|
]
|
570
598
|
},
|
@@ -3337,9 +3365,6 @@
|
|
3337
3365
|
"cssFilename": {
|
3338
3366
|
"$ref": "#/definitions/CssFilename"
|
3339
3367
|
},
|
3340
|
-
"cssHeadDataCompression": {
|
3341
|
-
"$ref": "#/definitions/CssHeadDataCompression"
|
3342
|
-
},
|
3343
3368
|
"devtoolFallbackModuleFilenameTemplate": {
|
3344
3369
|
"$ref": "#/definitions/DevtoolFallbackModuleFilenameTemplate"
|
3345
3370
|
},
|
@@ -3546,9 +3571,6 @@
|
|
3546
3571
|
"cssFilename": {
|
3547
3572
|
"$ref": "#/definitions/CssFilename"
|
3548
3573
|
},
|
3549
|
-
"cssHeadDataCompression": {
|
3550
|
-
"$ref": "#/definitions/CssHeadDataCompression"
|
3551
|
-
},
|
3552
3574
|
"devtoolFallbackModuleFilenameTemplate": {
|
3553
3575
|
"$ref": "#/definitions/DevtoolFallbackModuleFilenameTemplate"
|
3554
3576
|
},
|
@@ -5401,7 +5423,7 @@
|
|
5401
5423
|
"description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).",
|
5402
5424
|
"anyOf": [
|
5403
5425
|
{
|
5404
|
-
"enum": ["fetch
|
5426
|
+
"enum": ["fetch", "async-node"]
|
5405
5427
|
},
|
5406
5428
|
{
|
5407
5429
|
"type": "string"
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
4
4
|
* Run `yarn special-lint-fix` to update
|
5
5
|
*/
|
6
|
-
const e=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;module.exports=l,module.exports.default=l;const n={definitions:{rule:{anyOf:[{instanceof:"RegExp"},{type:"string",minLength:1}]},rules:{anyOf:[{type:"array",items:{oneOf:[{$ref:"#/definitions/rule"}]}},{$ref:"#/definitions/rule"}]}},type:"object",additionalProperties:!1,properties:{append:{anyOf:[{enum:[!1,null]},{type:"string",minLength:1},{instanceof:"Function"}]},columns:{type:"boolean"},exclude:{oneOf:[{$ref:"#/definitions/rules"}]},fallbackModuleFilenameTemplate:{anyOf:[{type:"string",minLength:1},{instanceof:"Function"}]},fileContext:{type:"string"},filename:{anyOf:[{enum:[!1,null]},{type:"string",absolutePath:!1,minLength:1}]},include:{oneOf:[{$ref:"#/definitions/rules"}]},module:{type:"boolean"},moduleFilenameTemplate:{anyOf:[{type:"string",minLength:1},{instanceof:"Function"}]},namespace:{type:"string"},noSources:{type:"boolean"},publicPath:{type:"string"},sourceRoot:{type:"string"},test:{$ref:"#/definitions/rules"}}},t=Object.prototype.hasOwnProperty;function s(e,{instancePath:n="",parentData:t,parentDataProperty:l,rootData:r=e}={}){let o=null,a=0;const i=a;let u=!1;const p=a;if(a===p)if(Array.isArray(e)){const n=e.length;for(let t=0;t<n;t++){let n=e[t];const s=a,l=a;let r=!1,i=null;const u=a,p=a;let c=!1;const m=a;if(!(n instanceof RegExp)){const e={params:{}};null===o?o=[e]:o.push(e),a++}var f=m===a;if(c=c||f,!c){const e=a;if(a===e)if("string"==typeof n){if(n.length<1){const e={params:{}};null===o?o=[e]:o.push(e),a++}}else{const e={params:{type:"string"}};null===o?o=[e]:o.push(e),a++}f=e===a,c=c||f}if(c)a=p,null!==o&&(p?o.length=p:o=null);else{const e={params:{}};null===o?o=[e]:o.push(e),a++}if(u===a&&(r=!0,i=0),r)a=l,null!==o&&(l?o.length=l:o=null);else{const e={params:{passingSchemas:i}};null===o?o=[e]:o.push(e),a++}if(s!==a)break}}else{const e={params:{type:"array"}};null===o?o=[e]:o.push(e),a++}var c=p===a;if(u=u||c,!u){const n=a,t=a;let s=!1;const l=a;if(!(e instanceof RegExp)){const e={params:{}};null===o?o=[e]:o.push(e),a++}var m=l===a;if(s=s||m,!s){const n=a;if(a===n)if("string"==typeof e){if(e.length<1){const e={params:{}};null===o?o=[e]:o.push(e),a++}}else{const e={params:{type:"string"}};null===o?o=[e]:o.push(e),a++}m=n===a,s=s||m}if(s)a=t,null!==o&&(t?o.length=t:o=null);else{const e={params:{}};null===o?o=[e]:o.push(e),a++}c=n===a,u=u||c}if(!u){const e={params:{}};return null===o?o=[e]:o.push(e),a++,s.errors=o,!1}return a=i,null!==o&&(i?o.length=i:o=null),s.errors=o,0===a}function l(r,{instancePath:o="",parentData:a,parentDataProperty:i,rootData:u=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return l.errors=[{params:{type:"object"}}],!1;{const a=f;for(const e in r)if(!t.call(n.properties,e))return l.errors=[{params:{additionalProperty:e}}],!1;if(a===f){if(void 0!==r.append){let e=r.append;const n=f,t=f;let s=!1;const o=f;if(!1!==e&&null!==e){const e={params:{}};null===p?p=[e]:p.push(e),f++}var c=o===f;if(s=s||c,!s){const n=f;if(f===n)if("string"==typeof e){if(e.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}if(c=n===f,s=s||c,!s){const n=f;if(!(e instanceof Function)){const e={params:{}};null===p?p=[e]:p.push(e),f++}c=n===f,s=s||c}}if(!s){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null);var m=n===f}else m=!0;if(m){if(void 0!==r.columns){const e=f;if("boolean"!=typeof r.columns)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.exclude){const e=f,n=f;let t=!1,a=null;const i=f;if(s(r.exclude,{instancePath:o+"/exclude",parentData:r,parentDataProperty:"exclude",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),i===f&&(t=!0,a=0),!t){const e={params:{passingSchemas:a}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),m=e===f}else m=!0;if(m){if(void 0!==r.fallbackModuleFilenameTemplate){let e=r.fallbackModuleFilenameTemplate;const n=f,t=f;let s=!1;const o=f;if(f===o)if("string"==typeof e){if(e.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}var h=o===f;if(s=s||h,!s){const n=f;if(!(e instanceof Function)){const e={params:{}};null===p?p=[e]:p.push(e),f++}h=n===f,s=s||h}if(!s){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.fileContext){const e=f;if("string"!=typeof r.fileContext)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.filename){let n=r.filename;const t=f,s=f;let o=!1;const a=f;if(!1!==n&&null!==n){const e={params:{}};null===p?p=[e]:p.push(e),f++}var y=a===f;if(o=o||y,!o){const t=f;if(f===t)if("string"==typeof n){if(n.includes("!")||!1!==e.test(n)){const e={params:{}};null===p?p=[e]:p.push(e),f++}else if(n.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}y=t===f,o=o||y}if(!o){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=s,null!==p&&(s?p.length=s:p=null),m=t===f}else m=!0;if(m){if(void 0!==r.include){const e=f,n=f;let t=!1,a=null;const i=f;if(s(r.include,{instancePath:o+"/include",parentData:r,parentDataProperty:"include",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),i===f&&(t=!0,a=0),!t){const e={params:{passingSchemas:a}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),m=e===f}else m=!0;if(m){if(void 0!==r.module){const e=f;if("boolean"!=typeof r.module)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.moduleFilenameTemplate){let e=r.moduleFilenameTemplate;const n=f,t=f;let s=!1;const o=f;if(f===o)if("string"==typeof e){if(e.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}var g=o===f;if(s=s||g,!s){const n=f;if(!(e instanceof Function)){const e={params:{}};null===p?p=[e]:p.push(e),f++}g=n===f,s=s||g}if(!s){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.namespace){const e=f;if("string"!=typeof r.namespace)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.noSources){const e=f;if("boolean"!=typeof r.noSources)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.publicPath){const e=f;if("string"!=typeof r.publicPath)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.sourceRoot){const e=f;if("string"!=typeof r.sourceRoot)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m)if(void 0!==r.test){const e=f;s(r.test,{instancePath:o+"/test",parentData:r,parentDataProperty:"test",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),m=e===f}else m=!0}}}}}}}}}}}}}}}return l.errors=p,0===f}
|
6
|
+
const e=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;module.exports=l,module.exports.default=l;const n={definitions:{rule:{anyOf:[{instanceof:"RegExp"},{type:"string",minLength:1}]},rules:{anyOf:[{type:"array",items:{oneOf:[{$ref:"#/definitions/rule"}]}},{$ref:"#/definitions/rule"}]}},type:"object",additionalProperties:!1,properties:{append:{anyOf:[{enum:[!1,null]},{type:"string",minLength:1},{instanceof:"Function"}]},columns:{type:"boolean"},debugIds:{type:"boolean"},exclude:{oneOf:[{$ref:"#/definitions/rules"}]},fallbackModuleFilenameTemplate:{anyOf:[{type:"string",minLength:1},{instanceof:"Function"}]},fileContext:{type:"string"},filename:{anyOf:[{enum:[!1,null]},{type:"string",absolutePath:!1,minLength:1}]},include:{oneOf:[{$ref:"#/definitions/rules"}]},module:{type:"boolean"},moduleFilenameTemplate:{anyOf:[{type:"string",minLength:1},{instanceof:"Function"}]},namespace:{type:"string"},noSources:{type:"boolean"},publicPath:{type:"string"},sourceRoot:{type:"string"},test:{$ref:"#/definitions/rules"}}},t=Object.prototype.hasOwnProperty;function s(e,{instancePath:n="",parentData:t,parentDataProperty:l,rootData:r=e}={}){let o=null,a=0;const i=a;let u=!1;const p=a;if(a===p)if(Array.isArray(e)){const n=e.length;for(let t=0;t<n;t++){let n=e[t];const s=a,l=a;let r=!1,i=null;const u=a,p=a;let c=!1;const m=a;if(!(n instanceof RegExp)){const e={params:{}};null===o?o=[e]:o.push(e),a++}var f=m===a;if(c=c||f,!c){const e=a;if(a===e)if("string"==typeof n){if(n.length<1){const e={params:{}};null===o?o=[e]:o.push(e),a++}}else{const e={params:{type:"string"}};null===o?o=[e]:o.push(e),a++}f=e===a,c=c||f}if(c)a=p,null!==o&&(p?o.length=p:o=null);else{const e={params:{}};null===o?o=[e]:o.push(e),a++}if(u===a&&(r=!0,i=0),r)a=l,null!==o&&(l?o.length=l:o=null);else{const e={params:{passingSchemas:i}};null===o?o=[e]:o.push(e),a++}if(s!==a)break}}else{const e={params:{type:"array"}};null===o?o=[e]:o.push(e),a++}var c=p===a;if(u=u||c,!u){const n=a,t=a;let s=!1;const l=a;if(!(e instanceof RegExp)){const e={params:{}};null===o?o=[e]:o.push(e),a++}var m=l===a;if(s=s||m,!s){const n=a;if(a===n)if("string"==typeof e){if(e.length<1){const e={params:{}};null===o?o=[e]:o.push(e),a++}}else{const e={params:{type:"string"}};null===o?o=[e]:o.push(e),a++}m=n===a,s=s||m}if(s)a=t,null!==o&&(t?o.length=t:o=null);else{const e={params:{}};null===o?o=[e]:o.push(e),a++}c=n===a,u=u||c}if(!u){const e={params:{}};return null===o?o=[e]:o.push(e),a++,s.errors=o,!1}return a=i,null!==o&&(i?o.length=i:o=null),s.errors=o,0===a}function l(r,{instancePath:o="",parentData:a,parentDataProperty:i,rootData:u=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return l.errors=[{params:{type:"object"}}],!1;{const a=f;for(const e in r)if(!t.call(n.properties,e))return l.errors=[{params:{additionalProperty:e}}],!1;if(a===f){if(void 0!==r.append){let e=r.append;const n=f,t=f;let s=!1;const o=f;if(!1!==e&&null!==e){const e={params:{}};null===p?p=[e]:p.push(e),f++}var c=o===f;if(s=s||c,!s){const n=f;if(f===n)if("string"==typeof e){if(e.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}if(c=n===f,s=s||c,!s){const n=f;if(!(e instanceof Function)){const e={params:{}};null===p?p=[e]:p.push(e),f++}c=n===f,s=s||c}}if(!s){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null);var m=n===f}else m=!0;if(m){if(void 0!==r.columns){const e=f;if("boolean"!=typeof r.columns)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.debugIds){const e=f;if("boolean"!=typeof r.debugIds)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.exclude){const e=f,n=f;let t=!1,a=null;const i=f;if(s(r.exclude,{instancePath:o+"/exclude",parentData:r,parentDataProperty:"exclude",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),i===f&&(t=!0,a=0),!t){const e={params:{passingSchemas:a}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),m=e===f}else m=!0;if(m){if(void 0!==r.fallbackModuleFilenameTemplate){let e=r.fallbackModuleFilenameTemplate;const n=f,t=f;let s=!1;const o=f;if(f===o)if("string"==typeof e){if(e.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}var h=o===f;if(s=s||h,!s){const n=f;if(!(e instanceof Function)){const e={params:{}};null===p?p=[e]:p.push(e),f++}h=n===f,s=s||h}if(!s){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.fileContext){const e=f;if("string"!=typeof r.fileContext)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.filename){let n=r.filename;const t=f,s=f;let o=!1;const a=f;if(!1!==n&&null!==n){const e={params:{}};null===p?p=[e]:p.push(e),f++}var y=a===f;if(o=o||y,!o){const t=f;if(f===t)if("string"==typeof n){if(n.includes("!")||!1!==e.test(n)){const e={params:{}};null===p?p=[e]:p.push(e),f++}else if(n.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}y=t===f,o=o||y}if(!o){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=s,null!==p&&(s?p.length=s:p=null),m=t===f}else m=!0;if(m){if(void 0!==r.include){const e=f,n=f;let t=!1,a=null;const i=f;if(s(r.include,{instancePath:o+"/include",parentData:r,parentDataProperty:"include",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),i===f&&(t=!0,a=0),!t){const e={params:{passingSchemas:a}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),m=e===f}else m=!0;if(m){if(void 0!==r.module){const e=f;if("boolean"!=typeof r.module)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.moduleFilenameTemplate){let e=r.moduleFilenameTemplate;const n=f,t=f;let s=!1;const o=f;if(f===o)if("string"==typeof e){if(e.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}var g=o===f;if(s=s||g,!s){const n=f;if(!(e instanceof Function)){const e={params:{}};null===p?p=[e]:p.push(e),f++}g=n===f,s=s||g}if(!s){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.namespace){const e=f;if("string"!=typeof r.namespace)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.noSources){const e=f;if("boolean"!=typeof r.noSources)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.publicPath){const e=f;if("string"!=typeof r.publicPath)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.sourceRoot){const e=f;if("string"!=typeof r.sourceRoot)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m)if(void 0!==r.test){const e=f;s(r.test,{instancePath:o+"/test",parentData:r,parentDataProperty:"test",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),m=e===f}else m=!0}}}}}}}}}}}}}}}}return l.errors=p,0===f}
|
@@ -58,6 +58,10 @@
|
|
58
58
|
"description": "Indicates whether column mappings should be used (defaults to true).",
|
59
59
|
"type": "boolean"
|
60
60
|
},
|
61
|
+
"debugIds": {
|
62
|
+
"description": "Emit debug IDs into source and SourceMap.",
|
63
|
+
"type": "boolean"
|
64
|
+
},
|
61
65
|
"exclude": {
|
62
66
|
"description": "Exclude modules that match the given value from source map generation.",
|
63
67
|
"oneOf": [
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
4
4
|
* Run `yarn special-lint-fix` to update
|
5
5
|
*/
|
6
|
-
"use strict";function r(t,{instancePath:
|
6
|
+
"use strict";function r(t,{instancePath:e="",parentData:o,parentDataProperty:a,rootData:n=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("import"!==e&&"namedExports"!==e&&"url"!==e)return r.errors=[{params:{additionalProperty:e}}],!1;if(0===e){if(void 0!==t.import){const e=0;if("boolean"!=typeof t.import)return r.errors=[{params:{type:"boolean"}}],!1;var s=0===e}else s=!0;if(s){if(void 0!==t.namedExports){const e=0;if("boolean"!=typeof t.namedExports)return r.errors=[{params:{type:"boolean"}}],!1;s=0===e}else s=!0;if(s)if(void 0!==t.url){const e=0;if("boolean"!=typeof t.url)return r.errors=[{params:{type:"boolean"}}],!1;s=0===e}else s=!0}}}return r.errors=null,!0}function t(e,{instancePath:o="",parentData:a,parentDataProperty:n,rootData:s=e}={}){let p=null,i=0;return r(e,{instancePath:o,parentData:a,parentDataProperty:n,rootData:s})||(p=null===p?r.errors:p.concat(r.errors),i=p.length),t.errors=p,0===i}module.exports=t,module.exports.default=t;
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
4
4
|
* Run `yarn special-lint-fix` to update
|
5
5
|
*/
|
6
|
-
"use strict";function r(t,{instancePath:
|
6
|
+
"use strict";function r(t,{instancePath:e="",parentData:o,parentDataProperty:a,rootData:n=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("import"!==e&&"namedExports"!==e&&"url"!==e)return r.errors=[{params:{additionalProperty:e}}],!1;if(0===e){if(void 0!==t.import){const e=0;if("boolean"!=typeof t.import)return r.errors=[{params:{type:"boolean"}}],!1;var s=0===e}else s=!0;if(s){if(void 0!==t.namedExports){const e=0;if("boolean"!=typeof t.namedExports)return r.errors=[{params:{type:"boolean"}}],!1;s=0===e}else s=!0;if(s)if(void 0!==t.url){const e=0;if("boolean"!=typeof t.url)return r.errors=[{params:{type:"boolean"}}],!1;s=0===e}else s=!0}}}return r.errors=null,!0}function t(e,{instancePath:o="",parentData:a,parentDataProperty:n,rootData:s=e}={}){let p=null,i=0;return r(e,{instancePath:o,parentData:a,parentDataProperty:n,rootData:s})||(p=null===p?r.errors:p.concat(r.errors),i=p.length),t.errors=p,0===i}module.exports=t,module.exports.default=t;
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
4
4
|
* Run `yarn special-lint-fix` to update
|
5
5
|
*/
|
6
|
-
"use strict";function r(t,{instancePath:
|
6
|
+
"use strict";function r(t,{instancePath:e="",parentData:o,parentDataProperty:a,rootData:n=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("import"!==e&&"namedExports"!==e&&"url"!==e)return r.errors=[{params:{additionalProperty:e}}],!1;if(0===e){if(void 0!==t.import){const e=0;if("boolean"!=typeof t.import)return r.errors=[{params:{type:"boolean"}}],!1;var s=0===e}else s=!0;if(s){if(void 0!==t.namedExports){const e=0;if("boolean"!=typeof t.namedExports)return r.errors=[{params:{type:"boolean"}}],!1;s=0===e}else s=!0;if(s)if(void 0!==t.url){const e=0;if("boolean"!=typeof t.url)return r.errors=[{params:{type:"boolean"}}],!1;s=0===e}else s=!0}}}return r.errors=null,!0}function t(e,{instancePath:o="",parentData:a,parentDataProperty:n,rootData:s=e}={}){let p=null,i=0;return r(e,{instancePath:o,parentData:a,parentDataProperty:n,rootData:s})||(p=null===p?r.errors:p.concat(r.errors),i=p.length),t.errors=p,0===i}module.exports=t,module.exports.default=t;
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
4
4
|
* Run `yarn special-lint-fix` to update
|
5
5
|
*/
|
6
|
-
"use strict";function r(t,{instancePath:
|
6
|
+
"use strict";function r(t,{instancePath:e="",parentData:o,parentDataProperty:a,rootData:n=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("import"!==e&&"namedExports"!==e&&"url"!==e)return r.errors=[{params:{additionalProperty:e}}],!1;if(0===e){if(void 0!==t.import){const e=0;if("boolean"!=typeof t.import)return r.errors=[{params:{type:"boolean"}}],!1;var s=0===e}else s=!0;if(s){if(void 0!==t.namedExports){const e=0;if("boolean"!=typeof t.namedExports)return r.errors=[{params:{type:"boolean"}}],!1;s=0===e}else s=!0;if(s)if(void 0!==t.url){const e=0;if("boolean"!=typeof t.url)return r.errors=[{params:{type:"boolean"}}],!1;s=0===e}else s=!0}}}return r.errors=null,!0}function t(e,{instancePath:o="",parentData:a,parentDataProperty:n,rootData:s=e}={}){let p=null,i=0;return r(e,{instancePath:o,parentData:a,parentDataProperty:n,rootData:s})||(p=null===p?r.errors:p.concat(r.errors),i=p.length),t.errors=p,0===i}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/optimize/MergeDuplicateChunksPlugin").MergeDuplicateChunksPluginOptions) => 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:a,parentDataProperty:o,rootData:s=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("stage"!==e)return r.errors=[{params:{additionalProperty:e}}],!1;if(0===e&&void 0!==t.stage&&"number"!=typeof t.stage)return r.errors=[{params:{type:"number"}}],!1}return r.errors=null,!0}module.exports=r,module.exports.default=r;
|
package/types.d.ts
CHANGED
@@ -513,7 +513,7 @@ declare interface BannerPluginOptions {
|
|
513
513
|
raw?: boolean;
|
514
514
|
|
515
515
|
/**
|
516
|
-
* Specifies the banner.
|
516
|
+
* Specifies the stage when add a banner.
|
517
517
|
*/
|
518
518
|
stage?: number;
|
519
519
|
|
@@ -1494,11 +1494,6 @@ declare interface ChunkRenderContextCssModulesPlugin {
|
|
1494
1494
|
*/
|
1495
1495
|
runtimeTemplate: RuntimeTemplate;
|
1496
1496
|
|
1497
|
-
/**
|
1498
|
-
* meta data for runtime
|
1499
|
-
*/
|
1500
|
-
metaData: string[];
|
1501
|
-
|
1502
1497
|
/**
|
1503
1498
|
* undo path to css file
|
1504
1499
|
*/
|
@@ -3129,10 +3124,20 @@ declare interface CssAutoGeneratorOptions {
|
|
3129
3124
|
* Parser options for css/auto modules.
|
3130
3125
|
*/
|
3131
3126
|
declare interface CssAutoParserOptions {
|
3127
|
+
/**
|
3128
|
+
* Enable/disable `@import` at-rules handling.
|
3129
|
+
*/
|
3130
|
+
import?: boolean;
|
3131
|
+
|
3132
3132
|
/**
|
3133
3133
|
* Use ES modules named export for css exports.
|
3134
3134
|
*/
|
3135
3135
|
namedExports?: boolean;
|
3136
|
+
|
3137
|
+
/**
|
3138
|
+
* Enable/disable `url()`/`image-set()`/`src()`/`image()` functions handling.
|
3139
|
+
*/
|
3140
|
+
url?: boolean;
|
3136
3141
|
}
|
3137
3142
|
|
3138
3143
|
/**
|
@@ -3185,10 +3190,20 @@ declare interface CssGlobalGeneratorOptions {
|
|
3185
3190
|
* Parser options for css/global modules.
|
3186
3191
|
*/
|
3187
3192
|
declare interface CssGlobalParserOptions {
|
3193
|
+
/**
|
3194
|
+
* Enable/disable `@import` at-rules handling.
|
3195
|
+
*/
|
3196
|
+
import?: boolean;
|
3197
|
+
|
3188
3198
|
/**
|
3189
3199
|
* Use ES modules named export for css exports.
|
3190
3200
|
*/
|
3191
3201
|
namedExports?: boolean;
|
3202
|
+
|
3203
|
+
/**
|
3204
|
+
* Enable/disable `url()`/`image-set()`/`src()`/`image()` functions handling.
|
3205
|
+
*/
|
3206
|
+
url?: boolean;
|
3192
3207
|
}
|
3193
3208
|
declare interface CssImportDependencyMeta {
|
3194
3209
|
layer?: string;
|
@@ -3269,10 +3284,20 @@ declare interface CssModuleGeneratorOptions {
|
|
3269
3284
|
* Parser options for css/module modules.
|
3270
3285
|
*/
|
3271
3286
|
declare interface CssModuleParserOptions {
|
3287
|
+
/**
|
3288
|
+
* Enable/disable `@import` at-rules handling.
|
3289
|
+
*/
|
3290
|
+
import?: boolean;
|
3291
|
+
|
3272
3292
|
/**
|
3273
3293
|
* Use ES modules named export for css exports.
|
3274
3294
|
*/
|
3275
3295
|
namedExports?: boolean;
|
3296
|
+
|
3297
|
+
/**
|
3298
|
+
* Enable/disable `url()`/`image-set()`/`src()`/`image()` functions handling.
|
3299
|
+
*/
|
3300
|
+
url?: boolean;
|
3276
3301
|
}
|
3277
3302
|
declare class CssModulesPlugin {
|
3278
3303
|
constructor();
|
@@ -3314,10 +3339,20 @@ declare class CssModulesPlugin {
|
|
3314
3339
|
* Parser options for css modules.
|
3315
3340
|
*/
|
3316
3341
|
declare interface CssParserOptions {
|
3342
|
+
/**
|
3343
|
+
* Enable/disable `@import` at-rules handling.
|
3344
|
+
*/
|
3345
|
+
import?: boolean;
|
3346
|
+
|
3317
3347
|
/**
|
3318
3348
|
* Use ES modules named export for css exports.
|
3319
3349
|
*/
|
3320
3350
|
namedExports?: boolean;
|
3351
|
+
|
3352
|
+
/**
|
3353
|
+
* Enable/disable `url()`/`image-set()`/`src()`/`image()` functions handling.
|
3354
|
+
*/
|
3355
|
+
url?: boolean;
|
3321
3356
|
}
|
3322
3357
|
type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration;
|
3323
3358
|
declare class DefinePlugin {
|
@@ -4511,7 +4546,7 @@ declare interface ExportSpec {
|
|
4511
4546
|
*/
|
4512
4547
|
hidden?: boolean;
|
4513
4548
|
}
|
4514
|
-
type ExportedVariableInfo = string |
|
4549
|
+
type ExportedVariableInfo = string | VariableInfo | ScopeInfo;
|
4515
4550
|
declare abstract class ExportsInfo {
|
4516
4551
|
get ownedExports(): Iterable<ExportInfo>;
|
4517
4552
|
get orderedOwnedExports(): Iterable<ExportInfo>;
|
@@ -6775,7 +6810,7 @@ declare class JavascriptParser extends Parser {
|
|
6775
6810
|
| undefined
|
6776
6811
|
| ((
|
6777
6812
|
arg0: string,
|
6778
|
-
arg1: string |
|
6813
|
+
arg1: string | VariableInfo | ScopeInfo,
|
6779
6814
|
arg2: () => string[]
|
6780
6815
|
) => any),
|
6781
6816
|
defined: undefined | ((arg0: string) => any),
|
@@ -7108,6 +7143,7 @@ declare class JavascriptParser extends Parser {
|
|
7108
7143
|
| ExportAllDeclarationJavascriptParser
|
7109
7144
|
| ImportExpressionJavascriptParser
|
7110
7145
|
) => undefined | ImportAttributes;
|
7146
|
+
static VariableInfo: typeof VariableInfo;
|
7111
7147
|
}
|
7112
7148
|
|
7113
7149
|
/**
|
@@ -7465,6 +7501,7 @@ declare interface KnownBuildMeta {
|
|
7465
7501
|
strictHarmonyModule?: boolean;
|
7466
7502
|
async?: boolean;
|
7467
7503
|
sideEffectFree?: boolean;
|
7504
|
+
exportsFinalName?: Record<string, string>;
|
7468
7505
|
}
|
7469
7506
|
declare interface KnownCreateStatsOptionsContext {
|
7470
7507
|
forToString?: boolean;
|
@@ -8603,6 +8640,17 @@ declare class MemoryCachePlugin {
|
|
8603
8640
|
*/
|
8604
8641
|
apply(compiler: Compiler): void;
|
8605
8642
|
}
|
8643
|
+
declare class MergeDuplicateChunksPlugin {
|
8644
|
+
constructor(options?: MergeDuplicateChunksPluginOptions);
|
8645
|
+
options: MergeDuplicateChunksPluginOptions;
|
8646
|
+
apply(compiler: Compiler): void;
|
8647
|
+
}
|
8648
|
+
declare interface MergeDuplicateChunksPluginOptions {
|
8649
|
+
/**
|
8650
|
+
* Specifies the stage for merging duplicate chunks.
|
8651
|
+
*/
|
8652
|
+
stage?: number;
|
8653
|
+
}
|
8606
8654
|
declare class MinChunkSizePlugin {
|
8607
8655
|
constructor(options: MinChunkSizePluginOptions);
|
8608
8656
|
options: MinChunkSizePluginOptions;
|
@@ -8683,6 +8731,7 @@ declare class Module extends DependenciesBlock {
|
|
8683
8731
|
factoryMeta?: FactoryMeta;
|
8684
8732
|
useSourceMap: boolean;
|
8685
8733
|
useSimpleSourceMap: boolean;
|
8734
|
+
hot: boolean;
|
8686
8735
|
buildMeta?: BuildMeta;
|
8687
8736
|
buildInfo?: BuildInfo;
|
8688
8737
|
presentationalDependencies?: Dependency[];
|
@@ -10592,11 +10641,6 @@ declare interface Output {
|
|
10592
10641
|
| string
|
10593
10642
|
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
10594
10643
|
|
10595
|
-
/**
|
10596
|
-
* Compress the data in the head tag of CSS files.
|
10597
|
-
*/
|
10598
|
-
cssHeadDataCompression?: boolean;
|
10599
|
-
|
10600
10644
|
/**
|
10601
10645
|
* Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
|
10602
10646
|
*/
|
@@ -10891,11 +10935,6 @@ declare interface OutputNormalized {
|
|
10891
10935
|
| string
|
10892
10936
|
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
10893
10937
|
|
10894
|
-
/**
|
10895
|
-
* Compress the data in the head tag of CSS files.
|
10896
|
-
*/
|
10897
|
-
cssHeadDataCompression?: boolean;
|
10898
|
-
|
10899
10938
|
/**
|
10900
10939
|
* Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
|
10901
10940
|
*/
|
@@ -11592,6 +11631,20 @@ declare interface ReadAsyncOptions<TBuffer extends ArrayBufferView> {
|
|
11592
11631
|
position?: null | number | bigint;
|
11593
11632
|
buffer?: TBuffer;
|
11594
11633
|
}
|
11634
|
+
declare class ReadFileCompileAsyncWasmPlugin {
|
11635
|
+
constructor(__0?: ReadFileCompileAsyncWasmPluginOptions);
|
11636
|
+
|
11637
|
+
/**
|
11638
|
+
* Apply the plugin
|
11639
|
+
*/
|
11640
|
+
apply(compiler: Compiler): void;
|
11641
|
+
}
|
11642
|
+
declare interface ReadFileCompileAsyncWasmPluginOptions {
|
11643
|
+
/**
|
11644
|
+
* use import?
|
11645
|
+
*/
|
11646
|
+
import?: boolean;
|
11647
|
+
}
|
11595
11648
|
declare class ReadFileCompileWasmPlugin {
|
11596
11649
|
constructor(options?: ReadFileCompileWasmPluginOptions);
|
11597
11650
|
options: ReadFileCompileWasmPluginOptions;
|
@@ -11606,6 +11659,11 @@ declare interface ReadFileCompileWasmPluginOptions {
|
|
11606
11659
|
* mangle imports
|
11607
11660
|
*/
|
11608
11661
|
mangleImports?: boolean;
|
11662
|
+
|
11663
|
+
/**
|
11664
|
+
* use import?
|
11665
|
+
*/
|
11666
|
+
import?: boolean;
|
11609
11667
|
}
|
11610
11668
|
declare interface ReadFileFs {
|
11611
11669
|
(
|
@@ -12220,11 +12278,6 @@ declare interface RenderContextCssModulesPlugin {
|
|
12220
12278
|
*/
|
12221
12279
|
uniqueName: string;
|
12222
12280
|
|
12223
|
-
/**
|
12224
|
-
* need compress
|
12225
|
-
*/
|
12226
|
-
cssHeadDataCompression: boolean;
|
12227
|
-
|
12228
12281
|
/**
|
12229
12282
|
* undo path to css file
|
12230
12283
|
*/
|
@@ -13445,6 +13498,7 @@ declare abstract class RuntimeTemplate {
|
|
13445
13498
|
contentHashReplacement: string;
|
13446
13499
|
isIIFE(): undefined | boolean;
|
13447
13500
|
isModule(): undefined | boolean;
|
13501
|
+
isNeutralPlatform(): boolean;
|
13448
13502
|
supportsConst(): undefined | boolean;
|
13449
13503
|
supportsArrowFunction(): undefined | boolean;
|
13450
13504
|
supportsAsyncFunction(): undefined | boolean;
|
@@ -13865,7 +13919,7 @@ declare interface RuntimeValueOptions {
|
|
13865
13919
|
* to create the range of the _parent node_.
|
13866
13920
|
*/
|
13867
13921
|
declare interface ScopeInfo {
|
13868
|
-
definitions: StackedMap<string,
|
13922
|
+
definitions: StackedMap<string, VariableInfo | ScopeInfo>;
|
13869
13923
|
topLevelScope: boolean | "arrow";
|
13870
13924
|
inShorthand: string | boolean;
|
13871
13925
|
inTaggedTemplateTag: boolean;
|
@@ -14175,6 +14229,7 @@ declare interface SourceMap {
|
|
14175
14229
|
sourceRoot?: string;
|
14176
14230
|
sourcesContent?: string[];
|
14177
14231
|
names?: string[];
|
14232
|
+
debugId?: string;
|
14178
14233
|
}
|
14179
14234
|
declare class SourceMapDevToolPlugin {
|
14180
14235
|
constructor(options?: SourceMapDevToolPluginOptions);
|
@@ -14208,6 +14263,11 @@ declare interface SourceMapDevToolPluginOptions {
|
|
14208
14263
|
*/
|
14209
14264
|
columns?: boolean;
|
14210
14265
|
|
14266
|
+
/**
|
14267
|
+
* Emit debug IDs into source and SourceMap.
|
14268
|
+
*/
|
14269
|
+
debugIds?: boolean;
|
14270
|
+
|
14211
14271
|
/**
|
14212
14272
|
* Exclude modules that match the given value from source map generation.
|
14213
14273
|
*/
|
@@ -15190,7 +15250,12 @@ type UsageStateType = 0 | 1 | 2 | 3 | 4;
|
|
15190
15250
|
type UsedName = string | false | string[];
|
15191
15251
|
type Value = string | number | boolean | RegExp;
|
15192
15252
|
type ValueCacheVersion = string | Set<string>;
|
15193
|
-
declare
|
15253
|
+
declare class VariableInfo {
|
15254
|
+
constructor(
|
15255
|
+
declaredScope: ScopeInfo,
|
15256
|
+
freeName?: string | true,
|
15257
|
+
tagInfo?: TagInfo
|
15258
|
+
);
|
15194
15259
|
declaredScope: ScopeInfo;
|
15195
15260
|
freeName?: string | true;
|
15196
15261
|
tagInfo?: TagInfo;
|
@@ -16082,6 +16147,7 @@ declare namespace exports {
|
|
16082
16147
|
AggressiveMergingPlugin,
|
16083
16148
|
AggressiveSplittingPlugin,
|
16084
16149
|
LimitChunkCountPlugin,
|
16150
|
+
MergeDuplicateChunksPlugin,
|
16085
16151
|
MinChunkSizePlugin,
|
16086
16152
|
ModuleConcatenationPlugin,
|
16087
16153
|
RealContentHashPlugin,
|
@@ -16098,8 +16164,8 @@ declare namespace exports {
|
|
16098
16164
|
}
|
16099
16165
|
export namespace web {
|
16100
16166
|
export {
|
16101
|
-
FetchCompileAsyncWasmPlugin,
|
16102
16167
|
FetchCompileWasmPlugin,
|
16168
|
+
FetchCompileAsyncWasmPlugin,
|
16103
16169
|
JsonpChunkLoadingRuntimeModule,
|
16104
16170
|
JsonpTemplatePlugin,
|
16105
16171
|
CssLoadingRuntimeModule
|
@@ -16117,7 +16183,8 @@ declare namespace exports {
|
|
16117
16183
|
NodeSourcePlugin,
|
16118
16184
|
NodeTargetPlugin,
|
16119
16185
|
NodeTemplatePlugin,
|
16120
|
-
ReadFileCompileWasmPlugin
|
16186
|
+
ReadFileCompileWasmPlugin,
|
16187
|
+
ReadFileCompileAsyncWasmPlugin
|
16121
16188
|
};
|
16122
16189
|
}
|
16123
16190
|
export namespace electron {
|