@rsbuild/core 1.2.19 → 1.3.0-beta.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.
- package/compiled/css-loader/index.js +20 -18
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rspack-chain/index.d.ts +1 -1
- package/compiled/rspack-chain/index.js +66 -66
- package/compiled/rspack-chain/package.json +1 -1
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/dist/client/overlay.js +9 -6
- package/dist/index.cjs +252 -262
- package/dist/index.js +252 -262
- package/dist/transformLoader.mjs +20 -16
- package/dist/transformRawLoader.mjs +20 -16
- package/dist-types/config.d.ts +0 -2
- package/dist-types/configChain.d.ts +11 -5
- package/dist-types/helpers/index.d.ts +0 -1
- package/dist-types/restart.d.ts +18 -0
- package/dist-types/server/cliShortcuts.d.ts +1 -1
- package/dist-types/server/helper.d.ts +10 -0
- package/dist-types/types/config.d.ts +9 -0
- package/dist-types/types/context.d.ts +10 -8
- package/dist-types/types/rsbuild.d.ts +2 -2
- package/package.json +4 -4
- package/types.d.ts +28 -0
- package/dist-types/cli/prepare.d.ts +0 -1
- package/dist-types/server/restart.d.ts +0 -14
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
6654: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(3812);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(9741).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
3812: (__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__(9409));
|
|
15
|
-
var _plugins = __nccwpck_require__(
|
|
16
|
-
var _utils = __nccwpck_require__(
|
|
15
|
+
var _plugins = __nccwpck_require__(3355);
|
|
16
|
+
var _utils = __nccwpck_require__(9741);
|
|
17
17
|
function _interopRequireDefault(obj) {
|
|
18
18
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
19
19
|
}
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
callback(null, `${importCode}${moduleCode}${exportCode}`);
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
|
-
|
|
239
|
+
3355: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
240
240
|
"use strict";
|
|
241
241
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
242
242
|
Object.defineProperty(exports, "icssParser", {
|
|
@@ -258,20 +258,22 @@
|
|
|
258
258
|
},
|
|
259
259
|
});
|
|
260
260
|
var _postcssImportParser = _interopRequireDefault(
|
|
261
|
-
__nccwpck_require__(
|
|
261
|
+
__nccwpck_require__(4432),
|
|
262
262
|
);
|
|
263
|
-
var _postcssIcssParser = _interopRequireDefault(
|
|
264
|
-
|
|
263
|
+
var _postcssIcssParser = _interopRequireDefault(
|
|
264
|
+
__nccwpck_require__(6949),
|
|
265
|
+
);
|
|
266
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(5316));
|
|
265
267
|
function _interopRequireDefault(obj) {
|
|
266
268
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
267
269
|
}
|
|
268
270
|
},
|
|
269
|
-
|
|
271
|
+
6949: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
270
272
|
"use strict";
|
|
271
273
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
272
274
|
exports["default"] = void 0;
|
|
273
275
|
var _icssUtils = __nccwpck_require__(4531);
|
|
274
|
-
var _utils = __nccwpck_require__(
|
|
276
|
+
var _utils = __nccwpck_require__(9741);
|
|
275
277
|
const plugin = (options = {}) => ({
|
|
276
278
|
postcssPlugin: "postcss-icss-parser",
|
|
277
279
|
async OnceExit(root) {
|
|
@@ -370,14 +372,14 @@
|
|
|
370
372
|
plugin.postcss = true;
|
|
371
373
|
var _default = (exports["default"] = plugin);
|
|
372
374
|
},
|
|
373
|
-
|
|
375
|
+
4432: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
374
376
|
"use strict";
|
|
375
377
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
376
378
|
exports["default"] = void 0;
|
|
377
379
|
var _postcssValueParser = _interopRequireDefault(
|
|
378
380
|
__nccwpck_require__(2948),
|
|
379
381
|
);
|
|
380
|
-
var _utils = __nccwpck_require__(
|
|
382
|
+
var _utils = __nccwpck_require__(9741);
|
|
381
383
|
function _interopRequireDefault(obj) {
|
|
382
384
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
383
385
|
}
|
|
@@ -682,14 +684,14 @@
|
|
|
682
684
|
plugin.postcss = true;
|
|
683
685
|
var _default = (exports["default"] = plugin);
|
|
684
686
|
},
|
|
685
|
-
|
|
687
|
+
5316: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
686
688
|
"use strict";
|
|
687
689
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
688
690
|
exports["default"] = void 0;
|
|
689
691
|
var _postcssValueParser = _interopRequireDefault(
|
|
690
692
|
__nccwpck_require__(2948),
|
|
691
693
|
);
|
|
692
|
-
var _utils = __nccwpck_require__(
|
|
694
|
+
var _utils = __nccwpck_require__(9741);
|
|
693
695
|
function _interopRequireDefault(obj) {
|
|
694
696
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
695
697
|
}
|
|
@@ -1032,7 +1034,7 @@
|
|
|
1032
1034
|
plugin.postcss = true;
|
|
1033
1035
|
var _default = (exports["default"] = plugin);
|
|
1034
1036
|
},
|
|
1035
|
-
|
|
1037
|
+
9741: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1036
1038
|
"use strict";
|
|
1037
1039
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1038
1040
|
exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
|
|
@@ -8096,6 +8098,6 @@
|
|
|
8096
8098
|
}
|
|
8097
8099
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8098
8100
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8099
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8101
|
+
var __webpack_exports__ = __nccwpck_require__(6654);
|
|
8100
8102
|
module.exports = __webpack_exports__;
|
|
8101
8103
|
})();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
709: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const { HtmlWebpackChildCompiler } = __nccwpck_require__(
|
|
5
|
+
const { HtmlWebpackChildCompiler } = __nccwpck_require__(158);
|
|
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
|
-
|
|
307
|
+
158: (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
|
-
|
|
476
|
+
270: (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
|
-
|
|
495
|
+
9: (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
|
-
|
|
516
|
+
256: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
517
517
|
"use strict";
|
|
518
518
|
const { AsyncSeriesWaterfallHook } = __nccwpck_require__(408);
|
|
519
519
|
const htmlWebpackPluginHooksMap = new WeakMap();
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
}
|
|
540
540
|
module.exports = { getHtmlRspackPluginHooks };
|
|
541
541
|
},
|
|
542
|
-
|
|
542
|
+
85: (module) => {
|
|
543
543
|
const voidTags = [
|
|
544
544
|
"area",
|
|
545
545
|
"base",
|
|
@@ -607,19 +607,19 @@
|
|
|
607
607
|
htmlTagObjectToString,
|
|
608
608
|
};
|
|
609
609
|
},
|
|
610
|
-
|
|
610
|
+
312: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
611
611
|
"use strict";
|
|
612
612
|
const promisify = __nccwpck_require__(23).promisify;
|
|
613
613
|
const vm = __nccwpck_require__(154);
|
|
614
614
|
const fs = __nccwpck_require__(896);
|
|
615
615
|
const path = __nccwpck_require__(928);
|
|
616
|
-
const { CachedChildCompilation } = __nccwpck_require__(
|
|
616
|
+
const { CachedChildCompilation } = __nccwpck_require__(709);
|
|
617
617
|
const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
|
|
618
|
-
__nccwpck_require__(
|
|
619
|
-
const prettyError = __nccwpck_require__(
|
|
620
|
-
const chunkSorter = __nccwpck_require__(
|
|
618
|
+
__nccwpck_require__(85);
|
|
619
|
+
const prettyError = __nccwpck_require__(9);
|
|
620
|
+
const chunkSorter = __nccwpck_require__(270);
|
|
621
621
|
const getHtmlRspackPluginHooks =
|
|
622
|
-
__nccwpck_require__(
|
|
622
|
+
__nccwpck_require__(256).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__(
|
|
1581
|
+
var __webpack_exports__ = __nccwpck_require__(312);
|
|
1582
1582
|
module.exports = __webpack_exports__;
|
|
1583
1583
|
})();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
875: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(757)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
757: (__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__(928));
|
|
12
|
-
var _utils = __nccwpck_require__(
|
|
12
|
+
var _utils = __nccwpck_require__(208);
|
|
13
13
|
function _interopRequireDefault(obj) {
|
|
14
14
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
15
15
|
}
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
callback(null, result.css, map, { ast });
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
|
-
|
|
182
|
+
208: (module, exports, __nccwpck_require__) => {
|
|
183
183
|
module = __nccwpck_require__.nmd(module);
|
|
184
184
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
185
185
|
exports.exec = exec;
|
|
@@ -716,6 +716,6 @@
|
|
|
716
716
|
})();
|
|
717
717
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
718
718
|
__nccwpck_require__.ab = __dirname + "/";
|
|
719
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
719
|
+
var __webpack_exports__ = __nccwpck_require__(875);
|
|
720
720
|
module.exports = __webpack_exports__;
|
|
721
721
|
})();
|
|
@@ -32,7 +32,7 @@ declare namespace __Config {
|
|
|
32
32
|
set<T extends keyof OptionsType>(key: T, value: OptionsType[T]): this;
|
|
33
33
|
merge(obj: Partial<OptionsType>): this;
|
|
34
34
|
entries(): OptionsType;
|
|
35
|
-
values<T extends keyof OptionsType>():
|
|
35
|
+
values<T extends keyof OptionsType>(): OptionsType[T][];
|
|
36
36
|
when(
|
|
37
37
|
condition: boolean,
|
|
38
38
|
trueBrancher: (obj: this) => void,
|
|
@@ -627,7 +627,7 @@
|
|
|
627
627
|
};
|
|
628
628
|
exports.toString = toString;
|
|
629
629
|
},
|
|
630
|
-
|
|
630
|
+
426: (module) => {
|
|
631
631
|
module.exports = class extends Function {
|
|
632
632
|
constructor() {
|
|
633
633
|
super();
|
|
@@ -640,35 +640,35 @@
|
|
|
640
640
|
}
|
|
641
641
|
};
|
|
642
642
|
},
|
|
643
|
-
|
|
644
|
-
const createMap = __nccwpck_require__(
|
|
645
|
-
const createChainable = __nccwpck_require__(
|
|
643
|
+
284: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
644
|
+
const createMap = __nccwpck_require__(389);
|
|
645
|
+
const createChainable = __nccwpck_require__(734);
|
|
646
646
|
module.exports = createMap(createChainable(Object));
|
|
647
647
|
},
|
|
648
|
-
|
|
649
|
-
const createSet = __nccwpck_require__(
|
|
650
|
-
const createChainable = __nccwpck_require__(
|
|
648
|
+
894: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
649
|
+
const createSet = __nccwpck_require__(691);
|
|
650
|
+
const createChainable = __nccwpck_require__(734);
|
|
651
651
|
module.exports = createSet(createChainable(Object));
|
|
652
652
|
},
|
|
653
|
-
|
|
654
|
-
const Callable = __nccwpck_require__(
|
|
655
|
-
const createMap = __nccwpck_require__(
|
|
656
|
-
const createChainable = __nccwpck_require__(
|
|
657
|
-
const createValue = __nccwpck_require__(
|
|
653
|
+
333: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
654
|
+
const Callable = __nccwpck_require__(426);
|
|
655
|
+
const createMap = __nccwpck_require__(389);
|
|
656
|
+
const createChainable = __nccwpck_require__(734);
|
|
657
|
+
const createValue = __nccwpck_require__(238);
|
|
658
658
|
module.exports = createValue(createMap(createChainable(Callable)));
|
|
659
659
|
},
|
|
660
|
-
|
|
661
|
-
const ChainedMap = __nccwpck_require__(
|
|
662
|
-
const ChainedValueMap = __nccwpck_require__(
|
|
663
|
-
const ChainedSet = __nccwpck_require__(
|
|
664
|
-
const Resolve = __nccwpck_require__(
|
|
665
|
-
const ResolveLoader = __nccwpck_require__(
|
|
666
|
-
const Output = __nccwpck_require__(
|
|
667
|
-
const DevServer = __nccwpck_require__(
|
|
668
|
-
const Plugin = __nccwpck_require__(
|
|
669
|
-
const Module = __nccwpck_require__(
|
|
670
|
-
const Optimization = __nccwpck_require__(
|
|
671
|
-
const Performance = __nccwpck_require__(
|
|
660
|
+
540: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
661
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
662
|
+
const ChainedValueMap = __nccwpck_require__(333);
|
|
663
|
+
const ChainedSet = __nccwpck_require__(894);
|
|
664
|
+
const Resolve = __nccwpck_require__(912);
|
|
665
|
+
const ResolveLoader = __nccwpck_require__(239);
|
|
666
|
+
const Output = __nccwpck_require__(979);
|
|
667
|
+
const DevServer = __nccwpck_require__(68);
|
|
668
|
+
const Plugin = __nccwpck_require__(605);
|
|
669
|
+
const Module = __nccwpck_require__(462);
|
|
670
|
+
const Optimization = __nccwpck_require__(947);
|
|
671
|
+
const Performance = __nccwpck_require__(422);
|
|
672
672
|
const castArray = (value) => (Array.isArray(value) ? value : [value]);
|
|
673
673
|
const toEntryObject = (entryPoints) => {
|
|
674
674
|
const entry = Object.keys(entryPoints).reduce(
|
|
@@ -845,9 +845,9 @@
|
|
|
845
845
|
}
|
|
846
846
|
};
|
|
847
847
|
},
|
|
848
|
-
|
|
849
|
-
const ChainedMap = __nccwpck_require__(
|
|
850
|
-
const ChainedSet = __nccwpck_require__(
|
|
848
|
+
68: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
849
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
850
|
+
const ChainedSet = __nccwpck_require__(894);
|
|
851
851
|
module.exports = class extends ChainedMap {
|
|
852
852
|
constructor(parent) {
|
|
853
853
|
super(parent);
|
|
@@ -919,9 +919,9 @@
|
|
|
919
919
|
}
|
|
920
920
|
};
|
|
921
921
|
},
|
|
922
|
-
|
|
923
|
-
const ChainedMap = __nccwpck_require__(
|
|
924
|
-
const Rule = __nccwpck_require__(
|
|
922
|
+
462: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
923
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
924
|
+
const Rule = __nccwpck_require__(576);
|
|
925
925
|
module.exports = class extends ChainedMap {
|
|
926
926
|
constructor(parent) {
|
|
927
927
|
super(parent);
|
|
@@ -976,10 +976,10 @@
|
|
|
976
976
|
}
|
|
977
977
|
};
|
|
978
978
|
},
|
|
979
|
-
|
|
980
|
-
const ChainedMap = __nccwpck_require__(
|
|
981
|
-
const ChainedValueMap = __nccwpck_require__(
|
|
982
|
-
const Plugin = __nccwpck_require__(
|
|
979
|
+
947: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
980
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
981
|
+
const ChainedValueMap = __nccwpck_require__(333);
|
|
982
|
+
const Plugin = __nccwpck_require__(605);
|
|
983
983
|
module.exports = class extends ChainedMap {
|
|
984
984
|
constructor(parent) {
|
|
985
985
|
super(parent);
|
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
}
|
|
1042
1042
|
};
|
|
1043
1043
|
},
|
|
1044
|
-
|
|
1044
|
+
768: (module) => {
|
|
1045
1045
|
module.exports = (Class) =>
|
|
1046
1046
|
class extends Class {
|
|
1047
1047
|
before(name) {
|
|
@@ -1073,8 +1073,8 @@
|
|
|
1073
1073
|
}
|
|
1074
1074
|
};
|
|
1075
1075
|
},
|
|
1076
|
-
|
|
1077
|
-
const ChainedMap = __nccwpck_require__(
|
|
1076
|
+
979: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1077
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
1078
1078
|
module.exports = class extends ChainedMap {
|
|
1079
1079
|
constructor(parent) {
|
|
1080
1080
|
super(parent);
|
|
@@ -1128,8 +1128,8 @@
|
|
|
1128
1128
|
}
|
|
1129
1129
|
};
|
|
1130
1130
|
},
|
|
1131
|
-
|
|
1132
|
-
const ChainedValueMap = __nccwpck_require__(
|
|
1131
|
+
422: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1132
|
+
const ChainedValueMap = __nccwpck_require__(333);
|
|
1133
1133
|
module.exports = class extends ChainedValueMap {
|
|
1134
1134
|
constructor(parent) {
|
|
1135
1135
|
super(parent);
|
|
@@ -1142,9 +1142,9 @@
|
|
|
1142
1142
|
}
|
|
1143
1143
|
};
|
|
1144
1144
|
},
|
|
1145
|
-
|
|
1146
|
-
const ChainedMap = __nccwpck_require__(
|
|
1147
|
-
const Orderable = __nccwpck_require__(
|
|
1145
|
+
605: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1146
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
1147
|
+
const Orderable = __nccwpck_require__(768);
|
|
1148
1148
|
module.exports = Orderable(
|
|
1149
1149
|
class extends ChainedMap {
|
|
1150
1150
|
constructor(parent, name, type = "plugin") {
|
|
@@ -1198,7 +1198,7 @@
|
|
|
1198
1198
|
}
|
|
1199
1199
|
if (typeof plugin === "string") {
|
|
1200
1200
|
pluginPath = plugin;
|
|
1201
|
-
plugin = __nccwpck_require__(
|
|
1201
|
+
plugin = __nccwpck_require__(961)(pluginPath);
|
|
1202
1202
|
}
|
|
1203
1203
|
const constructorName = plugin.__expression
|
|
1204
1204
|
? `(${plugin.__expression})`
|
|
@@ -1216,10 +1216,10 @@
|
|
|
1216
1216
|
},
|
|
1217
1217
|
);
|
|
1218
1218
|
},
|
|
1219
|
-
|
|
1220
|
-
const ChainedMap = __nccwpck_require__(
|
|
1221
|
-
const ChainedSet = __nccwpck_require__(
|
|
1222
|
-
const Plugin = __nccwpck_require__(
|
|
1219
|
+
912: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1220
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
1221
|
+
const ChainedSet = __nccwpck_require__(894);
|
|
1222
|
+
const Plugin = __nccwpck_require__(605);
|
|
1223
1223
|
const childMaps = ["alias", "fallback", "byDependency", "extensionAlias"];
|
|
1224
1224
|
const childSets = [
|
|
1225
1225
|
"aliasFields",
|
|
@@ -1298,9 +1298,9 @@
|
|
|
1298
1298
|
}
|
|
1299
1299
|
};
|
|
1300
1300
|
},
|
|
1301
|
-
|
|
1302
|
-
const Resolve = __nccwpck_require__(
|
|
1303
|
-
const ChainedSet = __nccwpck_require__(
|
|
1301
|
+
239: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1302
|
+
const Resolve = __nccwpck_require__(912);
|
|
1303
|
+
const ChainedSet = __nccwpck_require__(894);
|
|
1304
1304
|
module.exports = class extends Resolve {
|
|
1305
1305
|
constructor(parent) {
|
|
1306
1306
|
super(parent);
|
|
@@ -1327,12 +1327,12 @@
|
|
|
1327
1327
|
}
|
|
1328
1328
|
};
|
|
1329
1329
|
},
|
|
1330
|
-
|
|
1331
|
-
const ChainedMap = __nccwpck_require__(
|
|
1332
|
-
const ChainedSet = __nccwpck_require__(
|
|
1333
|
-
const Orderable = __nccwpck_require__(
|
|
1334
|
-
const Use = __nccwpck_require__(
|
|
1335
|
-
const Resolve = __nccwpck_require__(
|
|
1330
|
+
576: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1331
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
1332
|
+
const ChainedSet = __nccwpck_require__(894);
|
|
1333
|
+
const Orderable = __nccwpck_require__(768);
|
|
1334
|
+
const Use = __nccwpck_require__(795);
|
|
1335
|
+
const Resolve = __nccwpck_require__(912);
|
|
1336
1336
|
function toArray(arr) {
|
|
1337
1337
|
return Array.isArray(arr) ? arr : [arr];
|
|
1338
1338
|
}
|
|
@@ -1460,10 +1460,10 @@
|
|
|
1460
1460
|
);
|
|
1461
1461
|
module.exports = Rule;
|
|
1462
1462
|
},
|
|
1463
|
-
|
|
1463
|
+
795: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1464
1464
|
const merge = __nccwpck_require__(779);
|
|
1465
|
-
const ChainedMap = __nccwpck_require__(
|
|
1466
|
-
const Orderable = __nccwpck_require__(
|
|
1465
|
+
const ChainedMap = __nccwpck_require__(284);
|
|
1466
|
+
const Orderable = __nccwpck_require__(768);
|
|
1467
1467
|
module.exports = Orderable(
|
|
1468
1468
|
class extends ChainedMap {
|
|
1469
1469
|
constructor(parent, name) {
|
|
@@ -1496,7 +1496,7 @@
|
|
|
1496
1496
|
},
|
|
1497
1497
|
);
|
|
1498
1498
|
},
|
|
1499
|
-
|
|
1499
|
+
734: (module) => {
|
|
1500
1500
|
module.exports = function createChainable(superClass) {
|
|
1501
1501
|
return class extends superClass {
|
|
1502
1502
|
constructor(parent) {
|
|
@@ -1513,7 +1513,7 @@
|
|
|
1513
1513
|
};
|
|
1514
1514
|
};
|
|
1515
1515
|
},
|
|
1516
|
-
|
|
1516
|
+
389: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1517
1517
|
const merge = __nccwpck_require__(779);
|
|
1518
1518
|
module.exports = function createMap(superClass) {
|
|
1519
1519
|
return class extends superClass {
|
|
@@ -1637,7 +1637,7 @@
|
|
|
1637
1637
|
};
|
|
1638
1638
|
};
|
|
1639
1639
|
},
|
|
1640
|
-
|
|
1640
|
+
691: (module) => {
|
|
1641
1641
|
module.exports = function createSet(superClass) {
|
|
1642
1642
|
return class extends superClass {
|
|
1643
1643
|
constructor(...args) {
|
|
@@ -1687,7 +1687,7 @@
|
|
|
1687
1687
|
};
|
|
1688
1688
|
};
|
|
1689
1689
|
},
|
|
1690
|
-
|
|
1690
|
+
238: (module) => {
|
|
1691
1691
|
module.exports = function createValue(superClass) {
|
|
1692
1692
|
return class extends superClass {
|
|
1693
1693
|
constructor(...args) {
|
|
@@ -1725,7 +1725,7 @@
|
|
|
1725
1725
|
};
|
|
1726
1726
|
};
|
|
1727
1727
|
},
|
|
1728
|
-
|
|
1728
|
+
961: (module) => {
|
|
1729
1729
|
function webpackEmptyContext(req) {
|
|
1730
1730
|
var e = new Error("Cannot find module '" + req + "'");
|
|
1731
1731
|
e.code = "MODULE_NOT_FOUND";
|
|
@@ -1733,7 +1733,7 @@
|
|
|
1733
1733
|
}
|
|
1734
1734
|
webpackEmptyContext.keys = () => [];
|
|
1735
1735
|
webpackEmptyContext.resolve = webpackEmptyContext;
|
|
1736
|
-
webpackEmptyContext.id =
|
|
1736
|
+
webpackEmptyContext.id = 961;
|
|
1737
1737
|
module.exports = webpackEmptyContext;
|
|
1738
1738
|
},
|
|
1739
1739
|
};
|
|
@@ -1763,6 +1763,6 @@
|
|
|
1763
1763
|
})();
|
|
1764
1764
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
1765
1765
|
__nccwpck_require__.ab = __dirname + "/";
|
|
1766
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
1766
|
+
var __webpack_exports__ = __nccwpck_require__(540);
|
|
1767
1767
|
module.exports = __webpack_exports__;
|
|
1768
1768
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"rspack-chain","author":"rspack-contrib","version":"1.2.
|
|
1
|
+
{"name":"rspack-chain","author":"rspack-contrib","version":"1.2.2","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
4
|
+
394: (__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
|
-
|
|
123
|
+
379: (__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__(896);
|
|
131
131
|
const path_1 = __nccwpck_require__(928);
|
|
132
132
|
const lite_tapable_1 = __nccwpck_require__(408);
|
|
133
|
-
const helpers_1 = __nccwpck_require__(
|
|
133
|
+
const helpers_1 = __nccwpck_require__(394);
|
|
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__(928);
|
|
315
|
-
const hooks_1 = __nccwpck_require__(
|
|
315
|
+
const hooks_1 = __nccwpck_require__(379);
|
|
316
316
|
Object.defineProperty(exports, "getCompilerHooks", {
|
|
317
317
|
enumerable: true,
|
|
318
318
|
get: function () {
|
package/dist/client/overlay.js
CHANGED
|
@@ -13,12 +13,15 @@ const { HTMLElement = class {
|
|
|
13
13
|
}, customElements } = 'undefined' != typeof window ? window : globalThis;
|
|
14
14
|
class ErrorOverlay extends HTMLElement {
|
|
15
15
|
constructor(html){
|
|
16
|
-
|
|
16
|
+
var _this;
|
|
17
|
+
var _root_querySelector, _root_querySelector1;
|
|
18
|
+
super(), _this = this, _define_property(this, "close", function() {
|
|
19
|
+
let immediate = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
|
|
17
20
|
const remove = ()=>{
|
|
18
21
|
var _this_parentNode;
|
|
19
|
-
return null === (_this_parentNode =
|
|
22
|
+
return null === (_this_parentNode = _this.parentNode) || void 0 === _this_parentNode ? void 0 : _this_parentNode.removeChild(_this);
|
|
20
23
|
};
|
|
21
|
-
if (
|
|
24
|
+
if (_this.animate && true !== immediate) _this.animate([
|
|
22
25
|
{
|
|
23
26
|
opacity: 1
|
|
24
27
|
},
|
|
@@ -39,9 +42,9 @@ class ErrorOverlay extends HTMLElement {
|
|
|
39
42
|
mode: 'open'
|
|
40
43
|
});
|
|
41
44
|
root.innerHTML = html;
|
|
42
|
-
root.querySelector('.close').addEventListener('click', this.close);
|
|
45
|
+
null === (_root_querySelector = root.querySelector('.close')) || void 0 === _root_querySelector || _root_querySelector.addEventListener('click', this.close);
|
|
43
46
|
this.addEventListener('click', this.close);
|
|
44
|
-
root.querySelector('.container').addEventListener('click', (e)=>{
|
|
47
|
+
null === (_root_querySelector1 = root.querySelector('.container')) || void 0 === _root_querySelector1 || _root_querySelector1.addEventListener('click', (e)=>{
|
|
45
48
|
if (e.target) {
|
|
46
49
|
const { file } = e.target.dataset;
|
|
47
50
|
if (file) fetch(`/__open-in-editor?file=${encodeURIComponent(file)}`);
|
|
@@ -62,7 +65,7 @@ function createOverlay(html) {
|
|
|
62
65
|
document.body.appendChild(new ErrorOverlay(html));
|
|
63
66
|
}
|
|
64
67
|
function clearOverlay() {
|
|
65
|
-
document.querySelectorAll(overlayId).forEach((n)=>n.close());
|
|
68
|
+
document.querySelectorAll(overlayId).forEach((n)=>n.close(true));
|
|
66
69
|
}
|
|
67
70
|
if ('undefined' != typeof document) (0, __WEBPACK_EXTERNAL_MODULE__hmr_702ad2d3__.registerOverlay)(createOverlay, clearOverlay);
|
|
68
71
|
else console.info('[Rsbuild] Failed to display error overlay as document is not available, you can disable the `dev.client.overlay` option.');
|