webpack 5.99.7 → 5.99.9

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.
Files changed (152) hide show
  1. package/README.md +0 -3
  2. package/lib/CacheFacade.js +2 -1
  3. package/lib/ChunkGraph.js +0 -1
  4. package/lib/ChunkGroup.js +13 -6
  5. package/lib/Compilation.js +22 -33
  6. package/lib/ConstPlugin.js +61 -43
  7. package/lib/ContextModule.js +1 -1
  8. package/lib/ContextModuleFactory.js +1 -2
  9. package/lib/ContextReplacementPlugin.js +2 -1
  10. package/lib/CssModule.js +0 -1
  11. package/lib/DefinePlugin.js +2 -2
  12. package/lib/DelegatedModule.js +18 -8
  13. package/lib/DelegatedModuleFactoryPlugin.js +9 -7
  14. package/lib/Dependency.js +10 -11
  15. package/lib/EvalSourceMapDevToolPlugin.js +1 -1
  16. package/lib/ExportsInfo.js +35 -16
  17. package/lib/ExternalModule.js +6 -5
  18. package/lib/FileSystemInfo.js +2 -4
  19. package/lib/LibManifestPlugin.js +2 -2
  20. package/lib/ModuleFilenameHelpers.js +8 -4
  21. package/lib/NormalModule.js +38 -19
  22. package/lib/NormalModuleFactory.js +23 -18
  23. package/lib/RuntimePlugin.js +1 -1
  24. package/lib/SourceMapDevToolPlugin.js +2 -3
  25. package/lib/WebpackOptionsApply.js +1 -4
  26. package/lib/asset/AssetGenerator.js +13 -12
  27. package/lib/asset/AssetSourceGenerator.js +7 -5
  28. package/lib/config/defaults.js +10 -6
  29. package/lib/config/normalization.js +5 -5
  30. package/lib/css/CssModulesPlugin.js +2 -2
  31. package/lib/debug/ProfilingPlugin.js +18 -21
  32. package/lib/dependencies/CommonJsImportsParserPlugin.js +1 -1
  33. package/lib/dependencies/ContextElementDependency.js +1 -1
  34. package/lib/dependencies/CssLocalIdentifierDependency.js +2 -2
  35. package/lib/dependencies/CssUrlDependency.js +1 -1
  36. package/lib/dependencies/ModuleDependency.js +1 -1
  37. package/lib/dependencies/RequireContextPlugin.js +2 -1
  38. package/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +3 -0
  39. package/lib/dependencies/URLDependency.js +1 -1
  40. package/lib/dependencies/WorkerPlugin.js +2 -2
  41. package/lib/esm/ModuleChunkLoadingRuntimeModule.js +3 -3
  42. package/lib/hmr/JavascriptHotModuleReplacement.runtime.js +0 -1
  43. package/lib/index.js +11 -0
  44. package/lib/javascript/JavascriptModulesPlugin.js +2 -2
  45. package/lib/javascript/JavascriptParser.js +19 -5
  46. package/lib/json/JsonModulesPlugin.js +4 -4
  47. package/lib/library/AbstractLibraryPlugin.js +1 -1
  48. package/lib/library/ModuleLibraryPlugin.js +4 -1
  49. package/lib/node/nodeConsole.js +3 -2
  50. package/lib/optimize/AggressiveSplittingPlugin.js +1 -1
  51. package/lib/optimize/ConcatenatedModule.js +3 -1
  52. package/lib/optimize/ModuleConcatenationPlugin.js +2 -2
  53. package/lib/optimize/RuntimeChunkPlugin.js +5 -6
  54. package/lib/optimize/SideEffectsFlagPlugin.js +12 -7
  55. package/lib/optimize/SplitChunksPlugin.js +2 -2
  56. package/lib/rules/BasicEffectRulePlugin.js +1 -2
  57. package/lib/rules/ObjectMatcherRulePlugin.js +2 -1
  58. package/lib/rules/RuleSetCompiler.js +19 -5
  59. package/lib/rules/UseEffectRulePlugin.js +4 -6
  60. package/lib/schemes/DataUriPlugin.js +3 -1
  61. package/lib/schemes/HttpUriPlugin.js +154 -149
  62. package/lib/sharing/ProvideSharedPlugin.js +3 -1
  63. package/lib/stats/DefaultStatsPrinterPlugin.js +13 -13
  64. package/lib/util/createHash.js +3 -3
  65. package/package.json +45 -40
  66. package/schemas/WebpackOptions.check.d.ts +1 -1
  67. package/schemas/WebpackOptions.check.js +2 -2
  68. package/schemas/WebpackOptions.json +243 -24
  69. package/schemas/plugins/BannerPlugin.check.d.ts +1 -1
  70. package/schemas/plugins/BannerPlugin.check.js +1 -1
  71. package/schemas/plugins/DllPlugin.check.d.ts +1 -1
  72. package/schemas/plugins/DllPlugin.check.js +1 -1
  73. package/schemas/plugins/DllReferencePlugin.check.d.ts +1 -1
  74. package/schemas/plugins/DllReferencePlugin.check.js +1 -1
  75. package/schemas/plugins/HashedModuleIdsPlugin.check.d.ts +1 -1
  76. package/schemas/plugins/HashedModuleIdsPlugin.check.js +1 -1
  77. package/schemas/plugins/IgnorePlugin.check.d.ts +1 -1
  78. package/schemas/plugins/IgnorePlugin.check.js +1 -1
  79. package/schemas/plugins/LoaderOptionsPlugin.check.d.ts +1 -1
  80. package/schemas/plugins/LoaderOptionsPlugin.check.js +1 -1
  81. package/schemas/plugins/ProgressPlugin.check.d.ts +1 -1
  82. package/schemas/plugins/ProgressPlugin.check.js +1 -1
  83. package/schemas/plugins/SourceMapDevToolPlugin.check.d.ts +1 -1
  84. package/schemas/plugins/SourceMapDevToolPlugin.check.js +1 -1
  85. package/schemas/plugins/SourceMapDevToolPlugin.json +2 -2
  86. package/schemas/plugins/WatchIgnorePlugin.check.d.ts +1 -1
  87. package/schemas/plugins/WatchIgnorePlugin.check.js +1 -1
  88. package/schemas/plugins/asset/AssetGeneratorOptions.check.d.ts +1 -1
  89. package/schemas/plugins/asset/AssetGeneratorOptions.check.js +1 -1
  90. package/schemas/plugins/asset/AssetInlineGeneratorOptions.check.d.ts +1 -1
  91. package/schemas/plugins/asset/AssetInlineGeneratorOptions.check.js +1 -1
  92. package/schemas/plugins/asset/AssetParserOptions.check.d.ts +1 -1
  93. package/schemas/plugins/asset/AssetParserOptions.check.js +1 -1
  94. package/schemas/plugins/asset/AssetResourceGeneratorOptions.check.d.ts +1 -1
  95. package/schemas/plugins/asset/AssetResourceGeneratorOptions.check.js +1 -1
  96. package/schemas/plugins/container/ContainerPlugin.check.d.ts +1 -1
  97. package/schemas/plugins/container/ContainerPlugin.check.js +1 -1
  98. package/schemas/plugins/container/ContainerReferencePlugin.check.d.ts +1 -1
  99. package/schemas/plugins/container/ContainerReferencePlugin.check.js +1 -1
  100. package/schemas/plugins/container/ExternalsType.check.d.ts +1 -1
  101. package/schemas/plugins/container/ExternalsType.check.js +1 -1
  102. package/schemas/plugins/container/ModuleFederationPlugin.check.d.ts +1 -1
  103. package/schemas/plugins/container/ModuleFederationPlugin.check.js +1 -1
  104. package/schemas/plugins/css/CssAutoGeneratorOptions.check.d.ts +1 -1
  105. package/schemas/plugins/css/CssAutoGeneratorOptions.check.js +1 -1
  106. package/schemas/plugins/css/CssAutoParserOptions.check.d.ts +1 -1
  107. package/schemas/plugins/css/CssAutoParserOptions.check.js +1 -1
  108. package/schemas/plugins/css/CssGeneratorOptions.check.d.ts +1 -1
  109. package/schemas/plugins/css/CssGeneratorOptions.check.js +1 -1
  110. package/schemas/plugins/css/CssGlobalGeneratorOptions.check.d.ts +1 -1
  111. package/schemas/plugins/css/CssGlobalGeneratorOptions.check.js +1 -1
  112. package/schemas/plugins/css/CssGlobalParserOptions.check.d.ts +1 -1
  113. package/schemas/plugins/css/CssGlobalParserOptions.check.js +1 -1
  114. package/schemas/plugins/css/CssModuleGeneratorOptions.check.d.ts +1 -1
  115. package/schemas/plugins/css/CssModuleGeneratorOptions.check.js +1 -1
  116. package/schemas/plugins/css/CssModuleParserOptions.check.d.ts +1 -1
  117. package/schemas/plugins/css/CssModuleParserOptions.check.js +1 -1
  118. package/schemas/plugins/css/CssParserOptions.check.d.ts +1 -1
  119. package/schemas/plugins/css/CssParserOptions.check.js +1 -1
  120. package/schemas/plugins/debug/ProfilingPlugin.check.d.ts +1 -1
  121. package/schemas/plugins/debug/ProfilingPlugin.check.js +1 -1
  122. package/schemas/plugins/ids/OccurrenceChunkIdsPlugin.check.d.ts +1 -1
  123. package/schemas/plugins/ids/OccurrenceChunkIdsPlugin.check.js +1 -1
  124. package/schemas/plugins/ids/OccurrenceModuleIdsPlugin.check.d.ts +1 -1
  125. package/schemas/plugins/ids/OccurrenceModuleIdsPlugin.check.js +1 -1
  126. package/schemas/plugins/json/JsonModulesPluginGenerator.check.d.ts +7 -0
  127. package/schemas/plugins/{JsonModulesPluginGenerator.check.js → json/JsonModulesPluginGenerator.check.js} +1 -1
  128. package/schemas/plugins/json/JsonModulesPluginGenerator.json +3 -0
  129. package/schemas/plugins/json/JsonModulesPluginParser.check.d.ts +7 -0
  130. package/schemas/plugins/{JsonModulesPluginParser.check.js → json/JsonModulesPluginParser.check.js} +1 -1
  131. package/schemas/plugins/json/JsonModulesPluginParser.json +3 -0
  132. package/schemas/plugins/optimize/AggressiveSplittingPlugin.check.d.ts +1 -1
  133. package/schemas/plugins/optimize/AggressiveSplittingPlugin.check.js +1 -1
  134. package/schemas/plugins/optimize/LimitChunkCountPlugin.check.d.ts +1 -1
  135. package/schemas/plugins/optimize/LimitChunkCountPlugin.check.js +1 -1
  136. package/schemas/plugins/optimize/MergeDuplicateChunksPlugin.check.d.ts +1 -1
  137. package/schemas/plugins/optimize/MergeDuplicateChunksPlugin.check.js +1 -1
  138. package/schemas/plugins/optimize/MinChunkSizePlugin.check.d.ts +1 -1
  139. package/schemas/plugins/optimize/MinChunkSizePlugin.check.js +1 -1
  140. package/schemas/plugins/schemes/HttpUriPlugin.check.d.ts +1 -1
  141. package/schemas/plugins/schemes/HttpUriPlugin.check.js +1 -1
  142. package/schemas/plugins/sharing/ConsumeSharedPlugin.check.d.ts +1 -1
  143. package/schemas/plugins/sharing/ConsumeSharedPlugin.check.js +1 -1
  144. package/schemas/plugins/sharing/ProvideSharedPlugin.check.d.ts +1 -1
  145. package/schemas/plugins/sharing/ProvideSharedPlugin.check.js +1 -1
  146. package/schemas/plugins/sharing/SharePlugin.check.d.ts +1 -1
  147. package/schemas/plugins/sharing/SharePlugin.check.js +1 -1
  148. package/types.d.ts +468 -156
  149. package/schemas/plugins/JsonModulesPluginGenerator.check.d.ts +0 -7
  150. package/schemas/plugins/JsonModulesPluginGenerator.json +0 -11
  151. package/schemas/plugins/JsonModulesPluginParser.check.d.ts +0 -7
  152. package/schemas/plugins/JsonModulesPluginParser.json +0 -16
@@ -141,7 +141,9 @@ class ProvideSharedPlugin {
141
141
  } else if (!descriptionFileData.version) {
142
142
  details = `No version in description file (usually package.json). Add version to description file ${resourceResolveData.descriptionFilePath}, or manually specify version in shared config.`;
143
143
  } else {
144
- version = descriptionFileData.version;
144
+ version = /** @type {string | false | undefined} */ (
145
+ descriptionFileData.version
146
+ );
145
147
  }
146
148
  }
147
149
  if (!version) {
@@ -1454,7 +1454,12 @@ const AVAILABLE_COLORS = {
1454
1454
  magenta: "\u001B[1m\u001B[35m"
1455
1455
  };
1456
1456
 
1457
- /** @typedef {Required<{ [Key in keyof KnownStatsPrinterFormatters]: (value: Parameters<NonNullable<KnownStatsPrinterFormatters[Key]>>[0], options: Required<KnownStatsPrinterColorFunctions> & StatsPrinterContext, ...args: TODO[]) => string }>} AvailableFormats */
1457
+ /**
1458
+ * @template T
1459
+ * @typedef {T extends [infer Head, ...infer Tail] ? Tail : undefined} Tail
1460
+ */
1461
+
1462
+ /** @typedef {Required<{ [Key in keyof KnownStatsPrinterFormatters]: (value: Parameters<NonNullable<KnownStatsPrinterFormatters[Key]>>[0], options: Required<KnownStatsPrinterColorFunctions> & StatsPrinterContextWithExtra, ...args: Tail<Parameters<NonNullable<KnownStatsPrinterFormatters[Key]>>>) => string }>} AvailableFormats */
1458
1463
 
1459
1464
  /** @type {AvailableFormats} */
1460
1465
  const AVAILABLE_FORMATS = {
@@ -1629,21 +1634,16 @@ class DefaultStatsPrinterPlugin {
1629
1634
  context[color] = str => str;
1630
1635
  }
1631
1636
  }
1632
- for (const format of Object.keys(AVAILABLE_FORMATS)) {
1637
+ for (const _format of Object.keys(AVAILABLE_FORMATS)) {
1638
+ const format =
1639
+ /** @type {keyof KnownStatsPrinterFormatters} */
1640
+ (_format);
1641
+
1633
1642
  context[format] =
1634
- /**
1635
- * @param {string | number} content content
1636
- * @param {...TODO} args args
1637
- * @returns {string} result
1638
- */
1643
+ /** @type {(content: Parameters<NonNullable<KnownStatsPrinterFormatters[keyof KnownStatsPrinterFormatters]>>[0], ...args: Tail<Parameters<NonNullable<KnownStatsPrinterFormatters[keyof KnownStatsPrinterFormatters]>>>) => string} */
1639
1644
  (content, ...args) =>
1640
1645
  /** @type {TODO} */
1641
- (
1642
- AVAILABLE_FORMATS[
1643
- /** @type {keyof AvailableFormats} */
1644
- (format)
1645
- ]
1646
- )(
1646
+ (AVAILABLE_FORMATS)[format](
1647
1647
  content,
1648
1648
  /** @type {StatsPrinterContext & Required<KnownStatsPrinterColorFunctions>} */
1649
1649
  (context),
@@ -7,6 +7,8 @@
7
7
 
8
8
  const Hash = require("./Hash");
9
9
 
10
+ /** @typedef {import("../../declarations/WebpackOptions").HashFunction} HashFunction */
11
+
10
12
  const BULK_SIZE = 2000;
11
13
 
12
14
  // We are using an object instead of a Map as this will stay static during the runtime
@@ -141,11 +143,9 @@ let createMd4;
141
143
  /** @type {typeof import("./hash/BatchedHash") | undefined} */
142
144
  let BatchedHash;
143
145
 
144
- /** @typedef {string | typeof Hash} Algorithm */
145
-
146
146
  /**
147
147
  * Creates a hash by name or function
148
- * @param {Algorithm} algorithm the algorithm name or a constructor creating a hash
148
+ * @param {HashFunction} algorithm the algorithm name or a constructor creating a hash
149
149
  * @returns {Hash} the hash
150
150
  */
151
151
  module.exports = algorithm => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack",
3
- "version": "5.99.7",
3
+ "version": "5.99.9",
4
4
  "author": "Tobias Koppers @sokra",
5
5
  "description": "Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
6
6
  "license": "MIT",
@@ -36,22 +36,23 @@
36
36
  }
37
37
  },
38
38
  "devDependencies": {
39
- "@babel/core": "^7.26.8",
40
- "@babel/preset-react": "^7.25.7",
39
+ "@babel/core": "^7.27.1",
40
+ "@babel/preset-react": "^7.27.1",
41
+ "@codspeed/tinybench-plugin": "^4.0.1",
41
42
  "@eslint/js": "^9.21.0",
42
43
  "@stylistic/eslint-plugin": "^4.2.0",
43
44
  "@types/glob-to-regexp": "^0.4.4",
44
45
  "@types/jest": "^29.5.11",
45
46
  "@types/mime-types": "^2.1.4",
46
- "@types/node": "^22.13.10",
47
+ "@types/node": "^22.15.11",
48
+ "@types/xxhashjs": "^0.2.4",
47
49
  "assemblyscript": "^0.27.34",
48
50
  "babel-loader": "^10.0.0",
49
- "benchmark": "^2.1.4",
50
51
  "bundle-loader": "^0.5.6",
51
52
  "coffee-loader": "^5.0.0",
52
53
  "coffeescript": "^2.5.1",
53
54
  "core-js": "^3.6.5",
54
- "cspell": "^8.8.4",
55
+ "cspell": "^9.0.1",
55
56
  "css-loader": "^7.1.2",
56
57
  "date-fns": "^4.0.0",
57
58
  "es5-ext": "^0.10.53",
@@ -62,7 +63,7 @@
62
63
  "eslint-plugin-jsdoc": "^50.6.3",
63
64
  "eslint-plugin-n": "^17.16.2",
64
65
  "eslint-plugin-prettier": "^5.1.3",
65
- "eslint-plugin-unicorn": "^58.0.0",
66
+ "eslint-plugin-unicorn": "^59.0.0",
66
67
  "file-loader": "^6.0.0",
67
68
  "fork-ts-checker-webpack-plugin": "^9.0.2",
68
69
  "globals": "^16.0.0",
@@ -79,12 +80,13 @@
79
80
  "json5": "^2.1.3",
80
81
  "less": "^4.0.0",
81
82
  "less-loader": "^12.2.0",
82
- "lint-staged": "^15.2.5",
83
+ "lint-staged": "^16.0.0",
83
84
  "lodash": "^4.17.19",
84
85
  "lodash-es": "^4.17.15",
85
86
  "memfs": "^4.14.0",
86
87
  "mini-css-extract-plugin": "^2.9.0",
87
88
  "mini-svg-data-uri": "^1.2.3",
89
+ "node-gyp": "^11.2.0",
88
90
  "nyc": "^17.1.0",
89
91
  "open-cli": "^8.0.0",
90
92
  "prettier": "^3.5.1",
@@ -101,8 +103,10 @@
101
103
  "strip-ansi": "^6.0.0",
102
104
  "style-loader": "^4.0.0",
103
105
  "terser": "^5.38.1",
106
+ "three": "^0.176.0",
107
+ "tinybench": "^4.0.1",
104
108
  "toml": "^3.0.0",
105
- "tooling": "webpack/tooling#v1.23.7",
109
+ "tooling": "webpack/tooling#v1.23.9",
106
110
  "ts-loader": "^9.5.1",
107
111
  "typescript": "^5.8.2",
108
112
  "url-loader": "^4.1.0",
@@ -141,42 +145,43 @@
141
145
  "types.d.ts"
142
146
  ],
143
147
  "scripts": {
148
+ "prepare": "husky",
144
149
  "setup": "node ./setup/setup.js",
145
- "jest": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage",
146
- "test": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage",
147
- "test:update-snapshots": "yarn jest -u",
148
- "test:integration": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\"",
149
- "test:basic": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.basictest.js\"",
150
- "test:unit": "node --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\"",
150
+ "prelint": "yarn setup",
151
+ "lint": "yarn lint:code && yarn lint:special && yarn lint:types && yarn lint:types-test && yarn lint:types-module-test && yarn lint:yarn && yarn fmt:check && yarn lint:spellcheck",
152
+ "lint:code": "node node_modules/eslint/bin/eslint.js --cache .",
153
+ "lint:special": "node node_modules/tooling/lockfile-lint && node node_modules/tooling/schemas-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/format-schemas && node tooling/generate-runtime-code.js && node tooling/generate-wasm-code.js && node node_modules/tooling/format-file-header && node node_modules/tooling/compile-to-definitions && node node_modules/tooling/precompile-schemas && node node_modules/tooling/generate-types --no-template-literals",
154
+ "lint:types": "tsc",
155
+ "lint:types-test": "tsc -p tsconfig.types.test.json",
156
+ "lint:types-module-test": "tsc -p tsconfig.module.test.json",
157
+ "lint:yarn": "yarn-deduplicate --fail --list -s highest yarn.lock",
158
+ "lint:spellcheck": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
159
+ "report:types": "rimraf coverage && yarn cover:types && yarn cover:report && open-cli coverage/lcov-report/index.html",
160
+ "validate:types": "tsc -p tsconfig.validation.json",
161
+ "fmt": "yarn fmt:base --log-level warn --write",
162
+ "fmt:check": "yarn fmt:base --check",
163
+ "fmt:base": "node node_modules/prettier/bin/prettier.cjs --cache --ignore-unknown .",
164
+ "fix": "yarn fix:code && fix:yarn && fix:special && yarn fmt",
165
+ "fix:code": "yarn lint:code --fix",
166
+ "fix:yarn": "yarn-deduplicate -s highest yarn.lock",
167
+ "fix:special": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/format-schemas --write && node tooling/generate-runtime-code.js --write && node tooling/generate-wasm-code.js --write && node node_modules/tooling/format-file-header --write && node node_modules/tooling/compile-to-definitions --write && node node_modules/tooling/precompile-schemas --write && node node_modules/tooling/generate-types --no-template-literals --write",
151
168
  "build:examples": "cd examples && node buildAll.js",
152
- "type-report": "rimraf coverage && yarn cover:types && yarn cover:report && open-cli coverage/lcov-report/index.html",
169
+ "benchmark": "node --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation --hash-seed=1 --random-seed=1 --no-opt --predictable --predictable-gc-schedule --interpreted-frames-native-stack --allow-natives-syntax --expose-gc --no-concurrent-sweeping ./test/BenchmarkTestCases.benchmark.mjs",
153
170
  "pretest": "yarn lint",
154
- "prelint": "yarn setup",
155
- "lint": "yarn code-lint && yarn special-lint && yarn type-lint && yarn typings-test && yarn module-typings-test && yarn yarn-lint && yarn pretty-lint && yarn spellcheck",
156
- "code-lint": "node node_modules/eslint/bin/eslint.js --cache .",
157
- "type-lint": "tsc",
158
- "type-validate": "tsc -p tsconfig.validation.json",
159
- "typings-test": "tsc -p tsconfig.types.test.json",
160
- "module-typings-test": "tsc -p tsconfig.module.test.json",
161
- "spellcheck": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
162
- "special-lint": "node node_modules/tooling/lockfile-lint && node node_modules/tooling/schemas-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/format-schemas && node tooling/generate-runtime-code.js && node tooling/generate-wasm-code.js && node node_modules/tooling/format-file-header && node node_modules/tooling/compile-to-definitions && node node_modules/tooling/precompile-schemas && node node_modules/tooling/generate-types --no-template-literals",
163
- "special-lint-fix": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/format-schemas --write && node tooling/generate-runtime-code.js --write && node tooling/generate-wasm-code.js --write && node node_modules/tooling/format-file-header --write && node node_modules/tooling/compile-to-definitions --write && node node_modules/tooling/precompile-schemas --write && node node_modules/tooling/generate-types --no-template-literals --write",
164
- "fix": "yarn code-lint --fix && yarn special-lint-fix && yarn pretty-lint-fix",
165
- "prepare": "husky",
166
- "pretty-lint-base": "node node_modules/prettier/bin/prettier.cjs --cache --ignore-unknown .",
167
- "pretty-lint-fix": "yarn pretty-lint-base --log-level warn --write",
168
- "pretty-lint": "yarn pretty-lint-base --check",
169
- "yarn-lint": "yarn-deduplicate --fail --list -s highest yarn.lock",
170
- "yarn-lint-fix": "yarn-deduplicate -s highest yarn.lock",
171
- "benchmark": "node --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.benchmark.mjs\" --runInBand",
171
+ "test": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage",
172
+ "test:update-snapshots": "yarn test -u",
173
+ "test:basic": "yarn test --testMatch \"<rootDir>/test/*.basictest.js\"",
174
+ "test:unit": "yarn test --testMatch \"<rootDir>/test/*.unittest.js\"",
175
+ "test:integration": "yarn test --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\"",
172
176
  "cover": "yarn cover:all && yarn cover:report",
173
177
  "cover:clean": "rimraf .nyc_output coverage",
174
- "cover:all": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --coverage",
175
- "cover:basic": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.basictest.js\" --coverage",
176
- "cover:integration": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\" --coverage",
177
- "cover:integration:a": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.{basictest,test}.js\" --coverage",
178
- "cover:integration:b": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.longtest.js\" --coverage",
179
- "cover:unit": "node --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\" --coverage",
178
+ "cover:all": "yarn cover:base --coverage",
179
+ "cover:unit": "yarn cover:base --testMatch \"<rootDir>/test/*.unittest.js\" --coverage",
180
+ "cover:basic": "yarn cover:base --testMatch \"<rootDir>/test/*.basictest.js\" --coverage",
181
+ "cover:integration": "yarn cover:base --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\" --coverage",
182
+ "cover:integration:a": "yarn cover:base --testMatch \"<rootDir>/test/*.{basictest,test}.js\" --coverage",
183
+ "cover:integration:b": "yarn cover:base --testMatch \"<rootDir>/test/*.longtest.js\" --coverage",
184
+ "cover:base": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage",
180
185
  "cover:types": "node node_modules/tooling/type-coverage",
181
186
  "cover:merge": "yarn mkdirp .nyc_output && nyc merge .nyc_output coverage/coverage-nyc.json && rimraf .nyc_output",
182
187
  "cover:report": "nyc report --reporter=lcov --reporter=text -t coverage"
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * This file was automatically generated.
3
3
  * DO NOT MODIFY BY HAND.
4
- * Run `yarn special-lint-fix` to update
4
+ * Run `yarn fix:special` to update
5
5
  */
6
6
  declare const check: (options: import("../declarations/WebpackOptions").WebpackOptions) => boolean;
7
7
  export = check;