@rsbuild/core 0.7.6 → 0.7.8

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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Pooya Parsa <pooya@pi0.io>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"jiti","version":"1.21.6","license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -463,7 +463,7 @@ module.exports.lilconfigSync = function lilconfigSync(name, options) {
463
463
 
464
464
  /***/ }),
465
465
 
466
- /***/ 982:
466
+ /***/ 449:
467
467
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
468
468
 
469
469
  // @ts-check
@@ -471,9 +471,9 @@ const { resolve } = __nccwpck_require__(411)
471
471
 
472
472
  const config = __nccwpck_require__(882)
473
473
 
474
- const loadOptions = __nccwpck_require__(781)
475
- const loadPlugins = __nccwpck_require__(279)
476
- const req = __nccwpck_require__(673)
474
+ const loadOptions = __nccwpck_require__(564)
475
+ const loadPlugins = __nccwpck_require__(981)
476
+ const req = __nccwpck_require__(894)
477
477
 
478
478
  const interopRequireDefault = obj =>
479
479
  obj && obj.__esModule ? obj : { default: obj }
@@ -648,11 +648,11 @@ module.exports = rc
648
648
 
649
649
  /***/ }),
650
650
 
651
- /***/ 781:
651
+ /***/ 564:
652
652
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
653
653
 
654
654
  // @ts-check
655
- const req = __nccwpck_require__(673)
655
+ const req = __nccwpck_require__(894)
656
656
 
657
657
  /**
658
658
  * Load Options
@@ -703,11 +703,11 @@ module.exports = options
703
703
 
704
704
  /***/ }),
705
705
 
706
- /***/ 279:
706
+ /***/ 981:
707
707
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
708
708
 
709
709
  // @ts-check
710
- const req = __nccwpck_require__(673)
710
+ const req = __nccwpck_require__(894)
711
711
 
712
712
  /**
713
713
  * Plugin Loader
@@ -799,7 +799,7 @@ module.exports = plugins
799
799
 
800
800
  /***/ }),
801
801
 
802
- /***/ 673:
802
+ /***/ 894:
803
803
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
804
804
 
805
805
  // @ts-check
@@ -846,7 +846,7 @@ async function req(name, rootFile = __filename) {
846
846
 
847
847
  if (jiti === undefined) {
848
848
  try {
849
- jiti = (await import('@rsbuild/shared/jiti')).default
849
+ jiti = (await import('../jiti/index.js')).default
850
850
  } catch (error) {
851
851
  importError.push(error)
852
852
  }
@@ -1043,7 +1043,7 @@ module.exports = require("yaml");
1043
1043
  /******/ // startup
1044
1044
  /******/ // Load entry module and return exports
1045
1045
  /******/ // This entry module is referenced by other modules so it can't be inlined
1046
- /******/ var __webpack_exports__ = __nccwpck_require__(982);
1046
+ /******/ var __webpack_exports__ = __nccwpck_require__(449);
1047
1047
  /******/ module.exports = __webpack_exports__;
1048
1048
  /******/
1049
1049
  /******/ })()
@@ -7583,7 +7583,7 @@ module.exports = filepath => {
7583
7583
  const errorEx = __nccwpck_require__(7861);
7584
7584
  const fallback = __nccwpck_require__(3984);
7585
7585
  const {default: LinesAndColumns} = __nccwpck_require__(7151);
7586
- const {codeFrameColumns} = __nccwpck_require__(5634);
7586
+ const {codeFrameColumns} = __nccwpck_require__(4319);
7587
7587
 
7588
7588
  const JSONError = errorEx('JSONError', {
7589
7589
  fileName: errorEx.append('in %s'),
@@ -7709,17 +7709,17 @@ module.exports.createColors = createColors
7709
7709
 
7710
7710
  /***/ }),
7711
7711
 
7712
- /***/ 1595:
7712
+ /***/ 1928:
7713
7713
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
7714
7714
 
7715
7715
  "use strict";
7716
7716
 
7717
7717
 
7718
- module.exports = __nccwpck_require__(920)["default"];
7718
+ module.exports = __nccwpck_require__(491)["default"];
7719
7719
 
7720
7720
  /***/ }),
7721
7721
 
7722
- /***/ 920:
7722
+ /***/ 491:
7723
7723
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
7724
7724
 
7725
7725
  "use strict";
@@ -7732,8 +7732,8 @@ __webpack_unused_export__ = ({
7732
7732
  exports["default"] = loader;
7733
7733
  var _path = _interopRequireDefault(__nccwpck_require__(1017));
7734
7734
  var _package = _interopRequireDefault(__nccwpck_require__(5446));
7735
- var _options = _interopRequireDefault(__nccwpck_require__(9489));
7736
- var _utils = __nccwpck_require__(1949);
7735
+ var _options = _interopRequireDefault(__nccwpck_require__(2598));
7736
+ var _utils = __nccwpck_require__(4911);
7737
7737
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
7738
7738
  let hasExplicitDependencyOnPostCSS = false;
7739
7739
 
@@ -7794,7 +7794,7 @@ async function loader(content, sourceMap, meta) {
7794
7794
  // Reuse PostCSS AST from other loaders
7795
7795
  if (meta && meta.ast && meta.ast.type === "postcss" &&
7796
7796
  // eslint-disable-next-line global-require
7797
- (__nccwpck_require__(1280).satisfies)(meta.ast.version, `^${_package.default.version}`)) {
7797
+ (__nccwpck_require__(5204).satisfies)(meta.ast.version, `^${_package.default.version}`)) {
7798
7798
  ({
7799
7799
  root
7800
7800
  } = meta.ast);
@@ -7899,7 +7899,7 @@ async function loader(content, sourceMap, meta) {
7899
7899
 
7900
7900
  /***/ }),
7901
7901
 
7902
- /***/ 1949:
7902
+ /***/ 4911:
7903
7903
  /***/ ((module, exports, __nccwpck_require__) => {
7904
7904
 
7905
7905
  "use strict";
@@ -8012,7 +8012,7 @@ async function loadConfig(loaderContext, config, postcssOptions) {
8012
8012
  interopDefault: true
8013
8013
  };
8014
8014
  // eslint-disable-next-line global-require, import/no-extraneous-dependencies
8015
- const jiti = __nccwpck_require__(7226)(__filename, opts);
8015
+ const jiti = __nccwpck_require__(9993)(__filename, opts);
8016
8016
  tsLoader = filepath => jiti(filepath);
8017
8017
  }
8018
8018
  loaders[".cts"] = tsLoader;
@@ -8585,19 +8585,19 @@ module.exports = webpackEmptyAsyncContext;
8585
8585
 
8586
8586
  /***/ }),
8587
8587
 
8588
- /***/ 7226:
8588
+ /***/ 9993:
8589
8589
  /***/ ((module) => {
8590
8590
 
8591
8591
  "use strict";
8592
- module.exports = require("@rsbuild/shared/jiti");
8592
+ module.exports = require("../jiti");
8593
8593
 
8594
8594
  /***/ }),
8595
8595
 
8596
- /***/ 1280:
8596
+ /***/ 5204:
8597
8597
  /***/ ((module) => {
8598
8598
 
8599
8599
  "use strict";
8600
- module.exports = require("@rsbuild/shared/semver");
8600
+ module.exports = require("../semver");
8601
8601
 
8602
8602
  /***/ }),
8603
8603
 
@@ -8673,7 +8673,7 @@ module.exports = require("util");
8673
8673
 
8674
8674
  /***/ }),
8675
8675
 
8676
- /***/ 5634:
8676
+ /***/ 4319:
8677
8677
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
8678
8678
 
8679
8679
  "use strict";
@@ -8684,10 +8684,10 @@ Object.defineProperty(exports, "__esModule", ({
8684
8684
  }));
8685
8685
  exports.codeFrameColumns = codeFrameColumns;
8686
8686
  exports["default"] = _default;
8687
- var _highlight = __nccwpck_require__(8635);
8687
+ var _highlight = __nccwpck_require__(5247);
8688
8688
  var _picocolors = _interopRequireWildcard(__nccwpck_require__(701), true);
8689
8689
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
8690
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
8690
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
8691
8691
  const colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
8692
8692
  const compose = (f, g) => v => f(g(v));
8693
8693
  let pcWithForcedColor = undefined;
@@ -9023,7 +9023,7 @@ function isKeyword(word) {
9023
9023
 
9024
9024
  /***/ }),
9025
9025
 
9026
- /***/ 8635:
9026
+ /***/ 5247:
9027
9027
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
9028
9028
 
9029
9029
  "use strict";
@@ -9038,7 +9038,7 @@ var _jsTokens = __nccwpck_require__(1192);
9038
9038
  var _helperValidatorIdentifier = __nccwpck_require__(6764);
9039
9039
  var _picocolors = _interopRequireWildcard(__nccwpck_require__(701), true);
9040
9040
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
9041
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
9041
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
9042
9042
  const colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
9043
9043
  const compose = (f, g) => v => f(g(v));
9044
9044
  const sometimesKeywords = new Set(["as", "async", "from", "get", "of", "set"]);
@@ -9065,7 +9065,7 @@ let tokenize;
9065
9065
  if ((0, _helperValidatorIdentifier.isKeyword)(token.value) || (0, _helperValidatorIdentifier.isStrictReservedWord)(token.value, true) || sometimesKeywords.has(token.value)) {
9066
9066
  return "keyword";
9067
9067
  }
9068
- if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) == "</")) {
9068
+ if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
9069
9069
  return "jsxIdentifier";
9070
9070
  }
9071
9071
  if (token.value[0] !== token.value[0].toLowerCase()) {
@@ -9150,7 +9150,7 @@ function highlight(code, options = {}) {
9150
9150
 
9151
9151
  /***/ }),
9152
9152
 
9153
- /***/ 9489:
9153
+ /***/ 2598:
9154
9154
  /***/ ((module) => {
9155
9155
 
9156
9156
  "use strict";
@@ -9278,7 +9278,7 @@ module.exports = JSON.parse('{"name":"postcss","version":"8.4.38","description":
9278
9278
  /******/ // startup
9279
9279
  /******/ // Load entry module and return exports
9280
9280
  /******/ // This entry module used 'module' so it can't be inlined
9281
- /******/ var __webpack_exports__ = __nccwpck_require__(1595);
9281
+ /******/ var __webpack_exports__ = __nccwpck_require__(1928);
9282
9282
  /******/ module.exports = __webpack_exports__;
9283
9283
  /******/
9284
9284
  /******/ })()
@@ -1,7 +1,7 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 8280:
4
+ /***/ 2854:
5
5
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
6
6
 
7
7
  "use strict";
@@ -105,7 +105,7 @@ exports.transformFiles = transformFiles;
105
105
 
106
106
  /***/ }),
107
107
 
108
- /***/ 4134:
108
+ /***/ 2131:
109
109
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
110
110
 
111
111
  "use strict";
@@ -116,7 +116,7 @@ const fs_1 = __nccwpck_require__(7147);
116
116
  const path_1 = __nccwpck_require__(1017);
117
117
  const tapable_1 = __nccwpck_require__(4260);
118
118
  const webpack_sources_1 = __nccwpck_require__(5433);
119
- const helpers_1 = __nccwpck_require__(8280);
119
+ const helpers_1 = __nccwpck_require__(2854);
120
120
  const compilerHookMap = new WeakMap();
121
121
  const getCompilerHooks = (compiler) => {
122
122
  let hooks = compilerHookMap.get(compiler);
@@ -7751,7 +7751,7 @@ var exports = __webpack_exports__;
7751
7751
  Object.defineProperty(exports, "__esModule", ({ value: true }));
7752
7752
  exports.RspackManifestPlugin = exports.WebpackManifestPlugin = exports.getCompilerHooks = void 0;
7753
7753
  const path_1 = __nccwpck_require__(1017);
7754
- const hooks_1 = __nccwpck_require__(4134);
7754
+ const hooks_1 = __nccwpck_require__(2131);
7755
7755
  Object.defineProperty(exports, "getCompilerHooks", ({ enumerable: true, get: function () { return hooks_1.getCompilerHooks; } }));
7756
7756
  const emitCountMap = new Map();
7757
7757
  const defaults = {
@@ -0,0 +1 @@
1
+ export = any;