webpack 5.79.0 → 5.81.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of webpack might be problematic. Click here for more details.

Files changed (115) hide show
  1. package/README.md +3 -0
  2. package/lib/AsyncDependenciesBlock.js +8 -0
  3. package/lib/CodeGenerationResults.js +2 -2
  4. package/lib/Compilation.js +2 -2
  5. package/lib/ContextModule.js +8 -0
  6. package/lib/CssModule.js +137 -0
  7. package/lib/DefinePlugin.js +81 -44
  8. package/lib/DelegatedModule.js +5 -0
  9. package/lib/DependenciesBlock.js +8 -0
  10. package/lib/Dependency.js +8 -0
  11. package/lib/DllModule.js +8 -0
  12. package/lib/ExportsInfo.js +3 -0
  13. package/lib/ExternalModule.js +8 -0
  14. package/lib/FileSystemInfo.js +8 -0
  15. package/lib/LoaderOptionsPlugin.js +12 -2
  16. package/lib/Module.js +8 -0
  17. package/lib/ModuleBuildError.js +9 -0
  18. package/lib/ModuleError.js +9 -0
  19. package/lib/ModuleFilenameHelpers.js +113 -4
  20. package/lib/ModuleParseError.js +9 -0
  21. package/lib/ModuleTypeConstants.js +21 -0
  22. package/lib/ModuleWarning.js +9 -0
  23. package/lib/NormalModule.js +8 -0
  24. package/lib/NormalModuleFactory.js +26 -4
  25. package/lib/RawModule.js +8 -0
  26. package/lib/WarnCaseSensitiveModulesPlugin.js +12 -0
  27. package/lib/WebpackError.js +8 -0
  28. package/lib/asset/AssetGenerator.js +11 -3
  29. package/lib/asset/RawDataUrlModule.js +8 -0
  30. package/lib/cache/ResolverCachePlugin.js +3 -0
  31. package/lib/config/normalization.js +1 -0
  32. package/lib/container/ContainerEntryModule.js +5 -0
  33. package/lib/container/ContainerExposedDependency.js +9 -0
  34. package/lib/container/FallbackDependency.js +6 -0
  35. package/lib/container/FallbackModule.js +5 -0
  36. package/lib/container/RemoteModule.js +5 -0
  37. package/lib/css/CssModulesPlugin.js +91 -50
  38. package/lib/css/CssParser.js +226 -72
  39. package/lib/css/walkCssTokens.js +152 -117
  40. package/lib/dependencies/AMDDefineDependency.js +8 -0
  41. package/lib/dependencies/AMDRequireArrayDependency.js +8 -0
  42. package/lib/dependencies/AMDRequireContextDependency.js +9 -0
  43. package/lib/dependencies/AMDRequireDependency.js +8 -0
  44. package/lib/dependencies/CachedConstDependency.js +8 -0
  45. package/lib/dependencies/CommonJsDependencyHelpers.js +9 -0
  46. package/lib/dependencies/CommonJsExportRequireDependency.js +8 -0
  47. package/lib/dependencies/CommonJsExportsDependency.js +8 -0
  48. package/lib/dependencies/CommonJsExportsParserPlugin.js +65 -3
  49. package/lib/dependencies/CommonJsFullRequireDependency.js +8 -0
  50. package/lib/dependencies/CommonJsRequireContextDependency.js +9 -0
  51. package/lib/dependencies/CommonJsSelfReferenceDependency.js +8 -0
  52. package/lib/dependencies/ConstDependency.js +8 -0
  53. package/lib/dependencies/ContextDependency.js +8 -0
  54. package/lib/dependencies/ContextElementDependency.js +8 -0
  55. package/lib/dependencies/CreateScriptUrlDependency.js +8 -0
  56. package/lib/dependencies/CssExportDependency.js +8 -0
  57. package/lib/dependencies/CssImportDependency.js +52 -1
  58. package/lib/dependencies/CssLocalIdentifierDependency.js +8 -0
  59. package/lib/dependencies/CssSelfLocalIdentifierDependency.js +8 -0
  60. package/lib/dependencies/CssUrlDependency.js +38 -18
  61. package/lib/dependencies/DllEntryDependency.js +9 -0
  62. package/lib/dependencies/ExportsInfoDependency.js +5 -0
  63. package/lib/dependencies/HarmonyAcceptDependency.js +8 -0
  64. package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +8 -0
  65. package/lib/dependencies/HarmonyExportExpressionDependency.js +8 -0
  66. package/lib/dependencies/HarmonyExportHeaderDependency.js +8 -0
  67. package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +14 -0
  68. package/lib/dependencies/HarmonyExportSpecifierDependency.js +8 -0
  69. package/lib/dependencies/HarmonyImportDependency.js +8 -0
  70. package/lib/dependencies/HarmonyImportSpecifierDependency.js +8 -0
  71. package/lib/dependencies/ImportContextDependency.js +9 -0
  72. package/lib/dependencies/ImportDependency.js +8 -0
  73. package/lib/dependencies/ImportMetaPlugin.js +56 -26
  74. package/lib/dependencies/ImportParserPlugin.js +17 -1
  75. package/lib/dependencies/JsonExportsDependency.js +8 -0
  76. package/lib/dependencies/LocalModuleDependency.js +8 -0
  77. package/lib/dependencies/ModuleDecoratorDependency.js +8 -0
  78. package/lib/dependencies/ModuleDependency.js +8 -0
  79. package/lib/dependencies/ProvidedDependency.js +8 -0
  80. package/lib/dependencies/PureExpressionDependency.js +8 -0
  81. package/lib/dependencies/RequireEnsureDependency.js +8 -0
  82. package/lib/dependencies/RequireHeaderDependency.js +5 -0
  83. package/lib/dependencies/RequireResolveContextDependency.js +9 -0
  84. package/lib/dependencies/RequireResolveHeaderDependency.js +5 -0
  85. package/lib/dependencies/RuntimeRequirementsDependency.js +8 -0
  86. package/lib/dependencies/StaticExportsDependency.js +8 -0
  87. package/lib/dependencies/URLDependency.js +8 -0
  88. package/lib/dependencies/UnsupportedDependency.js +8 -0
  89. package/lib/dependencies/WebAssemblyExportImportedDependency.js +8 -0
  90. package/lib/dependencies/WebAssemblyImportDependency.js +8 -0
  91. package/lib/dependencies/WorkerDependency.js +8 -0
  92. package/lib/ids/OccurrenceModuleIdsPlugin.js +1 -1
  93. package/lib/index.js +1 -0
  94. package/lib/javascript/JavascriptParser.js +14 -4
  95. package/lib/optimize/RealContentHashPlugin.js +6 -0
  96. package/lib/runtime/AutoPublicPathRuntimeModule.js +6 -1
  97. package/lib/schemes/DataUriPlugin.js +12 -3
  98. package/lib/serialization/ObjectMiddleware.js +2 -0
  99. package/lib/sharing/ConsumeSharedModule.js +8 -0
  100. package/lib/sharing/ConsumeSharedRuntimeModule.js +9 -3
  101. package/lib/sharing/ProvideSharedDependency.js +6 -0
  102. package/lib/sharing/ProvideSharedModule.js +5 -0
  103. package/lib/sharing/ShareRuntimeModule.js +7 -4
  104. package/lib/stats/DefaultStatsFactoryPlugin.js +98 -25
  105. package/lib/stats/DefaultStatsPresetPlugin.js +9 -0
  106. package/lib/stats/DefaultStatsPrinterPlugin.js +4 -0
  107. package/lib/util/LazySet.js +10 -2
  108. package/lib/util/MapHelpers.js +19 -5
  109. package/lib/util/binarySearchBounds.js +49 -0
  110. package/lib/util/internalSerializables.js +1 -0
  111. package/lib/util/semver.js +1 -1
  112. package/package.json +19 -22
  113. package/schemas/WebpackOptions.check.js +1 -1
  114. package/schemas/WebpackOptions.json +16 -0
  115. package/types.d.ts +108 -39
@@ -47,6 +47,8 @@ const NAMED_PRESETS = {
47
47
  orphanModules: true,
48
48
  runtimeModules: true,
49
49
  exclude: false,
50
+ errorsSpace: Infinity,
51
+ warningsSpace: Infinity,
50
52
  modulesSpace: Infinity,
51
53
  chunkModulesSpace: Infinity,
52
54
  assetsSpace: Infinity,
@@ -73,6 +75,8 @@ const NAMED_PRESETS = {
73
75
  logging: true,
74
76
  runtimeModules: true,
75
77
  exclude: false,
78
+ errorsSpace: 1000,
79
+ warningsSpace: 1000,
76
80
  modulesSpace: 1000,
77
81
  assetsSpace: 1000,
78
82
  reasonsSpace: 1000
@@ -82,6 +86,8 @@ const NAMED_PRESETS = {
82
86
  version: true,
83
87
  timings: true,
84
88
  modules: true,
89
+ errorsSpace: 0,
90
+ warningsSpace: 0,
85
91
  modulesSpace: 0,
86
92
  assets: true,
87
93
  assetsSpace: 0,
@@ -95,6 +101,7 @@ const NAMED_PRESETS = {
95
101
  all: false,
96
102
  errors: true,
97
103
  errorsCount: true,
104
+ errorsSpace: Infinity,
98
105
  moduleTrace: true,
99
106
  logging: "error"
100
107
  },
@@ -102,8 +109,10 @@ const NAMED_PRESETS = {
102
109
  all: false,
103
110
  errors: true,
104
111
  errorsCount: true,
112
+ errorsSpace: Infinity,
105
113
  warnings: true,
106
114
  warningsCount: true,
115
+ warningsSpace: Infinity,
107
116
  logging: "warn"
108
117
  },
109
118
  summary: {
@@ -603,6 +603,8 @@ const SIMPLE_PRINTERS = {
603
603
  "error.message": (message, { bold, formatError }) =>
604
604
  message.includes("\u001b[") ? message : bold(formatError(message)),
605
605
  "error.details": (details, { formatError }) => formatError(details),
606
+ "error.filteredDetails": filteredDetails =>
607
+ filteredDetails ? `+ ${filteredDetails} hidden lines` : undefined,
606
608
  "error.stack": stack => stack,
607
609
  "error.moduleTrace": moduleTrace => undefined,
608
610
  "error.separator!": () => "\n",
@@ -703,6 +705,8 @@ const ERROR_PREFERRED_ORDER = [
703
705
  "separator!",
704
706
  "details",
705
707
  "separator!",
708
+ "filteredDetails",
709
+ "separator!",
706
710
  "stack",
707
711
  "separator!",
708
712
  "missing",
@@ -87,7 +87,7 @@ class LazySet {
87
87
 
88
88
  /**
89
89
  * @param {T} item an item
90
- * @returns {this} itself
90
+ * @returns {LazySet<T>} itself
91
91
  */
92
92
  add(item) {
93
93
  this._set.add(item);
@@ -96,7 +96,7 @@ class LazySet {
96
96
 
97
97
  /**
98
98
  * @param {Iterable<T> | LazySet<T>} iterable a immutable iterable or another immutable LazySet which will eventually be merged into the Set
99
- * @returns {this} itself
99
+ * @returns {LazySet<T>} itself
100
100
  */
101
101
  addAll(iterable) {
102
102
  if (this._deopt) {
@@ -187,12 +187,20 @@ class LazySet {
187
187
  return "LazySet";
188
188
  }
189
189
 
190
+ /**
191
+ * @param {import("../serialization/ObjectMiddleware").ObjectSerializerContext} context context
192
+ */
190
193
  serialize({ write }) {
191
194
  if (this._needMerge) this._merge();
192
195
  write(this._set.size);
193
196
  for (const item of this._set) write(item);
194
197
  }
195
198
 
199
+ /**
200
+ * @template T
201
+ * @param {import("../serialization/ObjectMiddleware").ObjectDeserializerContext} context context
202
+ * @returns {LazySet<T>} lazy set
203
+ */
196
204
  static deserialize({ read }) {
197
205
  const count = read();
198
206
  const items = [];
@@ -6,16 +6,30 @@
6
6
  "use strict";
7
7
 
8
8
  /**
9
+ * getOrInsert is a helper function for maps that allows you to get a value
10
+ * from a map if it exists, or insert a new value if it doesn't. If it value doesn't
11
+ * exist, it will be computed by the provided function.
12
+ *
9
13
  * @template K
10
14
  * @template V
11
- * @param {Map<K, V>} map a map
12
- * @param {K} key the key
13
- * @param {function(): V} computer compute value
14
- * @returns {V} value
15
+ * @param {Map<K, V>} map The map object to check
16
+ * @param {K} key The key to check
17
+ * @param {function(): V} computer function which will compute the value if it doesn't exist
18
+ * @returns {V} The value from the map, or the computed value
19
+ *
20
+ * @example
21
+ * ```js
22
+ * const map = new Map();
23
+ * const value = getOrInsert(map, "key", () => "value");
24
+ * console.log(value); // "value"
25
+ * ```
15
26
  */
16
- exports.provide = (map, key, computer) => {
27
+ exports.getOrInsert = (map, key, computer) => {
28
+ // Grab key from map
17
29
  const value = map.get(key);
30
+ // If the value already exists, return it
18
31
  if (value !== undefined) return value;
32
+ // Otherwise compute the value, set it in the map, and return it
19
33
  const newValue = computer();
20
34
  map.set(key, newValue);
21
35
  return newValue;
@@ -8,6 +8,28 @@
8
8
  /* cspell:disable-next-line */
9
9
  // Refactor: Peter Somogyvari @petermetz
10
10
 
11
+ /** @typedef {">=" | "<=" | "<" | ">" | "-" } BinarySearchPredicate */
12
+ /** @typedef {"GE" | "GT" | "LT" | "LE" | "EQ" } SearchPredicateSuffix */
13
+
14
+ /**
15
+ * Helper function for compiling binary search functions.
16
+ *
17
+ * The generated code uses a while loop to repeatedly divide the search interval
18
+ * in half until the desired element is found, or the search interval is empty.
19
+ *
20
+ * The following is an example of a generated function for calling `compileSearch("P", "c(x,y)<=0", true, ["y", "c"], false)`:
21
+ *
22
+ * ```js
23
+ * function P(a,l,h,y,c){var i=l-1;while(l<=h){var m=(l+h)>>>1,x=a[m];if(c(x,y)<=0){i=m;l=m+1}else{h=m-1}}return i};
24
+ * ```
25
+ *
26
+ * @param {string} funcName The name of the function to be compiled.
27
+ * @param {string} predicate The predicate / comparison operator to be used in the binary search.
28
+ * @param {boolean} reversed Whether the search should be reversed.
29
+ * @param {string[]} extraArgs Extra arguments to be passed to the function.
30
+ * @param {boolean=} earlyOut Whether the search should return as soon as a match is found.
31
+ * @returns {string} The compiled binary search function.
32
+ */
11
33
  const compileSearch = (funcName, predicate, reversed, extraArgs, earlyOut) => {
12
34
  const code = [
13
35
  "function ",
@@ -43,6 +65,18 @@ const compileSearch = (funcName, predicate, reversed, extraArgs, earlyOut) => {
43
65
  return code.join("");
44
66
  };
45
67
 
68
+ /**
69
+ * This helper functions generate code for two binary search functions:
70
+ * A(): Performs a binary search on an array using the comparison operator specified.
71
+ * P(): Performs a binary search on an array using a _custom comparison function_
72
+ * `c(x,y)` **and** comparison operator specified by `predicate`.
73
+ *
74
+ * @param {BinarySearchPredicate} predicate The predicate / comparison operator to be used in the binary search.
75
+ * @param {boolean} reversed Whether the search should be reversed.
76
+ * @param {SearchPredicateSuffix} suffix The suffix to be used in the function name.
77
+ * @param {boolean=} earlyOut Whether the search should return as soon as a match is found.
78
+ * @returns {function} The compiled binary search function.
79
+ */
46
80
  const compileBoundsSearch = (predicate, reversed, suffix, earlyOut) => {
47
81
  const arg1 = compileSearch(
48
82
  "A",
@@ -77,6 +111,21 @@ return dispatchBinarySearch";
77
111
  return result();
78
112
  };
79
113
 
114
+ /**
115
+ * These functions are used to perform binary searches on arrays.
116
+ *
117
+ * @example
118
+ * ```js
119
+ * const { gt, le} = require("./binarySearchBounds");
120
+ * const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9];
121
+ *
122
+ * // Find the index of the first element greater than 5
123
+ * const index1 = gt(arr, 5); // index1 === 3
124
+ *
125
+ * // Find the index of the first element less than or equal to 5
126
+ * const index2 = le(arr, 5); // index2 === 4
127
+ * ```
128
+ */
80
129
  module.exports = {
81
130
  ge: compileBoundsSearch(">=", false, "GE"),
82
131
  gt: compileBoundsSearch(">", false, "GT"),
@@ -189,6 +189,7 @@ module.exports = {
189
189
  ModuleParseError: () => require("../ModuleParseError"),
190
190
  ModuleWarning: () => require("../ModuleWarning"),
191
191
  NormalModule: () => require("../NormalModule"),
192
+ CssModule: () => require("../CssModule"),
192
193
  RawDataUrlModule: () => require("../asset/RawDataUrlModule"),
193
194
  RawModule: () => require("../RawModule"),
194
195
  "sharing/ConsumeSharedModule": () =>
@@ -288,7 +288,7 @@ const satisfy = (range, version) => {
288
288
  if (0 in range) {
289
289
  // @ts-expect-error
290
290
  version = parseVersion(version);
291
- var fixCount = range[0];
291
+ var fixCount = /** @type {number} */ (range[0]);
292
292
  // when negated is set it swill set for < instead of >=
293
293
  var negated = fixCount < 0;
294
294
  if (negated) fixCount = -fixCount - 1;
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "webpack",
3
- "version": "5.79.0",
3
+ "version": "5.81.0",
4
4
  "author": "Tobias Koppers @sokra",
5
5
  "description": "Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
8
  "@types/eslint-scope": "^3.7.3",
9
9
  "@types/estree": "^1.0.0",
10
- "@webassemblyjs/ast": "1.11.1",
11
- "@webassemblyjs/wasm-edit": "1.11.1",
12
- "@webassemblyjs/wasm-parser": "1.11.1",
10
+ "@webassemblyjs/ast": "^1.11.5",
11
+ "@webassemblyjs/wasm-edit": "^1.11.5",
12
+ "@webassemblyjs/wasm-parser": "^1.11.5",
13
13
  "acorn": "^8.7.1",
14
14
  "acorn-import-assertions": "^1.7.6",
15
15
  "browserslist": "^4.14.5",
16
16
  "chrome-trace-event": "^1.0.2",
17
- "enhanced-resolve": "^5.10.0",
17
+ "enhanced-resolve": "^5.13.0",
18
18
  "es-module-lexer": "^1.2.1",
19
19
  "eslint-scope": "5.1.1",
20
20
  "events": "^3.2.0",
@@ -24,7 +24,7 @@
24
24
  "loader-runner": "^4.2.0",
25
25
  "mime-types": "^2.1.27",
26
26
  "neo-async": "^2.6.2",
27
- "schema-utils": "^3.1.0",
27
+ "schema-utils": "^3.1.2",
28
28
  "tapable": "^2.1.1",
29
29
  "terser-webpack-plugin": "^5.3.7",
30
30
  "watchpack": "^2.4.0",
@@ -38,10 +38,9 @@
38
38
  "devDependencies": {
39
39
  "@babel/core": "^7.21.4",
40
40
  "@babel/preset-react": "^7.18.6",
41
- "@types/es-module-lexer": "^0.4.1",
42
41
  "@types/jest": "^29.5.0",
43
42
  "@types/node": "^18.15.11",
44
- "assemblyscript": "^0.25.2",
43
+ "assemblyscript": "^0.27.2",
45
44
  "babel-loader": "^8.1.0",
46
45
  "benchmark": "^2.1.4",
47
46
  "bundle-loader": "^0.5.6",
@@ -57,7 +56,7 @@
57
56
  "eslint": "^8.38.0",
58
57
  "eslint-config-prettier": "^8.1.0",
59
58
  "eslint-plugin-jest": "^27.2.1",
60
- "eslint-plugin-jsdoc": "^41.1.1",
59
+ "eslint-plugin-jsdoc": "^43.0.5",
61
60
  "eslint-plugin-node": "^11.0.0",
62
61
  "eslint-plugin-prettier": "^4.2.1",
63
62
  "file-loader": "^6.0.0",
@@ -71,13 +70,12 @@
71
70
  "jest-cli": "^29.5.0",
72
71
  "jest-diff": "^29.5.0",
73
72
  "jest-environment-node": "^29.5.0",
74
- "jest-junit": "^15.0.0",
73
+ "jest-junit": "^16.0.0",
75
74
  "json-loader": "^0.5.7",
76
75
  "json5": "^2.1.3",
77
76
  "less": "^4.0.0",
78
77
  "less-loader": "^8.0.0",
79
78
  "lint-staged": "^13.2.1",
80
- "loader-utils": "^2.0.3",
81
79
  "lodash": "^4.17.19",
82
80
  "lodash-es": "^4.17.15",
83
81
  "memfs": "^3.5.0",
@@ -97,13 +95,13 @@
97
95
  "simple-git": "^3.17.0",
98
96
  "strip-ansi": "^6.0.0",
99
97
  "style-loader": "^2.0.0",
100
- "terser": "^5.16.9",
98
+ "terser": "^5.17.0",
101
99
  "toml": "^3.0.0",
102
100
  "tooling": "webpack/tooling#v1.22.1",
103
101
  "ts-loader": "^9.4.2",
104
- "typescript": "^4.8.4",
102
+ "typescript": "^5.0.4",
105
103
  "url-loader": "^4.1.0",
106
- "wast-loader": "^1.11.0",
104
+ "wast-loader": "^1.11.5",
107
105
  "webassembly-feature": "1.3.0",
108
106
  "webpack-cli": "^5.0.1",
109
107
  "xxhashjs": "^0.2.2",
@@ -150,7 +148,7 @@
150
148
  "pretest": "yarn lint",
151
149
  "prelint": "yarn setup",
152
150
  "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",
153
- "code-lint": "eslint . --ext '.js' --cache",
151
+ "code-lint": "eslint --cache .",
154
152
  "type-lint": "tsc",
155
153
  "typings-test": "tsc -p tsconfig.types.test.json",
156
154
  "module-typings-test": "tsc -p tsconfig.module.test.json",
@@ -159,9 +157,8 @@
159
157
  "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",
160
158
  "fix": "yarn code-lint --fix && yarn special-lint-fix && yarn pretty-lint-fix",
161
159
  "prepare": "husky install",
162
- "pretty-lint-base": "prettier \"*.{ts,json,yml,yaml,md}\" \"{setup,lib,bin,hot,benchmark,tooling,schemas}/**/*.json\" \"examples/*.md\"",
163
- "pretty-lint-base-all": "yarn pretty-lint-base \"*.js\" \"{setup,lib,bin,hot,benchmark,tooling,schemas}/**/*.js\" \"module.d.ts\" \"test/*.js\" \"test/helpers/*.js\" \"test/{configCases,watchCases,statsCases,hotCases,benchmarkCases}/**/webpack.config.js\" \"examples/**/webpack.config.js\"",
164
- "pretty-lint-fix": "yarn pretty-lint-base-all --loglevel warn --write",
160
+ "pretty-lint-base": "prettier --cache .",
161
+ "pretty-lint-fix": "yarn pretty-lint-base --loglevel warn --write",
165
162
  "pretty-lint": "yarn pretty-lint-base --check",
166
163
  "yarn-lint": "yarn-deduplicate --fail --list -s highest yarn.lock",
167
164
  "yarn-lint-fix": "yarn-deduplicate -s highest yarn.lock",
@@ -179,11 +176,11 @@
179
176
  "cover:report": "nyc report -t coverage"
180
177
  },
181
178
  "lint-staged": {
182
- "*.js|{lib,setup,bin,hot,tooling,schemas}/**/*.js|test/*.js|{test,examples}/**/webpack.config.js}": [
183
- "eslint --cache"
179
+ "*.{js,cjs,mjs}": [
180
+ "eslint --cache --fix"
184
181
  ],
185
- "*.{ts,json,yml,yaml,md}|examples/*.md": [
186
- "prettier --check"
182
+ "*": [
183
+ "prettier --cache --ignore-unknown"
187
184
  ],
188
185
  "*.md|{.github,benchmark,bin,examples,hot,lib,schemas,setup,tooling}/**/*.{md,yml,yaml,js,json}": [
189
186
  "cspell"