@rsbuild/core 1.3.0-beta.0 → 1.3.0-beta.2
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 +18 -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 +5 -1
- package/compiled/rspack-chain/index.js +67 -66
- package/compiled/rspack-chain/package.json +1 -1
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/dist/index.cjs +333 -299
- package/dist/index.js +333 -299
- 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 +18 -2
- package/dist-types/helpers/index.d.ts +0 -1
- package/dist-types/plugins/css.d.ts +1 -1
- package/dist-types/restart.d.ts +18 -0
- package/dist-types/server/cliShortcuts.d.ts +1 -1
- package/dist-types/types/context.d.ts +10 -8
- package/package.json +5 -5
- package/types.d.ts +56 -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
|
+
3561: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(7515);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(1878).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
7515: (__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__(3368);
|
|
16
|
+
var _utils = __nccwpck_require__(1878);
|
|
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
|
+
3368: (__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,22 +258,22 @@
|
|
|
258
258
|
},
|
|
259
259
|
});
|
|
260
260
|
var _postcssImportParser = _interopRequireDefault(
|
|
261
|
-
__nccwpck_require__(
|
|
261
|
+
__nccwpck_require__(4043),
|
|
262
262
|
);
|
|
263
263
|
var _postcssIcssParser = _interopRequireDefault(
|
|
264
|
-
__nccwpck_require__(
|
|
264
|
+
__nccwpck_require__(6102),
|
|
265
265
|
);
|
|
266
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
266
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(4721));
|
|
267
267
|
function _interopRequireDefault(obj) {
|
|
268
268
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
269
269
|
}
|
|
270
270
|
},
|
|
271
|
-
|
|
271
|
+
6102: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
272
272
|
"use strict";
|
|
273
273
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
274
274
|
exports["default"] = void 0;
|
|
275
275
|
var _icssUtils = __nccwpck_require__(4531);
|
|
276
|
-
var _utils = __nccwpck_require__(
|
|
276
|
+
var _utils = __nccwpck_require__(1878);
|
|
277
277
|
const plugin = (options = {}) => ({
|
|
278
278
|
postcssPlugin: "postcss-icss-parser",
|
|
279
279
|
async OnceExit(root) {
|
|
@@ -372,14 +372,14 @@
|
|
|
372
372
|
plugin.postcss = true;
|
|
373
373
|
var _default = (exports["default"] = plugin);
|
|
374
374
|
},
|
|
375
|
-
|
|
375
|
+
4043: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
376
376
|
"use strict";
|
|
377
377
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
378
378
|
exports["default"] = void 0;
|
|
379
379
|
var _postcssValueParser = _interopRequireDefault(
|
|
380
380
|
__nccwpck_require__(2948),
|
|
381
381
|
);
|
|
382
|
-
var _utils = __nccwpck_require__(
|
|
382
|
+
var _utils = __nccwpck_require__(1878);
|
|
383
383
|
function _interopRequireDefault(obj) {
|
|
384
384
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
385
385
|
}
|
|
@@ -684,14 +684,14 @@
|
|
|
684
684
|
plugin.postcss = true;
|
|
685
685
|
var _default = (exports["default"] = plugin);
|
|
686
686
|
},
|
|
687
|
-
|
|
687
|
+
4721: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
688
688
|
"use strict";
|
|
689
689
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
690
690
|
exports["default"] = void 0;
|
|
691
691
|
var _postcssValueParser = _interopRequireDefault(
|
|
692
692
|
__nccwpck_require__(2948),
|
|
693
693
|
);
|
|
694
|
-
var _utils = __nccwpck_require__(
|
|
694
|
+
var _utils = __nccwpck_require__(1878);
|
|
695
695
|
function _interopRequireDefault(obj) {
|
|
696
696
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
697
697
|
}
|
|
@@ -1034,7 +1034,7 @@
|
|
|
1034
1034
|
plugin.postcss = true;
|
|
1035
1035
|
var _default = (exports["default"] = plugin);
|
|
1036
1036
|
},
|
|
1037
|
-
|
|
1037
|
+
1878: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1038
1038
|
"use strict";
|
|
1039
1039
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1040
1040
|
exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
|
|
@@ -8098,6 +8098,6 @@
|
|
|
8098
8098
|
}
|
|
8099
8099
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8100
8100
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8101
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8101
|
+
var __webpack_exports__ = __nccwpck_require__(3561);
|
|
8102
8102
|
module.exports = __webpack_exports__;
|
|
8103
8103
|
})();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
336: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const { HtmlWebpackChildCompiler } = __nccwpck_require__(
|
|
5
|
+
const { HtmlWebpackChildCompiler } = __nccwpck_require__(517);
|
|
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
|
+
517: (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
|
+
555: (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
|
+
366: (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
|
+
21: (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
|
+
948: (module) => {
|
|
543
543
|
const voidTags = [
|
|
544
544
|
"area",
|
|
545
545
|
"base",
|
|
@@ -607,19 +607,19 @@
|
|
|
607
607
|
htmlTagObjectToString,
|
|
608
608
|
};
|
|
609
609
|
},
|
|
610
|
-
|
|
610
|
+
697: (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__(336);
|
|
617
617
|
const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
|
|
618
|
-
__nccwpck_require__(
|
|
619
|
-
const prettyError = __nccwpck_require__(
|
|
620
|
-
const chunkSorter = __nccwpck_require__(
|
|
618
|
+
__nccwpck_require__(948);
|
|
619
|
+
const prettyError = __nccwpck_require__(366);
|
|
620
|
+
const chunkSorter = __nccwpck_require__(555);
|
|
621
621
|
const getHtmlRspackPluginHooks =
|
|
622
|
-
__nccwpck_require__(
|
|
622
|
+
__nccwpck_require__(21).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__(697);
|
|
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
|
+
370: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(528)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
528: (__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__(489);
|
|
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
|
+
489: (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__(370);
|
|
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,
|
|
@@ -238,6 +238,9 @@ declare namespace Config {
|
|
|
238
238
|
environment(value: RspackOutput['environment']): this;
|
|
239
239
|
compareBeforeEmit(value: RspackOutput['compareBeforeEmit']): this;
|
|
240
240
|
wasmLoading(value: RspackOutput['wasmLoading']): this;
|
|
241
|
+
webassemblyModuleFilename(
|
|
242
|
+
value: RspackOutput['webassemblyModuleFilename'],
|
|
243
|
+
): this;
|
|
241
244
|
enabledWasmLoadingTypes(
|
|
242
245
|
value: RspackOutput['enabledWasmLoadingTypes'],
|
|
243
246
|
): this;
|
|
@@ -340,6 +343,7 @@ declare namespace Config {
|
|
|
340
343
|
|
|
341
344
|
type RspackResolve = Required<NonNullable<Configuration['resolve']>>;
|
|
342
345
|
type ResolvePlugin = Exclude<
|
|
346
|
+
// @ts-expect-error Rspack does not supports resolve plugin
|
|
343
347
|
NonNullable<ResolveOptions['plugins']>[number],
|
|
344
348
|
'...'
|
|
345
349
|
>;
|
|
@@ -627,7 +627,7 @@
|
|
|
627
627
|
};
|
|
628
628
|
exports.toString = toString;
|
|
629
629
|
},
|
|
630
|
-
|
|
630
|
+
331: (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
|
+
21: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
644
|
+
const createMap = __nccwpck_require__(346);
|
|
645
|
+
const createChainable = __nccwpck_require__(157);
|
|
646
646
|
module.exports = createMap(createChainable(Object));
|
|
647
647
|
},
|
|
648
|
-
|
|
649
|
-
const createSet = __nccwpck_require__(
|
|
650
|
-
const createChainable = __nccwpck_require__(
|
|
648
|
+
251: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
649
|
+
const createSet = __nccwpck_require__(392);
|
|
650
|
+
const createChainable = __nccwpck_require__(157);
|
|
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
|
+
634: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
654
|
+
const Callable = __nccwpck_require__(331);
|
|
655
|
+
const createMap = __nccwpck_require__(346);
|
|
656
|
+
const createChainable = __nccwpck_require__(157);
|
|
657
|
+
const createValue = __nccwpck_require__(645);
|
|
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
|
+
325: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
661
|
+
const ChainedMap = __nccwpck_require__(21);
|
|
662
|
+
const ChainedValueMap = __nccwpck_require__(634);
|
|
663
|
+
const ChainedSet = __nccwpck_require__(251);
|
|
664
|
+
const Resolve = __nccwpck_require__(407);
|
|
665
|
+
const ResolveLoader = __nccwpck_require__(816);
|
|
666
|
+
const Output = __nccwpck_require__(970);
|
|
667
|
+
const DevServer = __nccwpck_require__(863);
|
|
668
|
+
const Plugin = __nccwpck_require__(28);
|
|
669
|
+
const Module = __nccwpck_require__(51);
|
|
670
|
+
const Optimization = __nccwpck_require__(42);
|
|
671
|
+
const Performance = __nccwpck_require__(533);
|
|
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
|
+
863: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
849
|
+
const ChainedMap = __nccwpck_require__(21);
|
|
850
|
+
const ChainedSet = __nccwpck_require__(251);
|
|
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
|
+
51: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
923
|
+
const ChainedMap = __nccwpck_require__(21);
|
|
924
|
+
const Rule = __nccwpck_require__(301);
|
|
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
|
+
42: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
980
|
+
const ChainedMap = __nccwpck_require__(21);
|
|
981
|
+
const ChainedValueMap = __nccwpck_require__(634);
|
|
982
|
+
const Plugin = __nccwpck_require__(28);
|
|
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
|
+
307: (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
|
+
970: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1077
|
+
const ChainedMap = __nccwpck_require__(21);
|
|
1078
1078
|
module.exports = class extends ChainedMap {
|
|
1079
1079
|
constructor(parent) {
|
|
1080
1080
|
super(parent);
|
|
@@ -1120,6 +1120,7 @@
|
|
|
1120
1120
|
"environment",
|
|
1121
1121
|
"compareBeforeEmit",
|
|
1122
1122
|
"wasmLoading",
|
|
1123
|
+
"webassemblyModuleFilename",
|
|
1123
1124
|
"enabledWasmLoadingTypes",
|
|
1124
1125
|
"iife",
|
|
1125
1126
|
"module",
|
|
@@ -1128,8 +1129,8 @@
|
|
|
1128
1129
|
}
|
|
1129
1130
|
};
|
|
1130
1131
|
},
|
|
1131
|
-
|
|
1132
|
-
const ChainedValueMap = __nccwpck_require__(
|
|
1132
|
+
533: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1133
|
+
const ChainedValueMap = __nccwpck_require__(634);
|
|
1133
1134
|
module.exports = class extends ChainedValueMap {
|
|
1134
1135
|
constructor(parent) {
|
|
1135
1136
|
super(parent);
|
|
@@ -1142,9 +1143,9 @@
|
|
|
1142
1143
|
}
|
|
1143
1144
|
};
|
|
1144
1145
|
},
|
|
1145
|
-
|
|
1146
|
-
const ChainedMap = __nccwpck_require__(
|
|
1147
|
-
const Orderable = __nccwpck_require__(
|
|
1146
|
+
28: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1147
|
+
const ChainedMap = __nccwpck_require__(21);
|
|
1148
|
+
const Orderable = __nccwpck_require__(307);
|
|
1148
1149
|
module.exports = Orderable(
|
|
1149
1150
|
class extends ChainedMap {
|
|
1150
1151
|
constructor(parent, name, type = "plugin") {
|
|
@@ -1198,7 +1199,7 @@
|
|
|
1198
1199
|
}
|
|
1199
1200
|
if (typeof plugin === "string") {
|
|
1200
1201
|
pluginPath = plugin;
|
|
1201
|
-
plugin = __nccwpck_require__(
|
|
1202
|
+
plugin = __nccwpck_require__(450)(pluginPath);
|
|
1202
1203
|
}
|
|
1203
1204
|
const constructorName = plugin.__expression
|
|
1204
1205
|
? `(${plugin.__expression})`
|
|
@@ -1216,10 +1217,10 @@
|
|
|
1216
1217
|
},
|
|
1217
1218
|
);
|
|
1218
1219
|
},
|
|
1219
|
-
|
|
1220
|
-
const ChainedMap = __nccwpck_require__(
|
|
1221
|
-
const ChainedSet = __nccwpck_require__(
|
|
1222
|
-
const Plugin = __nccwpck_require__(
|
|
1220
|
+
407: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1221
|
+
const ChainedMap = __nccwpck_require__(21);
|
|
1222
|
+
const ChainedSet = __nccwpck_require__(251);
|
|
1223
|
+
const Plugin = __nccwpck_require__(28);
|
|
1223
1224
|
const childMaps = ["alias", "fallback", "byDependency", "extensionAlias"];
|
|
1224
1225
|
const childSets = [
|
|
1225
1226
|
"aliasFields",
|
|
@@ -1298,9 +1299,9 @@
|
|
|
1298
1299
|
}
|
|
1299
1300
|
};
|
|
1300
1301
|
},
|
|
1301
|
-
|
|
1302
|
-
const Resolve = __nccwpck_require__(
|
|
1303
|
-
const ChainedSet = __nccwpck_require__(
|
|
1302
|
+
816: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1303
|
+
const Resolve = __nccwpck_require__(407);
|
|
1304
|
+
const ChainedSet = __nccwpck_require__(251);
|
|
1304
1305
|
module.exports = class extends Resolve {
|
|
1305
1306
|
constructor(parent) {
|
|
1306
1307
|
super(parent);
|
|
@@ -1327,12 +1328,12 @@
|
|
|
1327
1328
|
}
|
|
1328
1329
|
};
|
|
1329
1330
|
},
|
|
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__(
|
|
1331
|
+
301: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1332
|
+
const ChainedMap = __nccwpck_require__(21);
|
|
1333
|
+
const ChainedSet = __nccwpck_require__(251);
|
|
1334
|
+
const Orderable = __nccwpck_require__(307);
|
|
1335
|
+
const Use = __nccwpck_require__(380);
|
|
1336
|
+
const Resolve = __nccwpck_require__(407);
|
|
1336
1337
|
function toArray(arr) {
|
|
1337
1338
|
return Array.isArray(arr) ? arr : [arr];
|
|
1338
1339
|
}
|
|
@@ -1460,10 +1461,10 @@
|
|
|
1460
1461
|
);
|
|
1461
1462
|
module.exports = Rule;
|
|
1462
1463
|
},
|
|
1463
|
-
|
|
1464
|
+
380: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1464
1465
|
const merge = __nccwpck_require__(779);
|
|
1465
|
-
const ChainedMap = __nccwpck_require__(
|
|
1466
|
-
const Orderable = __nccwpck_require__(
|
|
1466
|
+
const ChainedMap = __nccwpck_require__(21);
|
|
1467
|
+
const Orderable = __nccwpck_require__(307);
|
|
1467
1468
|
module.exports = Orderable(
|
|
1468
1469
|
class extends ChainedMap {
|
|
1469
1470
|
constructor(parent, name) {
|
|
@@ -1496,7 +1497,7 @@
|
|
|
1496
1497
|
},
|
|
1497
1498
|
);
|
|
1498
1499
|
},
|
|
1499
|
-
|
|
1500
|
+
157: (module) => {
|
|
1500
1501
|
module.exports = function createChainable(superClass) {
|
|
1501
1502
|
return class extends superClass {
|
|
1502
1503
|
constructor(parent) {
|
|
@@ -1513,7 +1514,7 @@
|
|
|
1513
1514
|
};
|
|
1514
1515
|
};
|
|
1515
1516
|
},
|
|
1516
|
-
|
|
1517
|
+
346: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1517
1518
|
const merge = __nccwpck_require__(779);
|
|
1518
1519
|
module.exports = function createMap(superClass) {
|
|
1519
1520
|
return class extends superClass {
|
|
@@ -1637,7 +1638,7 @@
|
|
|
1637
1638
|
};
|
|
1638
1639
|
};
|
|
1639
1640
|
},
|
|
1640
|
-
|
|
1641
|
+
392: (module) => {
|
|
1641
1642
|
module.exports = function createSet(superClass) {
|
|
1642
1643
|
return class extends superClass {
|
|
1643
1644
|
constructor(...args) {
|
|
@@ -1687,7 +1688,7 @@
|
|
|
1687
1688
|
};
|
|
1688
1689
|
};
|
|
1689
1690
|
},
|
|
1690
|
-
|
|
1691
|
+
645: (module) => {
|
|
1691
1692
|
module.exports = function createValue(superClass) {
|
|
1692
1693
|
return class extends superClass {
|
|
1693
1694
|
constructor(...args) {
|
|
@@ -1725,7 +1726,7 @@
|
|
|
1725
1726
|
};
|
|
1726
1727
|
};
|
|
1727
1728
|
},
|
|
1728
|
-
|
|
1729
|
+
450: (module) => {
|
|
1729
1730
|
function webpackEmptyContext(req) {
|
|
1730
1731
|
var e = new Error("Cannot find module '" + req + "'");
|
|
1731
1732
|
e.code = "MODULE_NOT_FOUND";
|
|
@@ -1733,7 +1734,7 @@
|
|
|
1733
1734
|
}
|
|
1734
1735
|
webpackEmptyContext.keys = () => [];
|
|
1735
1736
|
webpackEmptyContext.resolve = webpackEmptyContext;
|
|
1736
|
-
webpackEmptyContext.id =
|
|
1737
|
+
webpackEmptyContext.id = 450;
|
|
1737
1738
|
module.exports = webpackEmptyContext;
|
|
1738
1739
|
},
|
|
1739
1740
|
};
|
|
@@ -1763,6 +1764,6 @@
|
|
|
1763
1764
|
})();
|
|
1764
1765
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
1765
1766
|
__nccwpck_require__.ab = __dirname + "/";
|
|
1766
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
1767
|
+
var __webpack_exports__ = __nccwpck_require__(325);
|
|
1767
1768
|
module.exports = __webpack_exports__;
|
|
1768
1769
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"rspack-chain","author":"rspack-contrib","version":"1.2.
|
|
1
|
+
{"name":"rspack-chain","author":"rspack-contrib","version":"1.2.3","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
|
+
513: (__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
|
+
140: (__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__(513);
|
|
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__(140);
|
|
316
316
|
Object.defineProperty(exports, "getCompilerHooks", {
|
|
317
317
|
enumerable: true,
|
|
318
318
|
get: function () {
|