@depup/webpack 5.109.0-depup.0 → 5.109.2-depup.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.
- package/README.md +4 -4
- package/bin/webpack.js +12 -0
- package/changes.json +4 -4
- package/lib/ChunkGraph.js +17 -15
- package/lib/CleanPlugin.js +11 -9
- package/lib/CompatibilityPlugin.js +31 -0
- package/lib/Compilation.js +21 -5
- package/lib/Compiler.js +16 -4
- package/lib/DefinePlugin.js +47 -20
- package/lib/ExportsInfo.js +22 -5
- package/lib/ExternalModule.js +10 -7
- package/lib/FileSystemInfo.js +126 -26
- package/lib/FlagDependencyUsagePlugin.js +33 -12
- package/lib/InitFragment.js +20 -32
- package/lib/ModuleFilenameHelpers.js +13 -2
- package/lib/NormalModule.js +80 -71
- package/lib/NormalModuleFactory.js +8 -2
- package/lib/RuntimePlugin.js +40 -113
- package/lib/Template.js +23 -3
- package/lib/cache/PackFileCacheStrategy.js +259 -5
- package/lib/config/defaults.js +21 -2
- package/lib/container/HoistContainerReferencesPlugin.js +47 -55
- package/lib/container/ModuleFederationPlugin.js +15 -9
- package/lib/css/CssGenerator.js +8 -2
- package/lib/css/CssLoadingRuntimeModule.js +25 -12
- package/lib/css/CssModulesPlugin.js +29 -18
- package/lib/css/CssParser.js +135 -50
- package/lib/css/syntax.js +862 -765
- package/lib/dependencies/CommonJsExportRequireDependency.js +19 -0
- package/lib/dependencies/CommonJsFullRequireDependency.js +33 -4
- package/lib/dependencies/CommonJsImportsParserPlugin.js +2 -0
- package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +2 -1
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +17 -9
- package/lib/dependencies/HarmonyImportDependency.js +1 -1
- package/lib/dependencies/HarmonyImportGuard.js +2 -1
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +10 -7
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +15 -9
- package/lib/hmr/lazyCompilationBackend.js +19 -4
- package/lib/html/HtmlGenerator.js +23 -3
- package/lib/html/HtmlModulesPlugin.js +30 -12
- package/lib/html/syntax.js +2485 -2399
- package/lib/ids/IdHelpers.js +24 -10
- package/lib/javascript/JavascriptModulesPlugin.js +83 -49
- package/lib/javascript/JavascriptParser.js +49 -13
- package/lib/javascript/syntax.js +700 -43
- package/lib/node/ReadFileCompileAsyncWasmPlugin.js +10 -2
- package/lib/node/ReadFileCompileWasmPlugin.js +10 -2
- package/lib/optimize/AggressiveMergingPlugin.js +19 -15
- package/lib/optimize/ConcatenatedModule.js +19 -15
- package/lib/optimize/ModuleConcatenationPlugin.js +73 -24
- package/lib/optimize/RealContentHashPlugin.js +10 -7
- package/lib/optimize/SplitChunksPlugin.js +146 -44
- package/lib/prefetch/ResourceHintPlugin.js +96 -72
- package/lib/serialization/BinaryMiddleware.js +270 -938
- package/lib/serialization/FileMiddleware.js +299 -60
- package/lib/stats/DefaultStatsFactoryPlugin.js +204 -198
- package/lib/stats/DefaultStatsPrinterPlugin.js +24 -166
- package/lib/stats/StatsFactory.js +31 -9
- package/lib/util/identifier.js +21 -1
- package/package.json +10 -10
- package/schemas/WebpackOptions.json +110 -55
- package/types.d.ts +832 -247
|
@@ -372,7 +372,8 @@
|
|
|
372
372
|
"description": "Also concatenate CommonJS modules with statically analyzable exports. Defaults to 'true'.",
|
|
373
373
|
"type": "boolean"
|
|
374
374
|
}
|
|
375
|
-
}
|
|
375
|
+
},
|
|
376
|
+
"added": "5.109.0"
|
|
376
377
|
},
|
|
377
378
|
"Context": {
|
|
378
379
|
"description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.",
|
|
@@ -609,11 +610,13 @@
|
|
|
609
610
|
},
|
|
610
611
|
"CssParserCustomMedia": {
|
|
611
612
|
"description": "Enable/disable resolution of `@custom-media` at-rules (file-local build-time substitution).",
|
|
612
|
-
"type": "boolean"
|
|
613
|
+
"type": "boolean",
|
|
614
|
+
"added": "5.109.0"
|
|
613
615
|
},
|
|
614
616
|
"CssParserCustomSelectors": {
|
|
615
617
|
"description": "Enable/disable resolution of `@custom-selector` at-rules (file-local build-time expansion to `:is(...)`).",
|
|
616
|
-
"type": "boolean"
|
|
618
|
+
"type": "boolean",
|
|
619
|
+
"added": "5.109.0"
|
|
617
620
|
},
|
|
618
621
|
"CssParserDashedIdents": {
|
|
619
622
|
"description": "Enable/disable renaming of dashed identifiers, e. g. custom properties.",
|
|
@@ -625,7 +628,8 @@
|
|
|
625
628
|
},
|
|
626
629
|
"CssParserFontPreload": {
|
|
627
630
|
"description": "Auto-emit `<link rel=\"preload\" as=\"font\">` for the primary `src` URL of each `@font-face` reachable from an HTML entry's initial CSS. Only the first URL per `@font-face` is preloaded (preloading every format would double-download). Off by default; `parser.css.urlHints` rules and per-URL magic comments still override the seeded defaults. Set `output.crossOriginLoading` so the preload matches the font's CORS fetch.",
|
|
628
|
-
"type": "boolean"
|
|
631
|
+
"type": "boolean",
|
|
632
|
+
"added": "5.109.0"
|
|
629
633
|
},
|
|
630
634
|
"CssParserFunction": {
|
|
631
635
|
"description": "Enable/disable renaming of `@function` names.",
|
|
@@ -1150,7 +1154,8 @@
|
|
|
1150
1154
|
},
|
|
1151
1155
|
"generator": {
|
|
1152
1156
|
"description": "The environment supports generator functions and yield ('function* () { yield ... }').",
|
|
1153
|
-
"type": "boolean"
|
|
1157
|
+
"type": "boolean",
|
|
1158
|
+
"added": "5.109.0"
|
|
1154
1159
|
},
|
|
1155
1160
|
"globalThis": {
|
|
1156
1161
|
"description": "The environment supports 'globalThis'.",
|
|
@@ -1182,7 +1187,8 @@
|
|
|
1182
1187
|
},
|
|
1183
1188
|
"modulePreload": {
|
|
1184
1189
|
"description": "The environment supports `<link rel=\"modulepreload\">` to preload EcmaScript modules.",
|
|
1185
|
-
"type": "boolean"
|
|
1190
|
+
"type": "boolean",
|
|
1191
|
+
"added": "5.109.0"
|
|
1186
1192
|
},
|
|
1187
1193
|
"nodeBuiltinModuleGetter": {
|
|
1188
1194
|
"description": "The environment supports `process.getBuiltinModule()` to synchronously load Node.js core modules.",
|
|
@@ -1227,12 +1233,14 @@
|
|
|
1227
1233
|
"type": "boolean"
|
|
1228
1234
|
}
|
|
1229
1235
|
],
|
|
1230
|
-
"experimental": true
|
|
1236
|
+
"experimental": true,
|
|
1237
|
+
"added": "5.0.0"
|
|
1231
1238
|
},
|
|
1232
1239
|
"backCompat": {
|
|
1233
1240
|
"description": "Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.",
|
|
1234
1241
|
"type": "boolean",
|
|
1235
|
-
"experimental": true
|
|
1242
|
+
"experimental": true,
|
|
1243
|
+
"added": "5.62.0"
|
|
1236
1244
|
},
|
|
1237
1245
|
"buildHttp": {
|
|
1238
1246
|
"description": "Build http(s): urls using a lockfile and resource content cache.",
|
|
@@ -1244,12 +1252,14 @@
|
|
|
1244
1252
|
"$ref": "#/definitions/HttpUriOptions"
|
|
1245
1253
|
}
|
|
1246
1254
|
],
|
|
1247
|
-
"experimental": true
|
|
1255
|
+
"experimental": true,
|
|
1256
|
+
"added": "5.49.0"
|
|
1248
1257
|
},
|
|
1249
1258
|
"cacheUnaffected": {
|
|
1250
1259
|
"description": "Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.",
|
|
1251
1260
|
"type": "boolean",
|
|
1252
|
-
"experimental": true
|
|
1261
|
+
"experimental": true,
|
|
1262
|
+
"added": "5.54.0"
|
|
1253
1263
|
},
|
|
1254
1264
|
"css": {
|
|
1255
1265
|
"description": "Enable css support. `\"auto\"` (the default) enables the built-in CSS support unless a loader is registered for CSS files.",
|
|
@@ -1263,17 +1273,20 @@
|
|
|
1263
1273
|
"type": "boolean"
|
|
1264
1274
|
}
|
|
1265
1275
|
],
|
|
1266
|
-
"experimental": true
|
|
1276
|
+
"experimental": true,
|
|
1277
|
+
"added": "5.66.0"
|
|
1267
1278
|
},
|
|
1268
1279
|
"deferImport": {
|
|
1269
1280
|
"description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-defer-import-eval. This allows to defer execution of a module until it's first use.",
|
|
1270
1281
|
"type": "boolean",
|
|
1271
|
-
"experimental": true
|
|
1282
|
+
"experimental": true,
|
|
1283
|
+
"added": "5.100.0"
|
|
1272
1284
|
},
|
|
1273
1285
|
"futureDefaults": {
|
|
1274
1286
|
"description": "Apply defaults of next major version.",
|
|
1275
1287
|
"type": "boolean",
|
|
1276
|
-
"experimental": true
|
|
1288
|
+
"experimental": true,
|
|
1289
|
+
"added": "5.53.0"
|
|
1277
1290
|
},
|
|
1278
1291
|
"html": {
|
|
1279
1292
|
"description": "Enable HTML entry support. Treats `.html` files as a first-class module type so they can be used directly as entry points. `\"auto\"` (the default) enables it unless a loader is registered for HTML files.",
|
|
@@ -1287,7 +1300,8 @@
|
|
|
1287
1300
|
"type": "boolean"
|
|
1288
1301
|
}
|
|
1289
1302
|
],
|
|
1290
|
-
"experimental": true
|
|
1303
|
+
"experimental": true,
|
|
1304
|
+
"added": "5.107.0"
|
|
1291
1305
|
},
|
|
1292
1306
|
"lazyCompilation": {
|
|
1293
1307
|
"description": "Compile entrypoints and import()s only when they are accessed.",
|
|
@@ -1299,22 +1313,26 @@
|
|
|
1299
1313
|
"$ref": "#/definitions/LazyCompilationOptions"
|
|
1300
1314
|
}
|
|
1301
1315
|
],
|
|
1302
|
-
"experimental": true
|
|
1316
|
+
"experimental": true,
|
|
1317
|
+
"added": "5.17.0"
|
|
1303
1318
|
},
|
|
1304
1319
|
"outputModule": {
|
|
1305
1320
|
"description": "Allow output javascript files as module source type.",
|
|
1306
1321
|
"type": "boolean",
|
|
1307
|
-
"experimental": true
|
|
1322
|
+
"experimental": true,
|
|
1323
|
+
"added": "5.0.0"
|
|
1308
1324
|
},
|
|
1309
1325
|
"sourceImport": {
|
|
1310
1326
|
"description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase.",
|
|
1311
1327
|
"type": "boolean",
|
|
1312
|
-
"experimental": true
|
|
1328
|
+
"experimental": true,
|
|
1329
|
+
"added": "5.106.0"
|
|
1313
1330
|
},
|
|
1314
1331
|
"syncWebAssembly": {
|
|
1315
1332
|
"description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
|
|
1316
1333
|
"type": "boolean",
|
|
1317
|
-
"experimental": true
|
|
1334
|
+
"experimental": true,
|
|
1335
|
+
"added": "5.0.0"
|
|
1318
1336
|
},
|
|
1319
1337
|
"typescript": {
|
|
1320
1338
|
"description": "Enable typescript support. `\"auto\"` (the default) enables the built-in TypeScript support when Node.js supports it (>= 22.6) and no loader is registered for TypeScript files.",
|
|
@@ -1328,7 +1346,8 @@
|
|
|
1328
1346
|
"type": "boolean"
|
|
1329
1347
|
}
|
|
1330
1348
|
],
|
|
1331
|
-
"experimental": true
|
|
1349
|
+
"experimental": true,
|
|
1350
|
+
"added": "5.107.0"
|
|
1332
1351
|
}
|
|
1333
1352
|
}
|
|
1334
1353
|
},
|
|
@@ -1349,12 +1368,14 @@
|
|
|
1349
1368
|
"type": "boolean"
|
|
1350
1369
|
}
|
|
1351
1370
|
],
|
|
1352
|
-
"experimental": true
|
|
1371
|
+
"experimental": true,
|
|
1372
|
+
"added": "5.0.0"
|
|
1353
1373
|
},
|
|
1354
1374
|
"backCompat": {
|
|
1355
1375
|
"description": "Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.",
|
|
1356
1376
|
"type": "boolean",
|
|
1357
|
-
"experimental": true
|
|
1377
|
+
"experimental": true,
|
|
1378
|
+
"added": "5.62.0"
|
|
1358
1379
|
},
|
|
1359
1380
|
"buildHttp": {
|
|
1360
1381
|
"description": "Build http(s): urls using a lockfile and resource content cache.",
|
|
@@ -1363,12 +1384,14 @@
|
|
|
1363
1384
|
"$ref": "#/definitions/HttpUriOptions"
|
|
1364
1385
|
}
|
|
1365
1386
|
],
|
|
1366
|
-
"experimental": true
|
|
1387
|
+
"experimental": true,
|
|
1388
|
+
"added": "5.49.0"
|
|
1367
1389
|
},
|
|
1368
1390
|
"cacheUnaffected": {
|
|
1369
1391
|
"description": "Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.",
|
|
1370
1392
|
"type": "boolean",
|
|
1371
|
-
"experimental": true
|
|
1393
|
+
"experimental": true,
|
|
1394
|
+
"added": "5.54.0"
|
|
1372
1395
|
},
|
|
1373
1396
|
"css": {
|
|
1374
1397
|
"description": "Enable css support. `\"auto\"` (the default) enables the built-in CSS support unless a loader is registered for CSS files.",
|
|
@@ -1382,17 +1405,20 @@
|
|
|
1382
1405
|
"type": "boolean"
|
|
1383
1406
|
}
|
|
1384
1407
|
],
|
|
1385
|
-
"experimental": true
|
|
1408
|
+
"experimental": true,
|
|
1409
|
+
"added": "5.66.0"
|
|
1386
1410
|
},
|
|
1387
1411
|
"deferImport": {
|
|
1388
1412
|
"description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-defer-import-eval. This allows to defer execution of a module until it's first use.",
|
|
1389
1413
|
"type": "boolean",
|
|
1390
|
-
"experimental": true
|
|
1414
|
+
"experimental": true,
|
|
1415
|
+
"added": "5.100.0"
|
|
1391
1416
|
},
|
|
1392
1417
|
"futureDefaults": {
|
|
1393
1418
|
"description": "Apply defaults of next major version.",
|
|
1394
1419
|
"type": "boolean",
|
|
1395
|
-
"experimental": true
|
|
1420
|
+
"experimental": true,
|
|
1421
|
+
"added": "5.53.0"
|
|
1396
1422
|
},
|
|
1397
1423
|
"html": {
|
|
1398
1424
|
"description": "Enable HTML entry support. Treats `.html` files as a first-class module type so they can be used directly as entry points. `\"auto\"` (the default) enables it unless a loader is registered for HTML files.",
|
|
@@ -1406,7 +1432,8 @@
|
|
|
1406
1432
|
"type": "boolean"
|
|
1407
1433
|
}
|
|
1408
1434
|
],
|
|
1409
|
-
"experimental": true
|
|
1435
|
+
"experimental": true,
|
|
1436
|
+
"added": "5.107.0"
|
|
1410
1437
|
},
|
|
1411
1438
|
"lazyCompilation": {
|
|
1412
1439
|
"description": "Compile entrypoints and import()s only when they are accessed.",
|
|
@@ -1418,22 +1445,26 @@
|
|
|
1418
1445
|
"$ref": "#/definitions/LazyCompilationOptions"
|
|
1419
1446
|
}
|
|
1420
1447
|
],
|
|
1421
|
-
"experimental": true
|
|
1448
|
+
"experimental": true,
|
|
1449
|
+
"added": "5.17.0"
|
|
1422
1450
|
},
|
|
1423
1451
|
"outputModule": {
|
|
1424
1452
|
"description": "Allow output javascript files as module source type.",
|
|
1425
1453
|
"type": "boolean",
|
|
1426
|
-
"experimental": true
|
|
1454
|
+
"experimental": true,
|
|
1455
|
+
"added": "5.0.0"
|
|
1427
1456
|
},
|
|
1428
1457
|
"sourceImport": {
|
|
1429
1458
|
"description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase.",
|
|
1430
1459
|
"type": "boolean",
|
|
1431
|
-
"experimental": true
|
|
1460
|
+
"experimental": true,
|
|
1461
|
+
"added": "5.106.0"
|
|
1432
1462
|
},
|
|
1433
1463
|
"syncWebAssembly": {
|
|
1434
1464
|
"description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
|
|
1435
1465
|
"type": "boolean",
|
|
1436
|
-
"experimental": true
|
|
1466
|
+
"experimental": true,
|
|
1467
|
+
"added": "5.0.0"
|
|
1437
1468
|
},
|
|
1438
1469
|
"typescript": {
|
|
1439
1470
|
"description": "Enable typescript support. `\"auto\"` (the default) enables the built-in TypeScript support when Node.js supports it (>= 22.6) and no loader is registered for TypeScript files.",
|
|
@@ -1447,7 +1478,8 @@
|
|
|
1447
1478
|
"type": "boolean"
|
|
1448
1479
|
}
|
|
1449
1480
|
],
|
|
1450
|
-
"experimental": true
|
|
1481
|
+
"experimental": true,
|
|
1482
|
+
"added": "5.107.0"
|
|
1451
1483
|
}
|
|
1452
1484
|
}
|
|
1453
1485
|
},
|
|
@@ -1533,7 +1565,8 @@
|
|
|
1533
1565
|
},
|
|
1534
1566
|
"ExternalItemInterop": {
|
|
1535
1567
|
"description": "How an external's exports interoperate with ES module imports, independent of the importing module's strictness (similar to Rollup's `output.interop`). 'default': treat as CommonJS, the default import is the whole exports (Node.js semantics). 'esModule': treat as an ES module namespace, the default import is unboxed to `.default`.",
|
|
1536
|
-
"enum": ["default", "esModule"]
|
|
1568
|
+
"enum": ["default", "esModule"],
|
|
1569
|
+
"added": "5.109.0"
|
|
1537
1570
|
},
|
|
1538
1571
|
"ExternalItemValue": {
|
|
1539
1572
|
"description": "The dependency used for the external.",
|
|
@@ -2075,7 +2108,8 @@
|
|
|
2075
2108
|
{
|
|
2076
2109
|
"type": "string"
|
|
2077
2110
|
}
|
|
2078
|
-
]
|
|
2111
|
+
],
|
|
2112
|
+
"added": "5.109.0"
|
|
2079
2113
|
},
|
|
2080
2114
|
"HtmlParserOptions": {
|
|
2081
2115
|
"description": "Parser options for html modules.",
|
|
@@ -2221,7 +2255,8 @@
|
|
|
2221
2255
|
"type": "string"
|
|
2222
2256
|
}
|
|
2223
2257
|
},
|
|
2224
|
-
"required": ["rel"]
|
|
2258
|
+
"required": ["rel"],
|
|
2259
|
+
"added": "5.109.0"
|
|
2225
2260
|
},
|
|
2226
2261
|
"HttpUriAllowedUris": {
|
|
2227
2262
|
"description": "List of allowed URIs for building http resources.",
|
|
@@ -2403,7 +2438,8 @@
|
|
|
2403
2438
|
"description": "Enable/disable evaluating import.meta.webpackHot.",
|
|
2404
2439
|
"type": "boolean"
|
|
2405
2440
|
}
|
|
2406
|
-
}
|
|
2441
|
+
},
|
|
2442
|
+
"added": "5.109.0"
|
|
2407
2443
|
},
|
|
2408
2444
|
"InfrastructureLogging": {
|
|
2409
2445
|
"description": "Options for infrastructure level logging.",
|
|
@@ -2447,7 +2483,8 @@
|
|
|
2447
2483
|
{
|
|
2448
2484
|
"type": "boolean"
|
|
2449
2485
|
}
|
|
2450
|
-
]
|
|
2486
|
+
],
|
|
2487
|
+
"added": "5.109.0"
|
|
2451
2488
|
},
|
|
2452
2489
|
"stream": {
|
|
2453
2490
|
"description": "Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided.",
|
|
@@ -2492,7 +2529,8 @@
|
|
|
2492
2529
|
},
|
|
2493
2530
|
"deferImport": {
|
|
2494
2531
|
"description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-defer-import-eval. This allows to defer execution of a module until it's first use.",
|
|
2495
|
-
"type": "boolean"
|
|
2532
|
+
"type": "boolean",
|
|
2533
|
+
"added": "5.100.0"
|
|
2496
2534
|
},
|
|
2497
2535
|
"dynamicImportCssPreload": {
|
|
2498
2536
|
"description": "Auto-emit `<link rel=\"preload\" as=\"style\">` for the CSS of every dynamically imported (`import()`) chunk, so the stylesheet fetches in parallel with the chunk's JavaScript instead of after it parses. Unlike `dynamicImportPreload`, the JavaScript itself is not preloaded. `true` uses the default order; a number sets the preload order.",
|
|
@@ -2503,7 +2541,8 @@
|
|
|
2503
2541
|
{
|
|
2504
2542
|
"type": "boolean"
|
|
2505
2543
|
}
|
|
2506
|
-
]
|
|
2544
|
+
],
|
|
2545
|
+
"added": "5.109.0"
|
|
2507
2546
|
},
|
|
2508
2547
|
"dynamicImportFetchPriority": {
|
|
2509
2548
|
"description": "Specifies global fetchPriority for dynamic import.",
|
|
@@ -2651,7 +2690,8 @@
|
|
|
2651
2690
|
},
|
|
2652
2691
|
"strictModeViolations": {
|
|
2653
2692
|
"description": "Specifies the behavior of constructs that break at runtime in strict mode (e.g. 'with', 'arguments.callee', assigning to read-only globals) when modules are emitted as ES module output.",
|
|
2654
|
-
"enum": ["error", "warn", false]
|
|
2693
|
+
"enum": ["error", "warn", false],
|
|
2694
|
+
"added": "5.109.0"
|
|
2655
2695
|
},
|
|
2656
2696
|
"strictThisContextOnImports": {
|
|
2657
2697
|
"description": "Handle the this context correctly according to the spec for namespace objects.",
|
|
@@ -2734,7 +2774,8 @@
|
|
|
2734
2774
|
{
|
|
2735
2775
|
"type": "boolean"
|
|
2736
2776
|
}
|
|
2737
|
-
]
|
|
2777
|
+
],
|
|
2778
|
+
"added": "5.109.0"
|
|
2738
2779
|
},
|
|
2739
2780
|
"wrappedContextCritical": {
|
|
2740
2781
|
"description": "Enable warnings for partial dynamic dependencies.",
|
|
@@ -4556,7 +4597,8 @@
|
|
|
4556
4597
|
},
|
|
4557
4598
|
"required": ["href"]
|
|
4558
4599
|
}
|
|
4559
|
-
]
|
|
4600
|
+
],
|
|
4601
|
+
"added": "5.109.0"
|
|
4560
4602
|
},
|
|
4561
4603
|
"csp": {
|
|
4562
4604
|
"description": "Inject a `<meta http-equiv=\"Content-Security-Policy\">` into every webpack-emitted HTML page. `false` (default) does nothing; `true` uses a strict baseline (`script-src 'self'`, `style-src 'self'`, `object-src 'none'`, `base-uri 'self'`) and appends a `sha256` hash of every inline `<script>`/`<style>` to `script-src`/`style-src`. An object customizes it. Skipped when the page already declares a CSP.",
|
|
@@ -4632,7 +4674,8 @@
|
|
|
4632
4674
|
"instanceof": "Function",
|
|
4633
4675
|
"tsType": "((name: string) => boolean | string | { [rel: string]: HtmlFaviconIcon | HtmlFaviconIcon[] })"
|
|
4634
4676
|
}
|
|
4635
|
-
]
|
|
4677
|
+
],
|
|
4678
|
+
"added": "5.109.0"
|
|
4636
4679
|
},
|
|
4637
4680
|
"inject": {
|
|
4638
4681
|
"description": "Where to place injected chunk `<script>`/`<link>` tags. `\"body\"` (default; `\"head\"` with `output.module`) keeps them next to the entry tag — end of `<body>` on generated pages; `\"head\"` moves them into `<head>`; `false` suppresses sibling-chunk injection (entry tags and resource hints remain).",
|
|
@@ -4644,7 +4687,8 @@
|
|
|
4644
4687
|
"type": "boolean",
|
|
4645
4688
|
"enum": [false]
|
|
4646
4689
|
}
|
|
4647
|
-
]
|
|
4690
|
+
],
|
|
4691
|
+
"added": "5.109.0"
|
|
4648
4692
|
},
|
|
4649
4693
|
"inline": {
|
|
4650
4694
|
"description": "Inline the content of matching chunks directly into the HTML instead of emitting a separate `<script>`/`<link>` tag. `true` inlines every chunk; `\"script\"` inlines only JavaScript, `\"style\"` only CSS; an array of `RegExp` patterns matches against the chunk name.",
|
|
@@ -4663,7 +4707,8 @@
|
|
|
4663
4707
|
{
|
|
4664
4708
|
"type": "boolean"
|
|
4665
4709
|
}
|
|
4666
|
-
]
|
|
4710
|
+
],
|
|
4711
|
+
"added": "5.109.0"
|
|
4667
4712
|
},
|
|
4668
4713
|
"integrity": {
|
|
4669
4714
|
"description": "Add Subresource Integrity (SRI) `integrity` attributes to injected `<script>`/`<link>` tags. `true` uses `['sha384']`; an array sets the hash algorithms; a function receives each referenced asset and returns the algorithms to use or `false` to skip it.",
|
|
@@ -4683,7 +4728,8 @@
|
|
|
4683
4728
|
"instanceof": "Function",
|
|
4684
4729
|
"tsType": "((asset: { chunk: import('../lib/Chunk'), filename: string }) => string[] | false)"
|
|
4685
4730
|
}
|
|
4686
|
-
]
|
|
4731
|
+
],
|
|
4732
|
+
"added": "5.109.0"
|
|
4687
4733
|
},
|
|
4688
4734
|
"manifest": {
|
|
4689
4735
|
"description": "Web app manifest for webpack-generated HTML (authored pages are left untouched). `false` (default) injects nothing. A string is a path to an existing `.webmanifest` file to link. An object is the manifest contents — serialized, emitted as a hashed `.webmanifest` and linked with `<link rel=\"manifest\">`; its `icons`/`screenshots` `src` paths resolve like any request and are emitted as hashed assets. A function receives the page name and returns one of these.",
|
|
@@ -4711,7 +4757,8 @@
|
|
|
4711
4757
|
"additionalProperties": {
|
|
4712
4758
|
"description": "Content string for the meta tag.",
|
|
4713
4759
|
"type": "string"
|
|
4714
|
-
}
|
|
4760
|
+
},
|
|
4761
|
+
"added": "5.109.0"
|
|
4715
4762
|
},
|
|
4716
4763
|
"scriptLoading": {
|
|
4717
4764
|
"description": "How injected `<script>` tags load. `auto` (default) emits a module script for ES module output and `defer` otherwise; `defer` forces a deferred script; `blocking` emits a plain blocking script.",
|
|
@@ -4719,7 +4766,8 @@
|
|
|
4719
4766
|
},
|
|
4720
4767
|
"title": {
|
|
4721
4768
|
"description": "Sets the `<title>` of the generated HTML page. Skipped if the HTML already contains a `<title>` element.",
|
|
4722
|
-
"type": "string"
|
|
4769
|
+
"type": "string",
|
|
4770
|
+
"added": "5.109.0"
|
|
4723
4771
|
}
|
|
4724
4772
|
}
|
|
4725
4773
|
},
|
|
@@ -5541,7 +5589,8 @@
|
|
|
5541
5589
|
{
|
|
5542
5590
|
"$ref": "#/definitions/ResourceHintsOptions"
|
|
5543
5591
|
}
|
|
5544
|
-
]
|
|
5592
|
+
],
|
|
5593
|
+
"added": "5.109.0"
|
|
5545
5594
|
},
|
|
5546
5595
|
"ResourceHintsInitial": {
|
|
5547
5596
|
"description": "Initial dependency-graph chunk hints. `true` auto-emits `<link rel=\"modulepreload\">` (ESM output) or `<link rel=\"preload\" as=\"script\">` (classic) for each of the entry's initial dependency chunks; `\"prefetch\"` uses `<link rel=\"prefetch\">`; `\"preload\"` is an alias of `true`; `false` disables chunk hints (URL-asset hints from magic comments / `urlHints` still fire); `\"none\"` is a hard off switch (no `<link>` anywhere, empty stats / manifest); an array of `HtmlResourceHint` descriptors replaces the auto set; a function receives the auto `defaultHints` plus context (`entryName`, `entrypoint`, `hostType: \"html\" | \"js\"`, `compilation`) and returns the final list (replaces the removed `resolveDependencies` hook).",
|
|
@@ -5562,7 +5611,8 @@
|
|
|
5562
5611
|
"instanceof": "Function",
|
|
5563
5612
|
"tsType": "((context: { entryName: string, entrypoint: import('../lib/Entrypoint'), hostType: 'html' | 'js', compilation: import('../lib/Compilation'), defaultHints: (import('../lib/dependencies/HtmlEntryDependency').HtmlResourceHint & { hostChunks: string[] })[] }) => import('../lib/dependencies/HtmlEntryDependency').HtmlResourceHint[])"
|
|
5564
5613
|
}
|
|
5565
|
-
]
|
|
5614
|
+
],
|
|
5615
|
+
"added": "5.109.0"
|
|
5566
5616
|
},
|
|
5567
5617
|
"ResourceHintsOptions": {
|
|
5568
5618
|
"description": "Full resource-hint configuration.",
|
|
@@ -5592,7 +5642,8 @@
|
|
|
5592
5642
|
"$ref": "#/definitions/UrlHintRule"
|
|
5593
5643
|
}
|
|
5594
5644
|
}
|
|
5595
|
-
}
|
|
5645
|
+
},
|
|
5646
|
+
"added": "5.109.0"
|
|
5596
5647
|
},
|
|
5597
5648
|
"RuleSetCondition": {
|
|
5598
5649
|
"description": "A condition matcher.",
|
|
@@ -6323,7 +6374,8 @@
|
|
|
6323
6374
|
},
|
|
6324
6375
|
"chunkGroupResourceHints": {
|
|
6325
6376
|
"description": "Include the resolved `<link>` resource-hint descriptors for each entrypoint (`entrypoints[name].resourceHints`). Combines `output.resourceHints.chunks` (initial-graph modulepreload/preload/prefetch) with `output.resourceHints.assets` (URL-referenced fonts / images / …). Lets SSR frameworks inject the hints server-side without walking the chunk graph themselves; the analogue of Vite's `build.ssrManifest`.",
|
|
6326
|
-
"type": "boolean"
|
|
6377
|
+
"type": "boolean",
|
|
6378
|
+
"added": "5.109.0"
|
|
6327
6379
|
},
|
|
6328
6380
|
"chunkGroups": {
|
|
6329
6381
|
"description": "Display all chunk groups with the corresponding bundles.",
|
|
@@ -6843,14 +6895,16 @@
|
|
|
6843
6895
|
"description": "Default `type` attribute (MIME).",
|
|
6844
6896
|
"type": "string"
|
|
6845
6897
|
}
|
|
6846
|
-
}
|
|
6898
|
+
},
|
|
6899
|
+
"added": "5.109.0"
|
|
6847
6900
|
},
|
|
6848
6901
|
"UrlHints": {
|
|
6849
6902
|
"description": "URL-referenced-asset default hint rules for this parser (JavaScript `new URL(...)`, CSS `url(...)`, HTML `<img src>` / `<link href>` / `<script src>`).",
|
|
6850
6903
|
"type": "array",
|
|
6851
6904
|
"items": {
|
|
6852
6905
|
"$ref": "#/definitions/UrlHintRule"
|
|
6853
|
-
}
|
|
6906
|
+
},
|
|
6907
|
+
"added": "5.109.0"
|
|
6854
6908
|
},
|
|
6855
6909
|
"Validate": {
|
|
6856
6910
|
"description": "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.",
|
|
@@ -6925,7 +6979,8 @@
|
|
|
6925
6979
|
},
|
|
6926
6980
|
"WasmStreamingFallback": {
|
|
6927
6981
|
"description": "Fall back to non-streaming WebAssembly instantiation when streaming compilation fails because the server does not serve `.wasm` files with the `application/wasm` MIME type.",
|
|
6928
|
-
"type": "boolean"
|
|
6982
|
+
"type": "boolean",
|
|
6983
|
+
"added": "5.109.0"
|
|
6929
6984
|
},
|
|
6930
6985
|
"Watch": {
|
|
6931
6986
|
"description": "Enter watch mode, which rebuilds on file change.",
|