@rsbuild/core 1.1.0 → 1.1.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.
Files changed (35) hide show
  1. package/compiled/css-loader/index.js +46 -46
  2. package/compiled/html-rspack-plugin/index.js +14 -14
  3. package/compiled/http-proxy-middleware/index.d.ts +4 -3
  4. package/compiled/postcss/index.js +120 -114
  5. package/compiled/postcss/package.json +1 -1
  6. package/compiled/postcss-load-config/index.js +10 -10
  7. package/compiled/postcss-loader/index.js +11 -11
  8. package/compiled/rsbuild-dev-middleware/index.js +64 -101
  9. package/compiled/rsbuild-dev-middleware/package.json +1 -1
  10. package/compiled/rspack-manifest-plugin/index.js +4 -4
  11. package/dist/client/hmr.js +195 -213
  12. package/dist/client/overlay.js +88 -90
  13. package/dist/ignoreCssLoader.cjs +65 -29
  14. package/dist/index.cjs +11029 -13676
  15. package/dist/index.js +10685 -13616
  16. package/dist/transformLoader.cjs +77 -51
  17. package/dist/transformRawLoader.cjs +105 -60
  18. package/dist-types/config.d.ts +1 -1
  19. package/dist-types/configChain.d.ts +1 -1
  20. package/dist-types/helpers/index.d.ts +3 -1
  21. package/dist-types/logger.d.ts +1 -1
  22. package/dist-types/plugins/lazyCompilation.d.ts +1 -1
  23. package/dist-types/provider/createCompiler.d.ts +1 -1
  24. package/dist-types/server/compilerDevMiddleware.d.ts +4 -3
  25. package/dist-types/server/devServer.d.ts +1 -1
  26. package/dist-types/server/helper.d.ts +1 -0
  27. package/dist-types/server/httpServer.d.ts +1 -1
  28. package/dist-types/server/middlewares.d.ts +2 -2
  29. package/dist-types/server/prodServer.d.ts +1 -1
  30. package/dist-types/types/config.d.ts +7 -7
  31. package/dist-types/types/hooks.d.ts +1 -1
  32. package/dist-types/types/plugin.d.ts +2 -2
  33. package/dist-types/types/rspack.d.ts +1 -1
  34. package/dist-types/types/thirdParty.d.ts +1 -1
  35. package/package.json +11 -10
@@ -1,22 +1,22 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 9284: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 7890: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const loader = __nccwpck_require__(5760);
5
+ const loader = __nccwpck_require__(4436);
6
6
  module.exports = loader.default;
7
7
  module.exports.defaultGetLocalIdent =
8
- __nccwpck_require__(9178).defaultGetLocalIdent;
8
+ __nccwpck_require__(3193).defaultGetLocalIdent;
9
9
  },
10
- 5760: (__unused_webpack_module, exports, __nccwpck_require__) => {
10
+ 4436: (__unused_webpack_module, exports, __nccwpck_require__) => {
11
11
  "use strict";
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports["default"] = loader;
14
14
  var _postcss = _interopRequireDefault(__nccwpck_require__(9961));
15
- var _package = _interopRequireDefault(__nccwpck_require__(3360));
15
+ var _package = _interopRequireDefault(__nccwpck_require__(8505));
16
16
  var _semver = { satisfies: () => true };
17
- var _options = _interopRequireDefault(__nccwpck_require__(7377));
18
- var _plugins = __nccwpck_require__(2750);
19
- var _utils = __nccwpck_require__(9178);
17
+ var _options = _interopRequireDefault(__nccwpck_require__(116));
18
+ var _plugins = __nccwpck_require__(4660);
19
+ var _utils = __nccwpck_require__(3193);
20
20
  function _interopRequireDefault(obj) {
21
21
  return obj && obj.__esModule ? obj : { default: obj };
22
22
  }
@@ -243,7 +243,7 @@
243
243
  callback(null, `${importCode}${moduleCode}${exportCode}`);
244
244
  }
245
245
  },
246
- 2750: (__unused_webpack_module, exports, __nccwpck_require__) => {
246
+ 4660: (__unused_webpack_module, exports, __nccwpck_require__) => {
247
247
  "use strict";
248
248
  Object.defineProperty(exports, "__esModule", { value: true });
249
249
  Object.defineProperty(exports, "icssParser", {
@@ -265,22 +265,22 @@
265
265
  },
266
266
  });
267
267
  var _postcssImportParser = _interopRequireDefault(
268
- __nccwpck_require__(2468),
268
+ __nccwpck_require__(2420),
269
269
  );
270
270
  var _postcssIcssParser = _interopRequireDefault(
271
- __nccwpck_require__(7024),
271
+ __nccwpck_require__(1124),
272
272
  );
273
- var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(5670));
273
+ var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(411));
274
274
  function _interopRequireDefault(obj) {
275
275
  return obj && obj.__esModule ? obj : { default: obj };
276
276
  }
277
277
  },
278
- 7024: (__unused_webpack_module, exports, __nccwpck_require__) => {
278
+ 1124: (__unused_webpack_module, exports, __nccwpck_require__) => {
279
279
  "use strict";
280
280
  Object.defineProperty(exports, "__esModule", { value: true });
281
281
  exports["default"] = void 0;
282
- var _icssUtils = __nccwpck_require__(8406);
283
- var _utils = __nccwpck_require__(9178);
282
+ var _icssUtils = __nccwpck_require__(5707);
283
+ var _utils = __nccwpck_require__(3193);
284
284
  const plugin = (options = {}) => ({
285
285
  postcssPlugin: "postcss-icss-parser",
286
286
  async OnceExit(root) {
@@ -379,14 +379,14 @@
379
379
  plugin.postcss = true;
380
380
  var _default = (exports["default"] = plugin);
381
381
  },
382
- 2468: (__unused_webpack_module, exports, __nccwpck_require__) => {
382
+ 2420: (__unused_webpack_module, exports, __nccwpck_require__) => {
383
383
  "use strict";
384
384
  Object.defineProperty(exports, "__esModule", { value: true });
385
385
  exports["default"] = void 0;
386
386
  var _postcssValueParser = _interopRequireDefault(
387
387
  __nccwpck_require__(7555),
388
388
  );
389
- var _utils = __nccwpck_require__(9178);
389
+ var _utils = __nccwpck_require__(3193);
390
390
  function _interopRequireDefault(obj) {
391
391
  return obj && obj.__esModule ? obj : { default: obj };
392
392
  }
@@ -691,14 +691,14 @@
691
691
  plugin.postcss = true;
692
692
  var _default = (exports["default"] = plugin);
693
693
  },
694
- 5670: (__unused_webpack_module, exports, __nccwpck_require__) => {
694
+ 411: (__unused_webpack_module, exports, __nccwpck_require__) => {
695
695
  "use strict";
696
696
  Object.defineProperty(exports, "__esModule", { value: true });
697
697
  exports["default"] = void 0;
698
698
  var _postcssValueParser = _interopRequireDefault(
699
699
  __nccwpck_require__(7555),
700
700
  );
701
- var _utils = __nccwpck_require__(9178);
701
+ var _utils = __nccwpck_require__(3193);
702
702
  function _interopRequireDefault(obj) {
703
703
  return obj && obj.__esModule ? obj : { default: obj };
704
704
  }
@@ -1041,7 +1041,7 @@
1041
1041
  plugin.postcss = true;
1042
1042
  var _default = (exports["default"] = plugin);
1043
1043
  },
1044
- 9178: (__unused_webpack_module, exports, __nccwpck_require__) => {
1044
+ 3193: (__unused_webpack_module, exports, __nccwpck_require__) => {
1045
1045
  "use strict";
1046
1046
  Object.defineProperty(exports, "__esModule", { value: true });
1047
1047
  exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
@@ -1074,16 +1074,16 @@
1074
1074
  var _url = __nccwpck_require__(7310);
1075
1075
  var _path = _interopRequireDefault(__nccwpck_require__(1017));
1076
1076
  var _postcssModulesValues = _interopRequireDefault(
1077
- __nccwpck_require__(978),
1077
+ __nccwpck_require__(5165),
1078
1078
  );
1079
1079
  var _postcssModulesLocalByDefault = _interopRequireDefault(
1080
- __nccwpck_require__(8480),
1080
+ __nccwpck_require__(5419),
1081
1081
  );
1082
1082
  var _postcssModulesExtractImports = _interopRequireDefault(
1083
- __nccwpck_require__(2932),
1083
+ __nccwpck_require__(5248),
1084
1084
  );
1085
1085
  var _postcssModulesScope = _interopRequireDefault(
1086
- __nccwpck_require__(8084),
1086
+ __nccwpck_require__(5787),
1087
1087
  );
1088
1088
  function _interopRequireDefault(obj) {
1089
1089
  return obj && obj.__esModule ? obj : { default: obj };
@@ -2276,7 +2276,7 @@
2276
2276
  cssesc.version = "3.0.0";
2277
2277
  module.exports = cssesc;
2278
2278
  },
2279
- 5198: (module) => {
2279
+ 611: (module) => {
2280
2280
  const createImports = (imports, postcss, mode = "rule") =>
2281
2281
  Object.keys(imports).map((path) => {
2282
2282
  const aliases = imports[path];
@@ -2328,7 +2328,7 @@
2328
2328
  ];
2329
2329
  module.exports = createICSSRules;
2330
2330
  },
2331
- 680: (module) => {
2331
+ 9727: (module) => {
2332
2332
  const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
2333
2333
  const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
2334
2334
  const getDeclsObject = (rule) => {
@@ -2386,11 +2386,11 @@
2386
2386
  };
2387
2387
  module.exports = extractICSS;
2388
2388
  },
2389
- 8406: (module, __unused_webpack_exports, __nccwpck_require__) => {
2390
- const replaceValueSymbols = __nccwpck_require__(7797);
2391
- const replaceSymbols = __nccwpck_require__(9607);
2392
- const extractICSS = __nccwpck_require__(680);
2393
- const createICSSRules = __nccwpck_require__(5198);
2389
+ 5707: (module, __unused_webpack_exports, __nccwpck_require__) => {
2390
+ const replaceValueSymbols = __nccwpck_require__(9450);
2391
+ const replaceSymbols = __nccwpck_require__(5058);
2392
+ const extractICSS = __nccwpck_require__(9727);
2393
+ const createICSSRules = __nccwpck_require__(611);
2394
2394
  module.exports = {
2395
2395
  replaceValueSymbols,
2396
2396
  replaceSymbols,
@@ -2398,8 +2398,8 @@
2398
2398
  createICSSRules,
2399
2399
  };
2400
2400
  },
2401
- 9607: (module, __unused_webpack_exports, __nccwpck_require__) => {
2402
- const replaceValueSymbols = __nccwpck_require__(7797);
2401
+ 5058: (module, __unused_webpack_exports, __nccwpck_require__) => {
2402
+ const replaceValueSymbols = __nccwpck_require__(9450);
2403
2403
  const replaceSymbols = (css, replacements) => {
2404
2404
  css.walk((node) => {
2405
2405
  if (node.type === "decl" && node.value) {
@@ -2422,7 +2422,7 @@
2422
2422
  };
2423
2423
  module.exports = replaceSymbols;
2424
2424
  },
2425
- 7797: (module) => {
2425
+ 9450: (module) => {
2426
2426
  const matchValueName = /[$]?[\w-]+/g;
2427
2427
  const replaceValueSymbols = (value, replacements) => {
2428
2428
  let matches;
@@ -2440,8 +2440,8 @@
2440
2440
  };
2441
2441
  module.exports = replaceValueSymbols;
2442
2442
  },
2443
- 2932: (module, __unused_webpack_exports, __nccwpck_require__) => {
2444
- const topologicalSort = __nccwpck_require__(3423);
2443
+ 5248: (module, __unused_webpack_exports, __nccwpck_require__) => {
2444
+ const topologicalSort = __nccwpck_require__(4726);
2445
2445
  const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
2446
2446
  const icssImport = /^:import\((?:"([^"]+)"|'([^']+)')\)/;
2447
2447
  const VISITED_MARKER = 1;
@@ -2587,7 +2587,7 @@
2587
2587
  };
2588
2588
  module.exports.postcss = true;
2589
2589
  },
2590
- 3423: (module) => {
2590
+ 4726: (module) => {
2591
2591
  const PERMANENT_MARKER = 2;
2592
2592
  const TEMPORARY_MARKER = 1;
2593
2593
  function createError(node, graph) {
@@ -2636,11 +2636,11 @@
2636
2636
  }
2637
2637
  module.exports = topologicalSort;
2638
2638
  },
2639
- 8480: (module, __unused_webpack_exports, __nccwpck_require__) => {
2639
+ 5419: (module, __unused_webpack_exports, __nccwpck_require__) => {
2640
2640
  "use strict";
2641
2641
  const selectorParser = __nccwpck_require__(7269);
2642
2642
  const valueParser = __nccwpck_require__(7555);
2643
- const { extractICSS } = __nccwpck_require__(8406);
2643
+ const { extractICSS } = __nccwpck_require__(5707);
2644
2644
  const isSpacing = (node) =>
2645
2645
  node.type === "combinator" && node.value === " ";
2646
2646
  function normalizeNodeArray(nodes) {
@@ -3151,7 +3151,7 @@
3151
3151
  };
3152
3152
  module.exports.postcss = true;
3153
3153
  },
3154
- 8084: (module, __unused_webpack_exports, __nccwpck_require__) => {
3154
+ 5787: (module, __unused_webpack_exports, __nccwpck_require__) => {
3155
3155
  "use strict";
3156
3156
  const selectorParser = __nccwpck_require__(7269);
3157
3157
  const hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -3458,9 +3458,9 @@
3458
3458
  };
3459
3459
  module.exports = plugin;
3460
3460
  },
3461
- 978: (module, __unused_webpack_exports, __nccwpck_require__) => {
3461
+ 5165: (module, __unused_webpack_exports, __nccwpck_require__) => {
3462
3462
  "use strict";
3463
- const ICSSUtils = __nccwpck_require__(8406);
3463
+ const ICSSUtils = __nccwpck_require__(5707);
3464
3464
  const matchImports =
3465
3465
  /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
3466
3466
  const matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/;
@@ -7968,16 +7968,16 @@
7968
7968
  "use strict";
7969
7969
  module.exports = require("util");
7970
7970
  },
7971
- 7377: (module) => {
7971
+ 116: (module) => {
7972
7972
  "use strict";
7973
7973
  module.exports = JSON.parse(
7974
7974
  '{"title":"CSS Loader options","additionalProperties":false,"properties":{"url":{"description":"Allows to enables/disables `url()`/`image-set()` functions handling.","link":"https://github.com/webpack-contrib/css-loader#url","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"import":{"description":"Allows to enables/disables `@import` at-rules handling.","link":"https://github.com/webpack-contrib/css-loader#import","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"modules":{"description":"Allows to enable/disable CSS Modules or ICSS and setup configuration.","link":"https://github.com/webpack-contrib/css-loader#modules","anyOf":[{"type":"boolean"},{"enum":["local","global","pure","icss"]},{"type":"object","additionalProperties":false,"properties":{"auto":{"description":"Allows auto enable CSS modules based on filename.","link":"https://github.com/webpack-contrib/css-loader#auto","anyOf":[{"instanceof":"RegExp"},{"instanceof":"Function"},{"type":"boolean"}]},"mode":{"description":"Setup `mode` option.","link":"https://github.com/webpack-contrib/css-loader#mode","anyOf":[{"enum":["local","global","pure","icss"]},{"instanceof":"Function"}]},"localIdentName":{"description":"Allows to configure the generated local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentname","type":"string","minLength":1},"localIdentContext":{"description":"Allows to redefine basic loader context for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentcontext","type":"string","minLength":1},"localIdentHashSalt":{"description":"Allows to add custom hash to generate more unique classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashsalt","type":"string","minLength":1},"localIdentHashFunction":{"description":"Allows to specify hash function to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashfunction","type":"string","minLength":1},"localIdentHashDigest":{"description":"Allows to specify hash digest to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigest","type":"string","minLength":1},"localIdentHashDigestLength":{"description":"Allows to specify hash digest length to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigestlength","type":"number"},"hashStrategy":{"description":"Allows to specify should localName be used when computing the hash.","link":"https://github.com/webpack-contrib/css-loader#hashstrategy","enum":["resource-path-and-local-name","minimal-subset"]},"localIdentRegExp":{"description":"Allows to specify custom RegExp for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentregexp","anyOf":[{"type":"string","minLength":1},{"instanceof":"RegExp"}]},"getLocalIdent":{"description":"Allows to specify a function to generate the classname.","link":"https://github.com/webpack-contrib/css-loader#getlocalident","instanceof":"Function"},"namedExport":{"description":"Enables/disables ES modules named export for locals.","link":"https://github.com/webpack-contrib/css-loader#namedexport","type":"boolean"},"exportGlobals":{"description":"Allows to export names from global class or id, so you can use that as local name.","link":"https://github.com/webpack-contrib/css-loader#exportglobals","type":"boolean"},"exportLocalsConvention":{"description":"Style of exported classnames.","link":"https://github.com/webpack-contrib/css-loader#localsconvention","anyOf":[{"enum":["asIs","as-is","camelCase","camel-case","camelCaseOnly","camel-case-only","dashes","dashesOnly","dashes-only"]},{"instanceof":"Function"}]},"exportOnlyLocals":{"description":"Export only locals.","link":"https://github.com/webpack-contrib/css-loader#exportonlylocals","type":"boolean"},"getJSON":{"description":"Allows outputting of CSS modules mapping through a callback.","link":"https://github.com/webpack-contrib/css-loader#getJSON","instanceof":"Function"}}}]},"sourceMap":{"description":"Allows to enable/disable source maps.","link":"https://github.com/webpack-contrib/css-loader#sourcemap","type":"boolean"},"importLoaders":{"description":"Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.","link":"https://github.com/webpack-contrib/css-loader#importloaders","anyOf":[{"type":"boolean"},{"type":"string"},{"type":"integer"}]},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"exportType":{"description":"Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).","link":"https://github.com/webpack-contrib/css-loader#exporttype","enum":["array","string","css-style-sheet"]}},"type":"object"}',
7975
7975
  );
7976
7976
  },
7977
- 3360: (module) => {
7977
+ 8505: (module) => {
7978
7978
  "use strict";
7979
7979
  module.exports = JSON.parse(
7980
- '{"name":"postcss","version":"8.4.47","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.1.0","source-map-js":"^1.2.1"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
7980
+ '{"name":"postcss","version":"8.4.48","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.1.1","source-map-js":"^1.2.1"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
7981
7981
  );
7982
7982
  },
7983
7983
  };
@@ -8003,6 +8003,6 @@
8003
8003
  }
8004
8004
  if (typeof __nccwpck_require__ !== "undefined")
8005
8005
  __nccwpck_require__.ab = __dirname + "/";
8006
- var __webpack_exports__ = __nccwpck_require__(9284);
8006
+ var __webpack_exports__ = __nccwpck_require__(7890);
8007
8007
  module.exports = __webpack_exports__;
8008
8008
  })();
@@ -1,8 +1,8 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 937: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 452: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const { HtmlWebpackChildCompiler } = __nccwpck_require__(107);
5
+ const { HtmlWebpackChildCompiler } = __nccwpck_require__(48);
6
6
  const compilerMap = new WeakMap();
7
7
  class CachedChildCompilation {
8
8
  constructor(compiler) {
@@ -304,7 +304,7 @@
304
304
  }
305
305
  module.exports = { CachedChildCompilation };
306
306
  },
307
- 107: (module) => {
307
+ 48: (module) => {
308
308
  "use strict";
309
309
  class HtmlWebpackChildCompiler {
310
310
  constructor(templates) {
@@ -473,7 +473,7 @@
473
473
  }
474
474
  module.exports = { HtmlWebpackChildCompiler };
475
475
  },
476
- 501: (module) => {
476
+ 286: (module) => {
477
477
  "use strict";
478
478
  module.exports = {};
479
479
  module.exports.none = (chunks) => chunks;
@@ -492,7 +492,7 @@
492
492
  };
493
493
  module.exports.auto = module.exports.none;
494
494
  },
495
- 364: (module) => {
495
+ 314: (module) => {
496
496
  "use strict";
497
497
  module.exports = function (err) {
498
498
  return {
@@ -513,7 +513,7 @@
513
513
  };
514
514
  };
515
515
  },
516
- 620: (module, __unused_webpack_exports, __nccwpck_require__) => {
516
+ 384: (module, __unused_webpack_exports, __nccwpck_require__) => {
517
517
  "use strict";
518
518
  const { AsyncSeriesWaterfallHook } = __nccwpck_require__(348);
519
519
  const htmlWebpackPluginHooksMap = new WeakMap();
@@ -539,7 +539,7 @@
539
539
  }
540
540
  module.exports = { getHtmlRspackPluginHooks };
541
541
  },
542
- 446: (module) => {
542
+ 641: (module) => {
543
543
  const voidTags = [
544
544
  "area",
545
545
  "base",
@@ -607,19 +607,19 @@
607
607
  htmlTagObjectToString,
608
608
  };
609
609
  },
610
- 611: (module, __unused_webpack_exports, __nccwpck_require__) => {
610
+ 20: (module, __unused_webpack_exports, __nccwpck_require__) => {
611
611
  "use strict";
612
612
  const promisify = __nccwpck_require__(837).promisify;
613
613
  const vm = __nccwpck_require__(144);
614
614
  const fs = __nccwpck_require__(147);
615
615
  const path = __nccwpck_require__(17);
616
- const { CachedChildCompilation } = __nccwpck_require__(937);
616
+ const { CachedChildCompilation } = __nccwpck_require__(452);
617
617
  const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
618
- __nccwpck_require__(446);
619
- const prettyError = __nccwpck_require__(364);
620
- const chunkSorter = __nccwpck_require__(501);
618
+ __nccwpck_require__(641);
619
+ const prettyError = __nccwpck_require__(314);
620
+ const chunkSorter = __nccwpck_require__(286);
621
621
  const getHtmlRspackPluginHooks =
622
- __nccwpck_require__(620).getHtmlRspackPluginHooks;
622
+ __nccwpck_require__(384).getHtmlRspackPluginHooks;
623
623
  class HtmlRspackPlugin {
624
624
  constructor(userOptions = {}) {
625
625
  this.version = HtmlRspackPlugin.version;
@@ -1578,6 +1578,6 @@
1578
1578
  }
1579
1579
  if (typeof __nccwpck_require__ !== "undefined")
1580
1580
  __nccwpck_require__.ab = __dirname + "/";
1581
- var __webpack_exports__ = __nccwpck_require__(611);
1581
+ var __webpack_exports__ = __nccwpck_require__(20);
1582
1582
  module.exports = __webpack_exports__;
1583
1583
  })();
@@ -253,11 +253,12 @@ declare namespace Server {
253
253
  * https://github.com/DefinitelyTyped/DefinitelyTyped/blob/6f529c6c67a447190f86bfbf894d1061e41e07b7/types/http-proxy-middleware/index.d.ts
254
254
  */
255
255
 
256
- interface Request extends express.Request {
256
+ interface Request extends http.IncomingMessage {
257
257
  }
258
- interface Response extends express.Response {
258
+ interface Response extends http.ServerResponse {
259
259
  }
260
- interface RequestHandler extends express.RequestHandler {
260
+ interface RequestHandler {
261
+ (req: Request, res: Response, next?: (err?: any) => void): void | Promise<void>;
261
262
  upgrade?: (req: Request, socket: net.Socket, head: any) => void;
262
263
  }
263
264
  declare type Filter = string | string[] | ((pathname: string, req: Request) => boolean);