@rsbuild/core 1.0.1-rc.3 → 1.0.1-rc.4

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,22 +1,22 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 3661: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 1668: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const loader = __nccwpck_require__(5995);
5
+ const loader = __nccwpck_require__(5288);
6
6
  module.exports = loader.default;
7
7
  module.exports.defaultGetLocalIdent =
8
- __nccwpck_require__(5007).defaultGetLocalIdent;
8
+ __nccwpck_require__(9049).defaultGetLocalIdent;
9
9
  },
10
- 5995: (__unused_webpack_module, exports, __nccwpck_require__) => {
10
+ 5288: (__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
15
  var _package = _interopRequireDefault(__nccwpck_require__(2321));
16
16
  var _semver = __nccwpck_require__(938);
17
- var _options = _interopRequireDefault(__nccwpck_require__(4540));
18
- var _plugins = __nccwpck_require__(8239);
19
- var _utils = __nccwpck_require__(5007);
17
+ var _options = _interopRequireDefault(__nccwpck_require__(9965));
18
+ var _plugins = __nccwpck_require__(7723);
19
+ var _utils = __nccwpck_require__(9049);
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
- 8239: (__unused_webpack_module, exports, __nccwpck_require__) => {
246
+ 7723: (__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__(3075),
268
+ __nccwpck_require__(5583),
269
269
  );
270
270
  var _postcssIcssParser = _interopRequireDefault(
271
- __nccwpck_require__(3533),
271
+ __nccwpck_require__(1789),
272
272
  );
273
- var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(6028));
273
+ var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(9758));
274
274
  function _interopRequireDefault(obj) {
275
275
  return obj && obj.__esModule ? obj : { default: obj };
276
276
  }
277
277
  },
278
- 3533: (__unused_webpack_module, exports, __nccwpck_require__) => {
278
+ 1789: (__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
282
  var _icssUtils = __nccwpck_require__(9598);
283
- var _utils = __nccwpck_require__(5007);
283
+ var _utils = __nccwpck_require__(9049);
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
- 3075: (__unused_webpack_module, exports, __nccwpck_require__) => {
382
+ 5583: (__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__(5007);
389
+ var _utils = __nccwpck_require__(9049);
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
- 6028: (__unused_webpack_module, exports, __nccwpck_require__) => {
694
+ 9758: (__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__(5007);
701
+ var _utils = __nccwpck_require__(9049);
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
- 5007: (__unused_webpack_module, exports, __nccwpck_require__) => {
1044
+ 9049: (__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;
@@ -7964,7 +7964,7 @@
7964
7964
  "use strict";
7965
7965
  module.exports = require("util");
7966
7966
  },
7967
- 4540: (module) => {
7967
+ 9965: (module) => {
7968
7968
  "use strict";
7969
7969
  module.exports = JSON.parse(
7970
7970
  '{"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"}',
@@ -7999,6 +7999,6 @@
7999
7999
  }
8000
8000
  if (typeof __nccwpck_require__ !== "undefined")
8001
8001
  __nccwpck_require__.ab = __dirname + "/";
8002
- var __webpack_exports__ = __nccwpck_require__(3661);
8002
+ var __webpack_exports__ = __nccwpck_require__(1668);
8003
8003
  module.exports = __webpack_exports__;
8004
8004
  })();
@@ -1,8 +1,8 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 11: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 335: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const { HtmlWebpackChildCompiler } = __nccwpck_require__(945);
5
+ const { HtmlWebpackChildCompiler } = __nccwpck_require__(221);
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
- 945: (module) => {
307
+ 221: (module) => {
308
308
  "use strict";
309
309
  class HtmlWebpackChildCompiler {
310
310
  constructor(templates) {
@@ -465,7 +465,7 @@
465
465
  }
466
466
  module.exports = { HtmlWebpackChildCompiler };
467
467
  },
468
- 6: (module) => {
468
+ 810: (module) => {
469
469
  "use strict";
470
470
  module.exports = {};
471
471
  module.exports.none = (chunks) => chunks;
@@ -484,7 +484,7 @@
484
484
  };
485
485
  module.exports.auto = module.exports.none;
486
486
  },
487
- 446: (module) => {
487
+ 640: (module) => {
488
488
  "use strict";
489
489
  module.exports = function (err) {
490
490
  return {
@@ -505,7 +505,7 @@
505
505
  };
506
506
  };
507
507
  },
508
- 652: (module, __unused_webpack_exports, __nccwpck_require__) => {
508
+ 349: (module, __unused_webpack_exports, __nccwpck_require__) => {
509
509
  "use strict";
510
510
  const { AsyncSeriesWaterfallHook } = __nccwpck_require__(348);
511
511
  const htmlWebpackPluginHooksMap = new WeakMap();
@@ -531,7 +531,7 @@
531
531
  }
532
532
  module.exports = { getHtmlRspackPluginHooks };
533
533
  },
534
- 20: (module) => {
534
+ 533: (module) => {
535
535
  const voidTags = [
536
536
  "area",
537
537
  "base",
@@ -599,19 +599,19 @@
599
599
  htmlTagObjectToString,
600
600
  };
601
601
  },
602
- 835: (module, __unused_webpack_exports, __nccwpck_require__) => {
602
+ 870: (module, __unused_webpack_exports, __nccwpck_require__) => {
603
603
  "use strict";
604
604
  const promisify = __nccwpck_require__(837).promisify;
605
605
  const vm = __nccwpck_require__(144);
606
606
  const fs = __nccwpck_require__(147);
607
607
  const path = __nccwpck_require__(17);
608
- const { CachedChildCompilation } = __nccwpck_require__(11);
608
+ const { CachedChildCompilation } = __nccwpck_require__(335);
609
609
  const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
610
- __nccwpck_require__(20);
611
- const prettyError = __nccwpck_require__(446);
612
- const chunkSorter = __nccwpck_require__(6);
610
+ __nccwpck_require__(533);
611
+ const prettyError = __nccwpck_require__(640);
612
+ const chunkSorter = __nccwpck_require__(810);
613
613
  const getHtmlRspackPluginHooks =
614
- __nccwpck_require__(652).getHtmlRspackPluginHooks;
614
+ __nccwpck_require__(349).getHtmlRspackPluginHooks;
615
615
  class HtmlRspackPlugin {
616
616
  constructor(userOptions = {}) {
617
617
  this.version = HtmlRspackPlugin.version;
@@ -1569,6 +1569,6 @@
1569
1569
  }
1570
1570
  if (typeof __nccwpck_require__ !== "undefined")
1571
1571
  __nccwpck_require__.ab = __dirname + "/";
1572
- var __webpack_exports__ = __nccwpck_require__(835);
1572
+ var __webpack_exports__ = __nccwpck_require__(870);
1573
1573
  module.exports = __webpack_exports__;
1574
1574
  })();
@@ -2,6 +2,7 @@ type Formatter = (input: string | number | null | undefined) => string
2
2
 
3
3
  interface Colors {
4
4
  isColorSupported: boolean
5
+
5
6
  reset: Formatter
6
7
  bold: Formatter
7
8
  dim: Formatter
@@ -10,6 +11,7 @@ interface Colors {
10
11
  inverse: Formatter
11
12
  hidden: Formatter
12
13
  strikethrough: Formatter
14
+
13
15
  black: Formatter
14
16
  red: Formatter
15
17
  green: Formatter
@@ -19,6 +21,7 @@ interface Colors {
19
21
  cyan: Formatter
20
22
  white: Formatter
21
23
  gray: Formatter
24
+
22
25
  bgBlack: Formatter
23
26
  bgRed: Formatter
24
27
  bgGreen: Formatter
@@ -27,6 +30,25 @@ interface Colors {
27
30
  bgMagenta: Formatter
28
31
  bgCyan: Formatter
29
32
  bgWhite: Formatter
33
+
34
+ blackBright: Formatter
35
+ redBright: Formatter
36
+ greenBright: Formatter
37
+ yellowBright: Formatter
38
+ blueBright: Formatter
39
+ magentaBright: Formatter
40
+ cyanBright: Formatter
41
+ whiteBright: Formatter
42
+
43
+ bgBlackBright: Formatter
44
+ bgRedBright: Formatter
45
+ bgGreenBright: Formatter
46
+ bgYellowBright: Formatter
47
+ bgBlueBright: Formatter
48
+ bgMagentaBright: Formatter
49
+ bgCyanBright: Formatter
50
+ bgWhiteBright: Formatter
51
+
30
52
  }
31
53
 
32
54
  declare const picocolors: Colors & { createColors: (enabled?: boolean) => Colors }
@@ -1,6 +1,6 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 701: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 78: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  let argv = process.argv || [],
5
5
  env = process.env;
6
6
  let isColorSupported =
@@ -60,6 +60,22 @@
60
60
  bgMagenta: init("", ""),
61
61
  bgCyan: init("", ""),
62
62
  bgWhite: init("", ""),
63
+ blackBright: init("", ""),
64
+ redBright: init("", ""),
65
+ greenBright: init("", ""),
66
+ yellowBright: init("", ""),
67
+ blueBright: init("", ""),
68
+ magentaBright: init("", ""),
69
+ cyanBright: init("", ""),
70
+ whiteBright: init("", ""),
71
+ bgBlackBright: init("", ""),
72
+ bgRedBright: init("", ""),
73
+ bgGreenBright: init("", ""),
74
+ bgYellowBright: init("", ""),
75
+ bgBlueBright: init("", ""),
76
+ bgMagentaBright: init("", ""),
77
+ bgCyanBright: init("", ""),
78
+ bgWhiteBright: init("", ""),
63
79
  };
64
80
  };
65
81
  module.exports = createColors();
@@ -92,6 +108,6 @@
92
108
  }
93
109
  if (typeof __nccwpck_require__ !== "undefined")
94
110
  __nccwpck_require__.ab = __dirname + "/";
95
- var __webpack_exports__ = __nccwpck_require__(701);
111
+ var __webpack_exports__ = __nccwpck_require__(78);
96
112
  module.exports = __webpack_exports__;
97
113
  })();
@@ -1,6 +1,6 @@
1
1
  ISC License
2
2
 
3
- Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov
3
+ Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov
4
4
 
5
5
  Permission to use, copy, modify, and/or distribute this software for any
6
6
  purpose with or without fee is hereby granted, provided that the above
@@ -1 +1 @@
1
- {"name":"picocolors","author":"Alexey Raspopov","version":"1.0.1","license":"ISC","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"picocolors","author":"Alexey Raspopov","version":"1.1.0","license":"ISC","types":"index.d.ts","type":"commonjs"}
@@ -1,6 +1,6 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 701: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 78: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  let argv = process.argv || [],
5
5
  env = process.env;
6
6
  let isColorSupported =
@@ -60,6 +60,22 @@
60
60
  bgMagenta: init("", ""),
61
61
  bgCyan: init("", ""),
62
62
  bgWhite: init("", ""),
63
+ blackBright: init("", ""),
64
+ redBright: init("", ""),
65
+ greenBright: init("", ""),
66
+ yellowBright: init("", ""),
67
+ blueBright: init("", ""),
68
+ magentaBright: init("", ""),
69
+ cyanBright: init("", ""),
70
+ whiteBright: init("", ""),
71
+ bgBlackBright: init("", ""),
72
+ bgRedBright: init("", ""),
73
+ bgGreenBright: init("", ""),
74
+ bgYellowBright: init("", ""),
75
+ bgBlueBright: init("", ""),
76
+ bgMagentaBright: init("", ""),
77
+ bgCyanBright: init("", ""),
78
+ bgWhiteBright: init("", ""),
63
79
  };
64
80
  };
65
81
  module.exports = createColors();
@@ -483,7 +499,7 @@
483
499
  },
484
500
  804: (module, __unused_webpack_exports, __nccwpck_require__) => {
485
501
  "use strict";
486
- let pico = __nccwpck_require__(701);
502
+ let pico = __nccwpck_require__(78);
487
503
  let terminalHighlight = __nccwpck_require__(205);
488
504
  class CssSyntaxError extends Error {
489
505
  constructor(message, line, column, source, file, plugin) {
@@ -3488,7 +3504,7 @@
3488
3504
  },
3489
3505
  205: (module, __unused_webpack_exports, __nccwpck_require__) => {
3490
3506
  "use strict";
3491
- let pico = __nccwpck_require__(701);
3507
+ let pico = __nccwpck_require__(78);
3492
3508
  let tokenizer = __nccwpck_require__(625);
3493
3509
  let Input;
3494
3510
  function registerInput(dependant) {
@@ -1,17 +1,17 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 2: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(440)["default"];
4
+ 105: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(449)["default"];
6
6
  },
7
- 440: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 449: (__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
12
  var _package = _interopRequireDefault(__nccwpck_require__(321));
13
- var _options = _interopRequireDefault(__nccwpck_require__(15));
14
- var _utils = __nccwpck_require__(877);
13
+ var _options = _interopRequireDefault(__nccwpck_require__(969));
14
+ var _utils = __nccwpck_require__(371);
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
- 877: (module, exports, __nccwpck_require__) => {
192
+ 371: (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,7 +694,7 @@
694
694
  310: (module) => {
695
695
  module.exports = require("url");
696
696
  },
697
- 15: (module) => {
697
+ 969: (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
  );
@@ -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__(2);
742
+ var __webpack_exports__ = __nccwpck_require__(105);
743
743
  module.exports = __webpack_exports__;
744
744
  })();
@@ -1,7 +1,7 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 179: (__unused_webpack_module, exports, __nccwpck_require__) => {
4
+ 107: (__unused_webpack_module, exports, __nccwpck_require__) => {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.transformFiles =
7
7
  exports.reduceChunk =
@@ -120,7 +120,7 @@
120
120
  .map(standardizeFilePaths);
121
121
  exports.transformFiles = transformFiles;
122
122
  },
123
- 801: (__unused_webpack_module, exports, __nccwpck_require__) => {
123
+ 428: (__unused_webpack_module, exports, __nccwpck_require__) => {
124
124
  Object.defineProperty(exports, "__esModule", { value: true });
125
125
  exports.normalModuleLoaderHook =
126
126
  exports.getCompilerHooks =
@@ -130,7 +130,7 @@
130
130
  const fs_1 = __nccwpck_require__(147);
131
131
  const path_1 = __nccwpck_require__(17);
132
132
  const lite_tapable_1 = __nccwpck_require__(348);
133
- const helpers_1 = __nccwpck_require__(179);
133
+ const helpers_1 = __nccwpck_require__(107);
134
134
  const compilerHookMap = new WeakMap();
135
135
  const getCompilerHooks = (compiler) => {
136
136
  let hooks = compilerHookMap.get(compiler);
@@ -312,7 +312,7 @@
312
312
  exports.getCompilerHooks =
313
313
  void 0;
314
314
  const path_1 = __nccwpck_require__(17);
315
- const hooks_1 = __nccwpck_require__(801);
315
+ const hooks_1 = __nccwpck_require__(428);
316
316
  Object.defineProperty(exports, "getCompilerHooks", {
317
317
  enumerable: true,
318
318
  get: function () {
@@ -8903,7 +8903,7 @@
8903
8903
  return childProcess.execFile(command, args, options, callback);
8904
8904
  };
8905
8905
  },
8906
- 701: (module, __unused_webpack_exports, __nccwpck_require__) => {
8906
+ 78: (module, __unused_webpack_exports, __nccwpck_require__) => {
8907
8907
  let argv = process.argv || [],
8908
8908
  env = process.env;
8909
8909
  let isColorSupported =
@@ -8963,6 +8963,22 @@
8963
8963
  bgMagenta: init("", ""),
8964
8964
  bgCyan: init("", ""),
8965
8965
  bgWhite: init("", ""),
8966
+ blackBright: init("", ""),
8967
+ redBright: init("", ""),
8968
+ greenBright: init("", ""),
8969
+ yellowBright: init("", ""),
8970
+ blueBright: init("", ""),
8971
+ magentaBright: init("", ""),
8972
+ cyanBright: init("", ""),
8973
+ whiteBright: init("", ""),
8974
+ bgBlackBright: init("", ""),
8975
+ bgRedBright: init("", ""),
8976
+ bgGreenBright: init("", ""),
8977
+ bgYellowBright: init("", ""),
8978
+ bgBlueBright: init("", ""),
8979
+ bgMagentaBright: init("", ""),
8980
+ bgCyanBright: init("", ""),
8981
+ bgWhiteBright: init("", ""),
8966
8982
  };
8967
8983
  };
8968
8984
  module.exports = createColors();
@@ -9164,7 +9180,7 @@
9164
9180
  "use strict";
9165
9181
  const fs = __nccwpck_require__(7147);
9166
9182
  const path = __nccwpck_require__(1017);
9167
- const { bold } = __nccwpck_require__(701);
9183
+ const { bold } = __nccwpck_require__(78);
9168
9184
  const Logger = __nccwpck_require__(1283);
9169
9185
  const viewer = __nccwpck_require__(7498);
9170
9186
  const utils = __nccwpck_require__(5554);
@@ -10506,7 +10522,7 @@
10506
10522
  const http = __nccwpck_require__(3685);
10507
10523
  const WebSocket = __nccwpck_require__(6057);
10508
10524
  const sirv = __nccwpck_require__(2486);
10509
- const { bold } = __nccwpck_require__(701);
10525
+ const { bold } = __nccwpck_require__(78);
10510
10526
  const Logger = __nccwpck_require__(1283);
10511
10527
  const analyzer = __nccwpck_require__(3377);
10512
10528
  const { open } = __nccwpck_require__(5554);
package/dist/index.cjs CHANGED
@@ -2297,7 +2297,7 @@ async function createContext(options, userConfig, bundlerType) {
2297
2297
  const rsbuildConfig = await withDefaultConfig(rootPath, userConfig);
2298
2298
  const cachePath = (0, import_node_path9.join)(rootPath, "node_modules", ".cache");
2299
2299
  return {
2300
- version: "1.0.1-rc.3",
2300
+ version: "1.0.1-rc.4",
2301
2301
  rootPath,
2302
2302
  distPath: "",
2303
2303
  cachePath,
@@ -8098,39 +8098,45 @@ var init_rsdoctor = __esm({
8098
8098
  return;
8099
8099
  }
8100
8100
  const isRspack = api.context.bundlerType === "rspack";
8101
+ const pluginName = isRspack ? "RsdoctorRspackPlugin" : "RsdoctorWebpackPlugin";
8102
+ const isRsdoctorPlugin = (plugin) => plugin?.isRsdoctorPlugin === true || plugin?.constructor?.name === pluginName;
8103
+ for (const config of bundlerConfigs) {
8104
+ const registered = config.plugins?.some(
8105
+ (plugin) => isRsdoctorPlugin(plugin)
8106
+ );
8107
+ if (registered) {
8108
+ return;
8109
+ }
8110
+ }
8101
8111
  const packageName = isRspack ? "@rsdoctor/rspack-plugin" : "@rsdoctor/webpack-plugin";
8102
- let module2;
8112
+ let packagePath;
8103
8113
  try {
8104
- const path20 = require.resolve(packageName, {
8114
+ packagePath = require.resolve(packageName, {
8105
8115
  paths: [api.context.rootPath]
8106
8116
  });
8107
- module2 = await import(path20);
8108
8117
  } catch (err) {
8109
8118
  import_rslog.logger.warn(
8110
8119
  `\`process.env.RSDOCTOR\` enabled, please install ${import_picocolors15.default.bold(import_picocolors15.default.yellow(packageName))} package.`
8111
8120
  );
8112
8121
  return;
8113
8122
  }
8114
- const pluginName = isRspack ? "RsdoctorRspackPlugin" : "RsdoctorWebpackPlugin";
8123
+ let module2;
8124
+ try {
8125
+ module2 = await import(packagePath);
8126
+ } catch (err) {
8127
+ import_rslog.logger.error(
8128
+ `\`process.env.RSDOCTOR\` enabled, but failed to load ${import_picocolors15.default.bold(import_picocolors15.default.yellow(packageName))} module.`
8129
+ );
8130
+ return;
8131
+ }
8115
8132
  if (!module2 || !module2[pluginName]) {
8116
8133
  return;
8117
8134
  }
8118
- let isAutoRegister = false;
8119
- const isRsdoctorPlugin = (plugin) => plugin?.isRsdoctorPlugin === true || plugin?.constructor?.name === pluginName;
8120
8135
  for (const config of bundlerConfigs) {
8121
- const registered = config.plugins?.some(
8122
- (plugin) => isRsdoctorPlugin(plugin)
8123
- );
8124
- if (registered) {
8125
- return;
8126
- }
8127
8136
  config.plugins ||= [];
8128
8137
  config.plugins.push(new module2[pluginName]());
8129
- isAutoRegister = true;
8130
- }
8131
- if (isAutoRegister) {
8132
- import_rslog.logger.info(`${import_picocolors15.default.bold(import_picocolors15.default.yellow(packageName))} enabled.`);
8133
8138
  }
8139
+ import_rslog.logger.info(`${import_picocolors15.default.bold(import_picocolors15.default.yellow(packageName))} enabled.`);
8134
8140
  });
8135
8141
  }
8136
8142
  });
@@ -9662,7 +9668,7 @@ var init_init = __esm({
9662
9668
 
9663
9669
  // src/cli/commands.ts
9664
9670
  function runCli() {
9665
- import_commander.program.name("rsbuild").usage("<command> [options]").version("1.0.1-rc.3");
9671
+ import_commander.program.name("rsbuild").usage("<command> [options]").version("1.0.1-rc.4");
9666
9672
  const devCommand = import_commander.program.command("dev");
9667
9673
  const buildCommand = import_commander.program.command("build");
9668
9674
  const previewCommand = import_commander.program.command("preview");
@@ -9785,7 +9791,7 @@ function prepareCli() {
9785
9791
  if (!npm_execpath || npm_execpath.includes("npx-cli.js") || npm_execpath.includes(".bun")) {
9786
9792
  console.log();
9787
9793
  }
9788
- import_rslog.logger.greet(` ${`Rsbuild v${"1.0.1-rc.3"}`}
9794
+ import_rslog.logger.greet(` ${`Rsbuild v${"1.0.1-rc.4"}`}
9789
9795
  `);
9790
9796
  }
9791
9797
  var init_prepare = __esm({
@@ -9869,7 +9875,7 @@ init_logger();
9869
9875
  init_mergeConfig();
9870
9876
  init_helpers();
9871
9877
  init_constants();
9872
- var version = "1.0.1-rc.3";
9878
+ var version = "1.0.1-rc.4";
9873
9879
  // Annotate the CommonJS export names for ESM import in node:
9874
9880
  0 && (module.exports = {
9875
9881
  PLUGIN_CSS_NAME,
package/dist/index.js CHANGED
@@ -2335,7 +2335,7 @@ async function createContext(options, userConfig, bundlerType) {
2335
2335
  const rsbuildConfig = await withDefaultConfig(rootPath, userConfig);
2336
2336
  const cachePath = join6(rootPath, "node_modules", ".cache");
2337
2337
  return {
2338
- version: "1.0.1-rc.3",
2338
+ version: "1.0.1-rc.4",
2339
2339
  rootPath,
2340
2340
  distPath: "",
2341
2341
  cachePath,
@@ -8186,39 +8186,45 @@ var init_rsdoctor = __esm({
8186
8186
  return;
8187
8187
  }
8188
8188
  const isRspack = api.context.bundlerType === "rspack";
8189
+ const pluginName = isRspack ? "RsdoctorRspackPlugin" : "RsdoctorWebpackPlugin";
8190
+ const isRsdoctorPlugin = (plugin) => plugin?.isRsdoctorPlugin === true || plugin?.constructor?.name === pluginName;
8191
+ for (const config of bundlerConfigs) {
8192
+ const registered = config.plugins?.some(
8193
+ (plugin) => isRsdoctorPlugin(plugin)
8194
+ );
8195
+ if (registered) {
8196
+ return;
8197
+ }
8198
+ }
8189
8199
  const packageName = isRspack ? "@rsdoctor/rspack-plugin" : "@rsdoctor/webpack-plugin";
8190
- let module;
8200
+ let packagePath;
8191
8201
  try {
8192
- const path21 = __require.resolve(packageName, {
8202
+ packagePath = __require.resolve(packageName, {
8193
8203
  paths: [api.context.rootPath]
8194
8204
  });
8195
- module = await import(path21);
8196
8205
  } catch (err) {
8197
8206
  logger.warn(
8198
8207
  `\`process.env.RSDOCTOR\` enabled, please install ${color15.bold(color15.yellow(packageName))} package.`
8199
8208
  );
8200
8209
  return;
8201
8210
  }
8202
- const pluginName = isRspack ? "RsdoctorRspackPlugin" : "RsdoctorWebpackPlugin";
8211
+ let module;
8212
+ try {
8213
+ module = await import(packagePath);
8214
+ } catch (err) {
8215
+ logger.error(
8216
+ `\`process.env.RSDOCTOR\` enabled, but failed to load ${color15.bold(color15.yellow(packageName))} module.`
8217
+ );
8218
+ return;
8219
+ }
8203
8220
  if (!module || !module[pluginName]) {
8204
8221
  return;
8205
8222
  }
8206
- let isAutoRegister = false;
8207
- const isRsdoctorPlugin = (plugin) => plugin?.isRsdoctorPlugin === true || plugin?.constructor?.name === pluginName;
8208
8223
  for (const config of bundlerConfigs) {
8209
- const registered = config.plugins?.some(
8210
- (plugin) => isRsdoctorPlugin(plugin)
8211
- );
8212
- if (registered) {
8213
- return;
8214
- }
8215
8224
  config.plugins ||= [];
8216
8225
  config.plugins.push(new module[pluginName]());
8217
- isAutoRegister = true;
8218
- }
8219
- if (isAutoRegister) {
8220
- logger.info(`${color15.bold(color15.yellow(packageName))} enabled.`);
8221
8226
  }
8227
+ logger.info(`${color15.bold(color15.yellow(packageName))} enabled.`);
8222
8228
  });
8223
8229
  }
8224
8230
  });
@@ -9771,7 +9777,7 @@ import { existsSync } from "fs";
9771
9777
  import { program } from "../compiled/commander/index.js";
9772
9778
  import color16 from "../compiled/picocolors/index.js";
9773
9779
  function runCli() {
9774
- program.name("rsbuild").usage("<command> [options]").version("1.0.1-rc.3");
9780
+ program.name("rsbuild").usage("<command> [options]").version("1.0.1-rc.4");
9775
9781
  const devCommand = program.command("dev");
9776
9782
  const buildCommand = program.command("build");
9777
9783
  const previewCommand = program.command("preview");
@@ -9892,7 +9898,7 @@ function prepareCli() {
9892
9898
  if (!npm_execpath || npm_execpath.includes("npx-cli.js") || npm_execpath.includes(".bun")) {
9893
9899
  console.log();
9894
9900
  }
9895
- logger.greet(` ${`Rsbuild v${"1.0.1-rc.3"}`}
9901
+ logger.greet(` ${`Rsbuild v${"1.0.1-rc.4"}`}
9896
9902
  `);
9897
9903
  }
9898
9904
  var init_prepare = __esm({
@@ -9963,7 +9969,7 @@ init_mergeConfig();
9963
9969
  init_helpers();
9964
9970
  init_constants();
9965
9971
  import { rspack as rspack10 } from "@rspack/core";
9966
- var version = "1.0.1-rc.3";
9972
+ var version = "1.0.1-rc.4";
9967
9973
  export {
9968
9974
  PLUGIN_CSS_NAME,
9969
9975
  PLUGIN_SWC_NAME,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/core",
3
- "version": "1.0.1-rc.3",
3
+ "version": "1.0.1-rc.4",
4
4
  "description": "The Rspack-based build tool.",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "bugs": {
@@ -46,8 +46,8 @@
46
46
  "types.d.ts"
47
47
  ],
48
48
  "dependencies": {
49
- "@rspack/core": "1.0.1",
50
- "@rspack/lite-tapable": "1.0.0",
49
+ "@rspack/core": "~1.0.3",
50
+ "@rspack/lite-tapable": "~1.0.0",
51
51
  "@swc/helpers": "^0.5.12",
52
52
  "caniuse-lite": "^1.0.30001655",
53
53
  "core-js": "~3.38.1"
@@ -77,7 +77,7 @@
77
77
  "mrmime": "^2.0.0",
78
78
  "on-finished": "2.4.1",
79
79
  "open": "^8.4.0",
80
- "picocolors": "^1.0.1",
80
+ "picocolors": "^1.1.0",
81
81
  "postcss": "^8.4.43",
82
82
  "postcss-load-config": "6.0.1",
83
83
  "postcss-loader": "8.1.1",