@rsbuild/core 1.0.3 → 1.0.5

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.
@@ -1,17 +1,17 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 709: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(354)["default"];
4
+ 562: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(373)["default"];
6
6
  },
7
- 354: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 373: (__unused_webpack_module, exports, __nccwpck_require__) => {
8
8
  var __webpack_unused_export__;
9
9
  __webpack_unused_export__ = { value: true };
10
10
  exports["default"] = loader;
11
11
  var _path = _interopRequireDefault(__nccwpck_require__(17));
12
- var _package = _interopRequireDefault(__nccwpck_require__(441));
13
- var _options = _interopRequireDefault(__nccwpck_require__(754));
14
- var _utils = __nccwpck_require__(522);
12
+ var _package = _interopRequireDefault(__nccwpck_require__(360));
13
+ var _options = _interopRequireDefault(__nccwpck_require__(763));
14
+ var _utils = __nccwpck_require__(273);
15
15
  function _interopRequireDefault(obj) {
16
16
  return obj && obj.__esModule ? obj : { default: obj };
17
17
  }
@@ -189,7 +189,7 @@
189
189
  callback(null, result.css, map, { ast });
190
190
  }
191
191
  },
192
- 522: (module, exports, __nccwpck_require__) => {
192
+ 273: (module, exports, __nccwpck_require__) => {
193
193
  module = __nccwpck_require__.nmd(module);
194
194
  Object.defineProperty(exports, "__esModule", { value: true });
195
195
  exports.exec = exec;
@@ -694,14 +694,14 @@
694
694
  310: (module) => {
695
695
  module.exports = require("url");
696
696
  },
697
- 754: (module) => {
697
+ 763: (module) => {
698
698
  module.exports = JSON.parse(
699
699
  '{"title":"PostCSS Loader options","type":"object","properties":{"postcssOptions":{"description":"Options to pass through to `Postcss`.","link":"https://github.com/webpack-contrib/postcss-loader#postcssOptions","anyOf":[{"type":"object","additionalProperties":true,"properties":{"config":{"description":"Allows to specify PostCSS config path.","link":"https://github.com/webpack-contrib/postcss-loader#config","anyOf":[{"description":"Allows to specify the path to the configuration file","type":"string"},{"description":"Enables/Disables autoloading config","type":"boolean"}]}}},{"instanceof":"Function"}]},"execute":{"description":"Enables/Disables PostCSS parser support in \'CSS-in-JS\'.","link":"https://github.com/webpack-contrib/postcss-loader#execute","type":"boolean"},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/postcss-loader#sourcemap","type":"boolean"},"implementation":{"description":"The implementation of postcss to use, instead of the locally installed version","link":"https://github.com/webpack-contrib/postcss-loader#implementation","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}',
700
700
  );
701
701
  },
702
- 441: (module) => {
702
+ 360: (module) => {
703
703
  module.exports = JSON.parse(
704
- '{"name":"postcss","version":"8.4.45","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.0.1","source-map-js":"^1.2.0"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
704
+ '{"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}}',
705
705
  );
706
706
  },
707
707
  };
@@ -739,6 +739,6 @@
739
739
  })();
740
740
  if (typeof __nccwpck_require__ !== "undefined")
741
741
  __nccwpck_require__.ab = __dirname + "/";
742
- var __webpack_exports__ = __nccwpck_require__(709);
742
+ var __webpack_exports__ = __nccwpck_require__(562);
743
743
  module.exports = __webpack_exports__;
744
744
  })();
@@ -4152,13 +4152,13 @@
4152
4152
  return a.start - b.start;
4153
4153
  }
4154
4154
  },
4155
- 618: (module, __unused_webpack_exports, __nccwpck_require__) => {
4156
- const middleware = __nccwpck_require__(25);
4157
- const getFilenameFromUrl = __nccwpck_require__(859);
4158
- const setupHooks = __nccwpck_require__(424);
4159
- const setupWriteToDisk = __nccwpck_require__(120);
4160
- const setupOutputFileSystem = __nccwpck_require__(49);
4161
- const ready = __nccwpck_require__(759);
4155
+ 657: (module, __unused_webpack_exports, __nccwpck_require__) => {
4156
+ const middleware = __nccwpck_require__(671);
4157
+ const getFilenameFromUrl = __nccwpck_require__(52);
4158
+ const setupHooks = __nccwpck_require__(74);
4159
+ const setupWriteToDisk = __nccwpck_require__(264);
4160
+ const setupOutputFileSystem = __nccwpck_require__(826);
4161
+ const ready = __nccwpck_require__(907);
4162
4162
  const noop = () => {};
4163
4163
  function wdm(compiler, options = {}) {
4164
4164
  const context = {
@@ -4213,15 +4213,15 @@
4213
4213
  }
4214
4214
  module.exports = wdm;
4215
4215
  },
4216
- 25: (module, __unused_webpack_exports, __nccwpck_require__) => {
4216
+ 671: (module, __unused_webpack_exports, __nccwpck_require__) => {
4217
4217
  const mrmime = __nccwpck_require__(802);
4218
4218
  const onFinishedStream = __nccwpck_require__(772);
4219
- const getFilenameFromUrl = __nccwpck_require__(859);
4219
+ const getFilenameFromUrl = __nccwpck_require__(52);
4220
4220
  const { setStatusCode, send, pipe, createReadStreamOrReadFileSync } =
4221
- __nccwpck_require__(414);
4222
- const ready = __nccwpck_require__(759);
4223
- const parseTokenList = __nccwpck_require__(956);
4224
- const memorize = __nccwpck_require__(99);
4221
+ __nccwpck_require__(163);
4222
+ const ready = __nccwpck_require__(907);
4223
+ const parseTokenList = __nccwpck_require__(819);
4224
+ const memorize = __nccwpck_require__(150);
4225
4225
  async function getEtag(stat) {
4226
4226
  const mtime = stat.mtime.getTime().toString(16);
4227
4227
  const size = stat.size.toString(16);
@@ -4300,7 +4300,7 @@
4300
4300
  return;
4301
4301
  }
4302
4302
  function sendError(status, options) {
4303
- const escapeHtml = __nccwpck_require__(119);
4303
+ const escapeHtml = __nccwpck_require__(158);
4304
4304
  const content = statuses[status] || String(status);
4305
4305
  const document = Buffer.from(
4306
4306
  `<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<title>Error</title>\n</head>\n<body>\n<pre>${escapeHtml(content)}</pre>\n</body>\n</html>`,
@@ -4602,7 +4602,7 @@
4602
4602
  }
4603
4603
  module.exports = wrapper;
4604
4604
  },
4605
- 414: (module) => {
4605
+ 163: (module) => {
4606
4606
  function setStatusCode(res, code) {
4607
4607
  if (typeof res.status === "function") {
4608
4608
  res.status(code);
@@ -4653,7 +4653,7 @@
4653
4653
  createReadStreamOrReadFileSync,
4654
4654
  };
4655
4655
  },
4656
- 119: (module) => {
4656
+ 158: (module) => {
4657
4657
  const matchHtmlRegExp = /["'&<>]/;
4658
4658
  function escapeHtml(string) {
4659
4659
  const str = `${string}`;
@@ -4697,12 +4697,12 @@
4697
4697
  }
4698
4698
  module.exports = escapeHtml;
4699
4699
  },
4700
- 859: (module, __unused_webpack_exports, __nccwpck_require__) => {
4700
+ 52: (module, __unused_webpack_exports, __nccwpck_require__) => {
4701
4701
  const path = __nccwpck_require__(17);
4702
4702
  const { parse } = __nccwpck_require__(310);
4703
4703
  const querystring = __nccwpck_require__(477);
4704
- const getPaths = __nccwpck_require__(90);
4705
- const memorize = __nccwpck_require__(99);
4704
+ const getPaths = __nccwpck_require__(275);
4705
+ const memorize = __nccwpck_require__(150);
4706
4706
  const memoizedParse = memorize(parse, undefined, (value) => {
4707
4707
  if (value.pathname) {
4708
4708
  value.pathname = decode(value.pathname);
@@ -4784,7 +4784,7 @@
4784
4784
  }
4785
4785
  module.exports = getFilenameFromUrl;
4786
4786
  },
4787
- 90: (module) => {
4787
+ 275: (module) => {
4788
4788
  function getPaths(context) {
4789
4789
  const { stats, options } = context;
4790
4790
  const childStats = stats.stats ? stats.stats : [stats];
@@ -4804,7 +4804,7 @@
4804
4804
  }
4805
4805
  module.exports = getPaths;
4806
4806
  },
4807
- 99: (module) => {
4807
+ 150: (module) => {
4808
4808
  const cacheStore = new WeakMap();
4809
4809
  function memorize(fn, { cache = new Map() } = {}, callback) {
4810
4810
  const memoized = (...arguments_) => {
@@ -4825,7 +4825,7 @@
4825
4825
  }
4826
4826
  module.exports = memorize;
4827
4827
  },
4828
- 956: (module) => {
4828
+ 819: (module) => {
4829
4829
  function parseTokenList(str) {
4830
4830
  let end = 0;
4831
4831
  let start = 0;
@@ -4857,7 +4857,7 @@
4857
4857
  }
4858
4858
  module.exports = parseTokenList;
4859
4859
  },
4860
- 759: (module) => {
4860
+ 907: (module) => {
4861
4861
  function ready(context, callback, req) {
4862
4862
  if (context.state) {
4863
4863
  callback(context.stats);
@@ -4871,7 +4871,7 @@
4871
4871
  }
4872
4872
  module.exports = ready;
4873
4873
  },
4874
- 424: (module) => {
4874
+ 74: (module) => {
4875
4875
  function setupHooks(context) {
4876
4876
  function invalid() {
4877
4877
  if (context.state) {
@@ -4902,7 +4902,7 @@
4902
4902
  }
4903
4903
  module.exports = setupHooks;
4904
4904
  },
4905
- 49: (module, __unused_webpack_exports, __nccwpck_require__) => {
4905
+ 826: (module, __unused_webpack_exports, __nccwpck_require__) => {
4906
4906
  const memfs = __nccwpck_require__(664);
4907
4907
  function setupOutputFileSystem(context) {
4908
4908
  let outputFileSystem;
@@ -4928,7 +4928,7 @@
4928
4928
  }
4929
4929
  module.exports = setupOutputFileSystem;
4930
4930
  },
4931
- 120: (module, __unused_webpack_exports, __nccwpck_require__) => {
4931
+ 264: (module, __unused_webpack_exports, __nccwpck_require__) => {
4932
4932
  const fs = __nccwpck_require__(147);
4933
4933
  const path = __nccwpck_require__(17);
4934
4934
  function setupWriteToDisk(context) {
@@ -5041,6 +5041,6 @@
5041
5041
  }
5042
5042
  if (typeof __nccwpck_require__ !== "undefined")
5043
5043
  __nccwpck_require__.ab = __dirname + "/";
5044
- var __webpack_exports__ = __nccwpck_require__(618);
5044
+ var __webpack_exports__ = __nccwpck_require__(657);
5045
5045
  module.exports = __webpack_exports__;
5046
5046
  })();
@@ -1,16 +1,16 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 967: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- const loader = __nccwpck_require__(205);
4
+ 639: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ const loader = __nccwpck_require__(325);
6
6
  module.exports = loader.default;
7
7
  },
8
- 205: (__unused_webpack_module, exports, __nccwpck_require__) => {
8
+ 325: (__unused_webpack_module, exports, __nccwpck_require__) => {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports["default"] = void 0;
11
11
  var _path = _interopRequireDefault(__nccwpck_require__(17));
12
- var _utils = __nccwpck_require__(220);
13
- var _options = _interopRequireDefault(__nccwpck_require__(434));
12
+ var _utils = __nccwpck_require__(439);
13
+ var _options = _interopRequireDefault(__nccwpck_require__(946));
14
14
  function _interopRequireDefault(obj) {
15
15
  return obj && obj.__esModule ? obj : { default: obj };
16
16
  }
@@ -104,7 +104,7 @@
104
104
  };
105
105
  var _default = (exports["default"] = loader);
106
106
  },
107
- 894: (module) => {
107
+ 3: (module) => {
108
108
  function isEqualLocals(a, b, isNamedExport) {
109
109
  if ((!a && b) || (a && !b)) {
110
110
  return false;
@@ -130,7 +130,7 @@
130
130
  }
131
131
  module.exports = isEqualLocals;
132
132
  },
133
- 220: (__unused_webpack_module, exports, __nccwpck_require__) => {
133
+ 439: (__unused_webpack_module, exports, __nccwpck_require__) => {
134
134
  Object.defineProperty(exports, "__esModule", { value: true });
135
135
  exports.getExportLazyStyleCode = getExportLazyStyleCode;
136
136
  exports.getExportStyleCode = getExportStyleCode;
@@ -151,7 +151,7 @@
151
151
  exports.getdomAPI = getdomAPI;
152
152
  exports.stringifyRequest = stringifyRequest;
153
153
  var _path = _interopRequireDefault(__nccwpck_require__(17));
154
- var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(894));
154
+ var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(3));
155
155
  function _interopRequireDefault(obj) {
156
156
  return obj && obj.__esModule ? obj : { default: obj };
157
157
  }
@@ -394,7 +394,7 @@
394
394
  17: (module) => {
395
395
  module.exports = require("path");
396
396
  },
397
- 434: (module) => {
397
+ 946: (module) => {
398
398
  module.exports = JSON.parse(
399
399
  '{"title":"Style Loader options","type":"object","properties":{"injectType":{"description":"Allows to setup how styles will be injected into DOM.","link":"https://github.com/webpack-contrib/style-loader#injecttype","enum":["styleTag","singletonStyleTag","autoStyleTag","lazyStyleTag","lazySingletonStyleTag","lazyAutoStyleTag","linkTag"]},"attributes":{"description":"Adds custom attributes to tag.","link":"https://github.com/webpack-contrib/style-loader#attributes","type":"object"},"insert":{"description":"Inserts `<style>`/`<link>` at the given position.","link":"https://github.com/webpack-contrib/style-loader#insert","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"base":{"description":"Sets module ID base for DLLPlugin.","link":"https://github.com/webpack-contrib/style-loader#base","type":"number"},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"styleTagTransform":{"description":"Transform tag and css when insert \'style\' tag into the DOM","link":"https://github.com/webpack-contrib/style-loader#styleTagTransform","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}',
400
400
  );
@@ -422,6 +422,6 @@
422
422
  }
423
423
  if (typeof __nccwpck_require__ !== "undefined")
424
424
  __nccwpck_require__.ab = __dirname + "/";
425
- var __webpack_exports__ = __nccwpck_require__(967);
425
+ var __webpack_exports__ = __nccwpck_require__(639);
426
426
  module.exports = __webpack_exports__;
427
427
  })();
@@ -158,8 +158,7 @@ var { HTMLElement = class {
158
158
  var ErrorOverlay = class extends HTMLElement {
159
159
  constructor(message) {
160
160
  var _root_querySelector;
161
- super();
162
- _define_property(this, "close", () => {
161
+ super(), _define_property(this, "close", () => {
163
162
  const remove = () => {
164
163
  var _this_parentNode;
165
164
  return (_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.removeChild(this);