@rspack/core 1.1.1 → 1.1.3
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/dist/Chunk.d.ts +1 -2
- package/dist/Compilation.d.ts +27 -5
- package/dist/Dependency.d.ts +4 -2
- package/dist/Module.d.ts +1 -0
- package/dist/ModuleGraph.d.ts +10 -0
- package/dist/builtin-loader/lightningcss/index.d.ts +5 -0
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +3 -4
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +5 -0
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +3 -16
- package/dist/config/normalization.d.ts +2 -1
- package/dist/config/types.d.ts +48 -7
- package/dist/config/zod.d.ts +187 -56
- package/dist/index.js +361 -276
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -813,7 +813,7 @@ __export(exports_exports, {
|
|
|
813
813
|
var import_package = require("../package.json");
|
|
814
814
|
|
|
815
815
|
// src/Compilation.ts
|
|
816
|
-
var
|
|
816
|
+
var import_binding6 = require("@rspack/binding");
|
|
817
817
|
var liteTapable = __toESM(require("@rspack/lite-tapable"));
|
|
818
818
|
|
|
819
819
|
// src/Chunk.ts
|
|
@@ -1081,29 +1081,25 @@ var Chunk = class _Chunk {
|
|
|
1081
1081
|
__internal__innerUkey() {
|
|
1082
1082
|
return this.#inner.__inner_ukey;
|
|
1083
1083
|
}
|
|
1084
|
-
__internal_to_path_data_chunk() {
|
|
1085
|
-
return {
|
|
1086
|
-
id: this.id,
|
|
1087
|
-
name: this.name,
|
|
1088
|
-
hash: this.hash,
|
|
1089
|
-
contentHash: this.contentHash
|
|
1090
|
-
};
|
|
1091
|
-
}
|
|
1092
1084
|
};
|
|
1093
1085
|
|
|
1094
1086
|
// src/ChunkGraph.ts
|
|
1095
|
-
var
|
|
1087
|
+
var import_binding4 = require("@rspack/binding");
|
|
1096
1088
|
|
|
1097
1089
|
// src/Module.ts
|
|
1098
|
-
var
|
|
1090
|
+
var import_binding3 = require("@rspack/binding");
|
|
1099
1091
|
|
|
1100
1092
|
// src/Dependency.ts
|
|
1101
|
-
var import_binding3 = require("@rspack/binding");
|
|
1102
1093
|
var Dependency = class _Dependency {
|
|
1094
|
+
#inner;
|
|
1103
1095
|
static __from_binding(binding3) {
|
|
1104
1096
|
return new _Dependency(binding3);
|
|
1105
1097
|
}
|
|
1098
|
+
static __to_binding(data) {
|
|
1099
|
+
return data.#inner;
|
|
1100
|
+
}
|
|
1106
1101
|
constructor(binding3) {
|
|
1102
|
+
this.#inner = binding3;
|
|
1107
1103
|
Object.defineProperties(this, {
|
|
1108
1104
|
type: {
|
|
1109
1105
|
enumerable: true,
|
|
@@ -1129,9 +1125,7 @@ var Dependency = class _Dependency {
|
|
|
1129
1125
|
return binding3.critical;
|
|
1130
1126
|
},
|
|
1131
1127
|
set(val) {
|
|
1132
|
-
|
|
1133
|
-
binding3.critical = val;
|
|
1134
|
-
}
|
|
1128
|
+
binding3.critical = val;
|
|
1135
1129
|
}
|
|
1136
1130
|
}
|
|
1137
1131
|
});
|
|
@@ -1339,6 +1333,9 @@ var Module = class _Module {
|
|
|
1339
1333
|
MODULE_MAPPINGS.set(binding3, module2);
|
|
1340
1334
|
return module2;
|
|
1341
1335
|
}
|
|
1336
|
+
static __to_binding(module2) {
|
|
1337
|
+
return module2.#inner;
|
|
1338
|
+
}
|
|
1342
1339
|
constructor(module2, compilation) {
|
|
1343
1340
|
this.#inner = module2;
|
|
1344
1341
|
Object.defineProperties(this, {
|
|
@@ -1396,7 +1393,7 @@ var Module = class _Module {
|
|
|
1396
1393
|
modules: {
|
|
1397
1394
|
enumerable: true,
|
|
1398
1395
|
get() {
|
|
1399
|
-
if (module2 instanceof
|
|
1396
|
+
if (module2 instanceof import_binding3.JsModule) {
|
|
1400
1397
|
return module2.modules ? module2.modules.map((m) => _Module.__from_binding(m)) : void 0;
|
|
1401
1398
|
}
|
|
1402
1399
|
return void 0;
|
|
@@ -1484,14 +1481,14 @@ var ChunkGraph = class {
|
|
|
1484
1481
|
this.compilation = compilation;
|
|
1485
1482
|
}
|
|
1486
1483
|
getChunkModules(chunk) {
|
|
1487
|
-
return (0,
|
|
1484
|
+
return (0, import_binding4.__chunk_graph_inner_get_chunk_modules)(
|
|
1488
1485
|
chunk.__internal__innerUkey(),
|
|
1489
1486
|
this.compilation.__internal_getInner()
|
|
1490
1487
|
).map((m) => Module.__from_binding(m, this.compilation));
|
|
1491
1488
|
}
|
|
1492
1489
|
getChunkModulesIterable(chunk) {
|
|
1493
1490
|
return new Set(
|
|
1494
|
-
(0,
|
|
1491
|
+
(0, import_binding4.__chunk_graph_inner_get_chunk_modules)(
|
|
1495
1492
|
chunk.__internal__innerUkey(),
|
|
1496
1493
|
this.compilation.__internal_getInner()
|
|
1497
1494
|
).map((m) => Module.__from_binding(m, this.compilation))
|
|
@@ -1499,7 +1496,7 @@ var ChunkGraph = class {
|
|
|
1499
1496
|
}
|
|
1500
1497
|
getChunkEntryModulesIterable(chunk) {
|
|
1501
1498
|
return new Set(
|
|
1502
|
-
(0,
|
|
1499
|
+
(0, import_binding4.__chunk_graph_inner_get_chunk_entry_modules)(
|
|
1503
1500
|
chunk.__internal__innerUkey(),
|
|
1504
1501
|
this.compilation.__internal_getInner()
|
|
1505
1502
|
).map((m) => Module.__from_binding(m, this.compilation))
|
|
@@ -1507,7 +1504,7 @@ var ChunkGraph = class {
|
|
|
1507
1504
|
}
|
|
1508
1505
|
getChunkEntryDependentChunksIterable(chunk) {
|
|
1509
1506
|
return new Set(
|
|
1510
|
-
(0,
|
|
1507
|
+
(0, import_binding4.__chunk_graph_inner_get_chunk_entry_dependent_chunks_iterable)(
|
|
1511
1508
|
chunk.__internal__innerUkey(),
|
|
1512
1509
|
this.compilation.__internal_getInner()
|
|
1513
1510
|
).map(
|
|
@@ -1517,7 +1514,7 @@ var ChunkGraph = class {
|
|
|
1517
1514
|
}
|
|
1518
1515
|
getChunkModulesIterableBySourceType(chunk, sourceType) {
|
|
1519
1516
|
return new Set(
|
|
1520
|
-
(0,
|
|
1517
|
+
(0, import_binding4.__chunk_graph_inner_get_chunk_modules_iterable_by_source_type)(
|
|
1521
1518
|
chunk.__internal__innerUkey(),
|
|
1522
1519
|
sourceType,
|
|
1523
1520
|
this.compilation.__internal_getInner()
|
|
@@ -1527,7 +1524,7 @@ var ChunkGraph = class {
|
|
|
1527
1524
|
};
|
|
1528
1525
|
|
|
1529
1526
|
// src/Entrypoint.ts
|
|
1530
|
-
var
|
|
1527
|
+
var import_binding5 = require("@rspack/binding");
|
|
1531
1528
|
var Entrypoint = class _Entrypoint extends ChunkGroup {
|
|
1532
1529
|
static __from_binding(chunk, compilation) {
|
|
1533
1530
|
return new _Entrypoint(chunk, compilation);
|
|
@@ -1536,7 +1533,7 @@ var Entrypoint = class _Entrypoint extends ChunkGroup {
|
|
|
1536
1533
|
super(inner, compilation);
|
|
1537
1534
|
}
|
|
1538
1535
|
getRuntimeChunk() {
|
|
1539
|
-
const c = (0,
|
|
1536
|
+
const c = (0, import_binding5.__entrypoint_inner_get_runtime_chunk)(
|
|
1540
1537
|
this.__internal__innerUkey(),
|
|
1541
1538
|
this.__internal__innerCompilation()
|
|
1542
1539
|
);
|
|
@@ -1558,6 +1555,25 @@ var cutOffByFlag = (stack, flag) => {
|
|
|
1558
1555
|
};
|
|
1559
1556
|
var cutOffLoaderExecution = (stack) => cutOffByFlag(stack, loaderFlag);
|
|
1560
1557
|
|
|
1558
|
+
// src/ModuleGraph.ts
|
|
1559
|
+
var ModuleGraph = class _ModuleGraph {
|
|
1560
|
+
static __from_binding(binding3) {
|
|
1561
|
+
return new _ModuleGraph(binding3);
|
|
1562
|
+
}
|
|
1563
|
+
#inner;
|
|
1564
|
+
constructor(binding3) {
|
|
1565
|
+
this.#inner = binding3;
|
|
1566
|
+
}
|
|
1567
|
+
getModule(dependency) {
|
|
1568
|
+
const binding3 = this.#inner.getModule(Dependency.__to_binding(dependency));
|
|
1569
|
+
return binding3 ? Module.__from_binding(binding3) : null;
|
|
1570
|
+
}
|
|
1571
|
+
getIssuer(module2) {
|
|
1572
|
+
const binding3 = this.#inner.getIssuer(Module.__to_binding(module2));
|
|
1573
|
+
return binding3 ? Module.__from_binding(binding3) : null;
|
|
1574
|
+
}
|
|
1575
|
+
};
|
|
1576
|
+
|
|
1561
1577
|
// src/util/index.ts
|
|
1562
1578
|
function isNil(value) {
|
|
1563
1579
|
return value === null || value === void 0;
|
|
@@ -2917,6 +2933,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
2917
2933
|
this.childrenCounters = {};
|
|
2918
2934
|
this.children = [];
|
|
2919
2935
|
this.chunkGraph = new ChunkGraph(this);
|
|
2936
|
+
this.moduleGraph = ModuleGraph.__from_binding(inner.moduleGraph);
|
|
2920
2937
|
}
|
|
2921
2938
|
get hash() {
|
|
2922
2939
|
return __privateGet(this, _inner).hash;
|
|
@@ -3171,7 +3188,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3171
3188
|
for (let i = 0; i < errs.length; i++) {
|
|
3172
3189
|
const error = errs[i];
|
|
3173
3190
|
inner.pushDiagnostic(
|
|
3174
|
-
JsRspackDiagnostic.__to_binding(error,
|
|
3191
|
+
JsRspackDiagnostic.__to_binding(error, import_binding6.JsRspackSeverity.Error)
|
|
3175
3192
|
);
|
|
3176
3193
|
}
|
|
3177
3194
|
return Reflect.apply(target2, thisArg, errs);
|
|
@@ -3197,7 +3214,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3197
3214
|
const errList = errs.map((error) => {
|
|
3198
3215
|
return JsRspackDiagnostic.__to_binding(
|
|
3199
3216
|
error,
|
|
3200
|
-
|
|
3217
|
+
import_binding6.JsRspackSeverity.Error
|
|
3201
3218
|
);
|
|
3202
3219
|
});
|
|
3203
3220
|
inner.spliceDiagnostic(0, 0, errList);
|
|
@@ -3210,7 +3227,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3210
3227
|
const errList = errors2.map((error) => {
|
|
3211
3228
|
return JsRspackDiagnostic.__to_binding(
|
|
3212
3229
|
error,
|
|
3213
|
-
|
|
3230
|
+
import_binding6.JsRspackSeverity.Error
|
|
3214
3231
|
);
|
|
3215
3232
|
});
|
|
3216
3233
|
inner.spliceDiagnostic(startIdx, startIdx + delCount, errList);
|
|
@@ -3237,7 +3254,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3237
3254
|
0,
|
|
3238
3255
|
length,
|
|
3239
3256
|
errors.map((error) => {
|
|
3240
|
-
return JsRspackDiagnostic.__to_binding(error,
|
|
3257
|
+
return JsRspackDiagnostic.__to_binding(error, import_binding6.JsRspackSeverity.Error);
|
|
3241
3258
|
})
|
|
3242
3259
|
);
|
|
3243
3260
|
}
|
|
@@ -3254,7 +3271,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3254
3271
|
thisArg,
|
|
3255
3272
|
processWarningsHook.call(warns).map((warn) => {
|
|
3256
3273
|
inner.pushDiagnostic(
|
|
3257
|
-
JsRspackDiagnostic.__to_binding(warn,
|
|
3274
|
+
JsRspackDiagnostic.__to_binding(warn, import_binding6.JsRspackSeverity.Warn)
|
|
3258
3275
|
);
|
|
3259
3276
|
return warn;
|
|
3260
3277
|
})
|
|
@@ -3285,7 +3302,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3285
3302
|
warnings2.map((warn) => {
|
|
3286
3303
|
return JsRspackDiagnostic.__to_binding(
|
|
3287
3304
|
warn,
|
|
3288
|
-
|
|
3305
|
+
import_binding6.JsRspackSeverity.Warn
|
|
3289
3306
|
);
|
|
3290
3307
|
})
|
|
3291
3308
|
);
|
|
@@ -3297,7 +3314,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3297
3314
|
handler(target2, thisArg, [startIdx, delCount, ...warns]) {
|
|
3298
3315
|
warns = processWarningsHook.call(warns);
|
|
3299
3316
|
const warnList = warns.map((warn) => {
|
|
3300
|
-
return JsRspackDiagnostic.__to_binding(warn,
|
|
3317
|
+
return JsRspackDiagnostic.__to_binding(warn, import_binding6.JsRspackSeverity.Warn);
|
|
3301
3318
|
});
|
|
3302
3319
|
inner.spliceDiagnostic(startIdx, startIdx + delCount, warnList);
|
|
3303
3320
|
return Reflect.apply(target2, thisArg, [
|
|
@@ -3323,33 +3340,41 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3323
3340
|
0,
|
|
3324
3341
|
length,
|
|
3325
3342
|
warnings.map((warning) => {
|
|
3326
|
-
return JsRspackDiagnostic.__to_binding(warning,
|
|
3343
|
+
return JsRspackDiagnostic.__to_binding(warning, import_binding6.JsRspackSeverity.Warn);
|
|
3327
3344
|
})
|
|
3328
3345
|
);
|
|
3329
3346
|
}
|
|
3330
3347
|
getPath(filename2, data = {}) {
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3348
|
+
var _a;
|
|
3349
|
+
const pathData = { ...data };
|
|
3350
|
+
if (data.contentHashType && ((_a = data.chunk) == null ? void 0 : _a.contentHash)) {
|
|
3351
|
+
pathData.contentHash = data.chunk.contentHash[data.contentHashType];
|
|
3352
|
+
}
|
|
3353
|
+
return __privateGet(this, _inner).getPath(filename2, pathData);
|
|
3335
3354
|
}
|
|
3336
3355
|
getPathWithInfo(filename2, data = {}) {
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3356
|
+
var _a;
|
|
3357
|
+
const pathData = { ...data };
|
|
3358
|
+
if (data.contentHashType && ((_a = data.chunk) == null ? void 0 : _a.contentHash)) {
|
|
3359
|
+
pathData.contentHash = data.chunk.contentHash[data.contentHashType];
|
|
3360
|
+
}
|
|
3361
|
+
return __privateGet(this, _inner).getPathWithInfo(filename2, pathData);
|
|
3341
3362
|
}
|
|
3342
3363
|
getAssetPath(filename2, data = {}) {
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3364
|
+
var _a;
|
|
3365
|
+
const pathData = { ...data };
|
|
3366
|
+
if (data.contentHashType && ((_a = data.chunk) == null ? void 0 : _a.contentHash)) {
|
|
3367
|
+
pathData.contentHash = data.chunk.contentHash[data.contentHashType];
|
|
3368
|
+
}
|
|
3369
|
+
return __privateGet(this, _inner).getAssetPath(filename2, pathData);
|
|
3347
3370
|
}
|
|
3348
3371
|
getAssetPathWithInfo(filename2, data = {}) {
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3372
|
+
var _a;
|
|
3373
|
+
const pathData = { ...data };
|
|
3374
|
+
if (data.contentHashType && ((_a = data.chunk) == null ? void 0 : _a.contentHash)) {
|
|
3375
|
+
pathData.contentHash = data.chunk.contentHash[data.contentHashType];
|
|
3376
|
+
}
|
|
3377
|
+
return __privateGet(this, _inner).getAssetPathWithInfo(filename2, pathData);
|
|
3353
3378
|
}
|
|
3354
3379
|
getLogger(name2) {
|
|
3355
3380
|
if (!name2) {
|
|
@@ -3616,6 +3641,18 @@ _Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_TRANSFER = 3e3;
|
|
|
3616
3641
|
_Compilation.PROCESS_ASSETS_STAGE_ANALYSE = 4e3;
|
|
3617
3642
|
_Compilation.PROCESS_ASSETS_STAGE_REPORT = 5e3;
|
|
3618
3643
|
var Compilation = _Compilation;
|
|
3644
|
+
var EntryData = class _EntryData {
|
|
3645
|
+
static __from_binding(binding3) {
|
|
3646
|
+
return new _EntryData(binding3);
|
|
3647
|
+
}
|
|
3648
|
+
constructor(binding3) {
|
|
3649
|
+
this.dependencies = binding3.dependencies.map(Dependency.__from_binding);
|
|
3650
|
+
this.includeDependencies = binding3.includeDependencies.map(
|
|
3651
|
+
Dependency.__from_binding
|
|
3652
|
+
);
|
|
3653
|
+
this.options = binding3.options;
|
|
3654
|
+
}
|
|
3655
|
+
};
|
|
3619
3656
|
var Entries = class {
|
|
3620
3657
|
#data;
|
|
3621
3658
|
constructor(data) {
|
|
@@ -3625,7 +3662,8 @@ var Entries = class {
|
|
|
3625
3662
|
this.#data.clear();
|
|
3626
3663
|
}
|
|
3627
3664
|
forEach(callback, thisArg) {
|
|
3628
|
-
for (const [key,
|
|
3665
|
+
for (const [key, binding3] of this) {
|
|
3666
|
+
const value = EntryData.__from_binding(binding3);
|
|
3629
3667
|
callback.call(thisArg, value, key, this);
|
|
3630
3668
|
}
|
|
3631
3669
|
}
|
|
@@ -3638,7 +3676,7 @@ var Entries = class {
|
|
|
3638
3676
|
}
|
|
3639
3677
|
}
|
|
3640
3678
|
values() {
|
|
3641
|
-
return this.#data.values()[Symbol.iterator]();
|
|
3679
|
+
return this.#data.values().map(EntryData.__from_binding)[Symbol.iterator]();
|
|
3642
3680
|
}
|
|
3643
3681
|
[Symbol.iterator]() {
|
|
3644
3682
|
return this.entries();
|
|
@@ -3657,7 +3695,8 @@ var Entries = class {
|
|
|
3657
3695
|
return this.#data.delete(key);
|
|
3658
3696
|
}
|
|
3659
3697
|
get(key) {
|
|
3660
|
-
|
|
3698
|
+
const binding3 = this.#data.get(key);
|
|
3699
|
+
return binding3 ? EntryData.__from_binding(binding3) : void 0;
|
|
3661
3700
|
}
|
|
3662
3701
|
keys() {
|
|
3663
3702
|
return this.#data.keys()[Symbol.iterator]();
|
|
@@ -5090,40 +5129,40 @@ function create2(name2, resolve2, affectedHooks) {
|
|
|
5090
5129
|
}
|
|
5091
5130
|
|
|
5092
5131
|
// src/builtin-plugin/APIPlugin.ts
|
|
5093
|
-
var
|
|
5094
|
-
var APIPlugin = create2(
|
|
5132
|
+
var import_binding7 = require("@rspack/binding");
|
|
5133
|
+
var APIPlugin = create2(import_binding7.BuiltinPluginName.APIPlugin, () => {
|
|
5095
5134
|
});
|
|
5096
5135
|
|
|
5097
5136
|
// src/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.ts
|
|
5098
|
-
var
|
|
5137
|
+
var import_binding8 = require("@rspack/binding");
|
|
5099
5138
|
var ArrayPushCallbackChunkFormatPlugin = create2(
|
|
5100
|
-
|
|
5139
|
+
import_binding8.BuiltinPluginName.ArrayPushCallbackChunkFormatPlugin,
|
|
5101
5140
|
() => {
|
|
5102
5141
|
}
|
|
5103
5142
|
);
|
|
5104
5143
|
|
|
5105
5144
|
// src/builtin-plugin/AssetModulesPlugin.ts
|
|
5106
|
-
var
|
|
5145
|
+
var import_binding9 = require("@rspack/binding");
|
|
5107
5146
|
var AssetModulesPlugin = create2(
|
|
5108
|
-
|
|
5147
|
+
import_binding9.BuiltinPluginName.AssetModulesPlugin,
|
|
5109
5148
|
() => {
|
|
5110
5149
|
},
|
|
5111
5150
|
"compilation"
|
|
5112
5151
|
);
|
|
5113
5152
|
|
|
5114
5153
|
// src/builtin-plugin/AsyncWebAssemblyModulesPlugin.ts
|
|
5115
|
-
var
|
|
5154
|
+
var import_binding10 = require("@rspack/binding");
|
|
5116
5155
|
var AsyncWebAssemblyModulesPlugin = create2(
|
|
5117
|
-
|
|
5156
|
+
import_binding10.BuiltinPluginName.AsyncWebAssemblyModulesPlugin,
|
|
5118
5157
|
() => {
|
|
5119
5158
|
},
|
|
5120
5159
|
"compilation"
|
|
5121
5160
|
);
|
|
5122
5161
|
|
|
5123
5162
|
// src/builtin-plugin/BannerPlugin.ts
|
|
5124
|
-
var
|
|
5163
|
+
var import_binding11 = require("@rspack/binding");
|
|
5125
5164
|
var BannerPlugin = create2(
|
|
5126
|
-
|
|
5165
|
+
import_binding11.BuiltinPluginName.BannerPlugin,
|
|
5127
5166
|
(args) => {
|
|
5128
5167
|
if (typeof args === "string" || typeof args === "function") {
|
|
5129
5168
|
return {
|
|
@@ -5144,9 +5183,9 @@ var BannerPlugin = create2(
|
|
|
5144
5183
|
);
|
|
5145
5184
|
|
|
5146
5185
|
// src/builtin-plugin/BundlerInfoRspackPlugin.ts
|
|
5147
|
-
var
|
|
5186
|
+
var import_binding12 = require("@rspack/binding");
|
|
5148
5187
|
var BundlerInfoRspackPlugin = create2(
|
|
5149
|
-
|
|
5188
|
+
import_binding12.BuiltinPluginName.BundlerInfoRspackPlugin,
|
|
5150
5189
|
(options) => {
|
|
5151
5190
|
return {
|
|
5152
5191
|
version: options.version || "unknown",
|
|
@@ -5157,25 +5196,25 @@ var BundlerInfoRspackPlugin = create2(
|
|
|
5157
5196
|
);
|
|
5158
5197
|
|
|
5159
5198
|
// src/builtin-plugin/ChunkPrefetchPreloadPlugin.ts
|
|
5160
|
-
var
|
|
5199
|
+
var import_binding13 = require("@rspack/binding");
|
|
5161
5200
|
var ChunkPrefetchPreloadPlugin = create2(
|
|
5162
|
-
|
|
5201
|
+
import_binding13.BuiltinPluginName.ChunkPrefetchPreloadPlugin,
|
|
5163
5202
|
() => {
|
|
5164
5203
|
}
|
|
5165
5204
|
);
|
|
5166
5205
|
|
|
5167
5206
|
// src/builtin-plugin/CommonJsChunkFormatPlugin.ts
|
|
5168
|
-
var
|
|
5207
|
+
var import_binding14 = require("@rspack/binding");
|
|
5169
5208
|
var CommonJsChunkFormatPlugin = create2(
|
|
5170
|
-
|
|
5209
|
+
import_binding14.BuiltinPluginName.CommonJsChunkFormatPlugin,
|
|
5171
5210
|
() => {
|
|
5172
5211
|
}
|
|
5173
5212
|
);
|
|
5174
5213
|
|
|
5175
5214
|
// src/builtin-plugin/CopyRspackPlugin.ts
|
|
5176
|
-
var
|
|
5215
|
+
var import_binding15 = require("@rspack/binding");
|
|
5177
5216
|
var CopyRspackPlugin = create2(
|
|
5178
|
-
|
|
5217
|
+
import_binding15.BuiltinPluginName.CopyRspackPlugin,
|
|
5179
5218
|
(copy) => {
|
|
5180
5219
|
const ret = {
|
|
5181
5220
|
patterns: []
|
|
@@ -5195,7 +5234,7 @@ var CopyRspackPlugin = create2(
|
|
|
5195
5234
|
);
|
|
5196
5235
|
|
|
5197
5236
|
// src/builtin-plugin/css-extract/index.ts
|
|
5198
|
-
var
|
|
5237
|
+
var import_binding16 = require("@rspack/binding");
|
|
5199
5238
|
var import_node_path3 = require("path");
|
|
5200
5239
|
|
|
5201
5240
|
// src/builtin-plugin/css-extract/loader.ts
|
|
@@ -5231,7 +5270,7 @@ var CssExtractRspackPlugin = class {
|
|
|
5231
5270
|
this.options.pathinfo = true;
|
|
5232
5271
|
}
|
|
5233
5272
|
compiler.__internal__registerBuiltinPlugin({
|
|
5234
|
-
name:
|
|
5273
|
+
name: import_binding16.BuiltinPluginName.CssExtractRspackPlugin,
|
|
5235
5274
|
options: this.normalizeOptions(this.options)
|
|
5236
5275
|
});
|
|
5237
5276
|
}
|
|
@@ -5289,27 +5328,27 @@ CssExtractRspackPlugin.pluginName = PLUGIN_NAME;
|
|
|
5289
5328
|
CssExtractRspackPlugin.loader = LOADER_PATH;
|
|
5290
5329
|
|
|
5291
5330
|
// src/builtin-plugin/CssModulesPlugin.ts
|
|
5292
|
-
var
|
|
5331
|
+
var import_binding17 = require("@rspack/binding");
|
|
5293
5332
|
var CssModulesPlugin = create2(
|
|
5294
|
-
|
|
5333
|
+
import_binding17.BuiltinPluginName.CssModulesPlugin,
|
|
5295
5334
|
() => {
|
|
5296
5335
|
},
|
|
5297
5336
|
"compilation"
|
|
5298
5337
|
);
|
|
5299
5338
|
|
|
5300
5339
|
// src/builtin-plugin/DataUriPlugin.ts
|
|
5301
|
-
var
|
|
5340
|
+
var import_binding18 = require("@rspack/binding");
|
|
5302
5341
|
var DataUriPlugin = create2(
|
|
5303
|
-
|
|
5342
|
+
import_binding18.BuiltinPluginName.DataUriPlugin,
|
|
5304
5343
|
() => {
|
|
5305
5344
|
},
|
|
5306
5345
|
"compilation"
|
|
5307
5346
|
);
|
|
5308
5347
|
|
|
5309
5348
|
// src/builtin-plugin/DefinePlugin.ts
|
|
5310
|
-
var
|
|
5349
|
+
var import_binding19 = require("@rspack/binding");
|
|
5311
5350
|
var DefinePlugin = create2(
|
|
5312
|
-
|
|
5351
|
+
import_binding19.BuiltinPluginName.DefinePlugin,
|
|
5313
5352
|
function(define) {
|
|
5314
5353
|
var _a;
|
|
5315
5354
|
const supportsBigIntLiteral = ((_a = this.options.output.environment) == null ? void 0 : _a.bigIntLiteral) ?? false;
|
|
@@ -5353,25 +5392,25 @@ var normalizeValue = (define, supportsBigIntLiteral) => {
|
|
|
5353
5392
|
};
|
|
5354
5393
|
|
|
5355
5394
|
// src/builtin-plugin/DeterministicChunkIdsPlugin.ts
|
|
5356
|
-
var
|
|
5395
|
+
var import_binding20 = require("@rspack/binding");
|
|
5357
5396
|
var DeterministicChunkIdsPlugin = create2(
|
|
5358
|
-
|
|
5397
|
+
import_binding20.BuiltinPluginName.DeterministicChunkIdsPlugin,
|
|
5359
5398
|
() => {
|
|
5360
5399
|
},
|
|
5361
5400
|
"compilation"
|
|
5362
5401
|
);
|
|
5363
5402
|
|
|
5364
5403
|
// src/builtin-plugin/DeterministicModuleIdsPlugin.ts
|
|
5365
|
-
var
|
|
5404
|
+
var import_binding21 = require("@rspack/binding");
|
|
5366
5405
|
var DeterministicModuleIdsPlugin = create2(
|
|
5367
|
-
|
|
5406
|
+
import_binding21.BuiltinPluginName.DeterministicModuleIdsPlugin,
|
|
5368
5407
|
() => {
|
|
5369
5408
|
},
|
|
5370
5409
|
"compilation"
|
|
5371
5410
|
);
|
|
5372
5411
|
|
|
5373
5412
|
// src/builtin-plugin/DynamicEntryPlugin.ts
|
|
5374
|
-
var
|
|
5413
|
+
var import_binding25 = require("@rspack/binding");
|
|
5375
5414
|
|
|
5376
5415
|
// src/lib/EntryOptionPlugin.ts
|
|
5377
5416
|
var import_node_assert = __toESM(require("assert"));
|
|
@@ -5444,11 +5483,11 @@ var EntryOptionPlugin = class _EntryOptionPlugin {
|
|
|
5444
5483
|
var EntryOptionPlugin_default = EntryOptionPlugin;
|
|
5445
5484
|
|
|
5446
5485
|
// src/builtin-plugin/EntryPlugin.ts
|
|
5447
|
-
var
|
|
5486
|
+
var import_binding24 = require("@rspack/binding");
|
|
5448
5487
|
|
|
5449
5488
|
// src/config/adapter.ts
|
|
5450
5489
|
var import_node_assert3 = __toESM(require("assert"));
|
|
5451
|
-
var
|
|
5490
|
+
var import_binding23 = require("@rspack/binding");
|
|
5452
5491
|
|
|
5453
5492
|
// src/util/identifier.ts
|
|
5454
5493
|
var import_node_path4 = __toESM(require("path"));
|
|
@@ -5756,7 +5795,7 @@ function toFeatures(featureOptions) {
|
|
|
5756
5795
|
var import_node_querystring = __toESM(require("querystring"));
|
|
5757
5796
|
var import_node_assert2 = __toESM(require("assert"));
|
|
5758
5797
|
var import_node_util3 = require("util");
|
|
5759
|
-
var
|
|
5798
|
+
var import_binding22 = require("@rspack/binding");
|
|
5760
5799
|
var import_webpack_sources2 = require("../compiled/webpack-sources/index.js");
|
|
5761
5800
|
|
|
5762
5801
|
// src/NormalModule.ts
|
|
@@ -6351,7 +6390,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6351
6390
|
error.moduleIdentifier = this._module.identifier();
|
|
6352
6391
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
6353
6392
|
error,
|
|
6354
|
-
severity:
|
|
6393
|
+
severity: import_binding22.JsRspackSeverity.Error
|
|
6355
6394
|
});
|
|
6356
6395
|
};
|
|
6357
6396
|
loaderContext.emitWarning = function emitWarning(warn) {
|
|
@@ -6367,7 +6406,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6367
6406
|
warning.moduleIdentifier = this._module.identifier();
|
|
6368
6407
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
6369
6408
|
error: warning,
|
|
6370
|
-
severity:
|
|
6409
|
+
severity: import_binding22.JsRspackSeverity.Warn
|
|
6371
6410
|
});
|
|
6372
6411
|
};
|
|
6373
6412
|
loaderContext.emitFile = function emitFile(name2, content, sourceMap, assetInfo) {
|
|
@@ -6408,7 +6447,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6408
6447
|
moduleIdentifier: context2._module.moduleIdentifier
|
|
6409
6448
|
});
|
|
6410
6449
|
compiler._lastCompilation.__internal__pushDiagnostic(
|
|
6411
|
-
(0,
|
|
6450
|
+
(0, import_binding22.formatDiagnostic)(d)
|
|
6412
6451
|
);
|
|
6413
6452
|
}
|
|
6414
6453
|
};
|
|
@@ -6498,7 +6537,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6498
6537
|
});
|
|
6499
6538
|
try {
|
|
6500
6539
|
switch (loaderState) {
|
|
6501
|
-
case
|
|
6540
|
+
case import_binding22.JsLoaderState.Pitching: {
|
|
6502
6541
|
while (loaderContext.loaderIndex < loaderContext.loaders.length) {
|
|
6503
6542
|
const currentLoaderObject = loaderContext.loaders[loaderContext.loaderIndex];
|
|
6504
6543
|
if (currentLoaderObject.shouldYield()) break;
|
|
@@ -6526,7 +6565,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6526
6565
|
}
|
|
6527
6566
|
break;
|
|
6528
6567
|
}
|
|
6529
|
-
case
|
|
6568
|
+
case import_binding22.JsLoaderState.Normal: {
|
|
6530
6569
|
let content = context2.content;
|
|
6531
6570
|
let sourceMap = JsSourceMap.__from_binding(context2.sourceMap);
|
|
6532
6571
|
let additionalData = context2.additionalData;
|
|
@@ -7039,31 +7078,31 @@ var getRawModuleRule = (rule, path10, options, upperType) => {
|
|
|
7039
7078
|
function getRawRuleSetCondition(condition) {
|
|
7040
7079
|
if (typeof condition === "string") {
|
|
7041
7080
|
return {
|
|
7042
|
-
type:
|
|
7081
|
+
type: import_binding23.RawRuleSetConditionType.string,
|
|
7043
7082
|
string: condition
|
|
7044
7083
|
};
|
|
7045
7084
|
}
|
|
7046
7085
|
if (condition instanceof RegExp) {
|
|
7047
7086
|
return {
|
|
7048
|
-
type:
|
|
7087
|
+
type: import_binding23.RawRuleSetConditionType.regexp,
|
|
7049
7088
|
regexp: condition
|
|
7050
7089
|
};
|
|
7051
7090
|
}
|
|
7052
7091
|
if (typeof condition === "function") {
|
|
7053
7092
|
return {
|
|
7054
|
-
type:
|
|
7093
|
+
type: import_binding23.RawRuleSetConditionType.func,
|
|
7055
7094
|
func: condition
|
|
7056
7095
|
};
|
|
7057
7096
|
}
|
|
7058
7097
|
if (Array.isArray(condition)) {
|
|
7059
7098
|
return {
|
|
7060
|
-
type:
|
|
7099
|
+
type: import_binding23.RawRuleSetConditionType.array,
|
|
7061
7100
|
array: condition.map((i) => getRawRuleSetCondition(i))
|
|
7062
7101
|
};
|
|
7063
7102
|
}
|
|
7064
7103
|
if (typeof condition === "object" && condition !== null) {
|
|
7065
7104
|
return {
|
|
7066
|
-
type:
|
|
7105
|
+
type: import_binding23.RawRuleSetConditionType.logical,
|
|
7067
7106
|
logical: [getRawRuleSetLogicalConditions(condition)]
|
|
7068
7107
|
};
|
|
7069
7108
|
}
|
|
@@ -7298,31 +7337,54 @@ function getRawSnapshotOptions(_snapshot) {
|
|
|
7298
7337
|
return {};
|
|
7299
7338
|
}
|
|
7300
7339
|
function getRawExperiments(experiments3) {
|
|
7301
|
-
const { topLevelAwait, layers, incremental: incremental2, rspackFuture } = experiments3;
|
|
7340
|
+
const { topLevelAwait, layers, incremental: incremental2, rspackFuture, cache } = experiments3;
|
|
7302
7341
|
(0, import_node_assert3.default)(
|
|
7303
7342
|
!isNil(topLevelAwait) && !isNil(rspackFuture) && !isNil(layers) && !isNil(incremental2)
|
|
7304
7343
|
);
|
|
7305
7344
|
return {
|
|
7306
7345
|
layers,
|
|
7307
7346
|
topLevelAwait,
|
|
7347
|
+
cache: getRawExperimentCache(cache),
|
|
7308
7348
|
incremental: getRawIncremental(incremental2),
|
|
7309
7349
|
rspackFuture: getRawRspackFutureOptions(rspackFuture)
|
|
7310
7350
|
};
|
|
7311
7351
|
}
|
|
7352
|
+
function getRawExperimentCache(cache) {
|
|
7353
|
+
if (cache === void 0) {
|
|
7354
|
+
throw new Error("experiment cache can not be undefined");
|
|
7355
|
+
}
|
|
7356
|
+
if (typeof cache === "boolean") {
|
|
7357
|
+
return {
|
|
7358
|
+
type: cache ? "memory" : "disable"
|
|
7359
|
+
};
|
|
7360
|
+
}
|
|
7361
|
+
if (cache.type === "persistent") {
|
|
7362
|
+
const { type, snapshot, storage } = cache;
|
|
7363
|
+
return {
|
|
7364
|
+
type,
|
|
7365
|
+
snapshot,
|
|
7366
|
+
storage: [storage]
|
|
7367
|
+
};
|
|
7368
|
+
}
|
|
7369
|
+
return cache;
|
|
7370
|
+
}
|
|
7312
7371
|
function getRawIncremental(incremental2) {
|
|
7313
7372
|
if (incremental2 === false) {
|
|
7314
7373
|
return void 0;
|
|
7315
7374
|
}
|
|
7316
7375
|
return {
|
|
7317
7376
|
make: incremental2.make,
|
|
7318
|
-
emitAssets: incremental2.emitAssets,
|
|
7319
7377
|
inferAsyncModules: incremental2.inferAsyncModules,
|
|
7320
7378
|
providedExports: incremental2.providedExports,
|
|
7321
7379
|
dependenciesDiagnostics: incremental2.dependenciesDiagnostics,
|
|
7380
|
+
buildChunkGraph: incremental2.buildChunkGraph,
|
|
7322
7381
|
modulesHashes: incremental2.modulesHashes,
|
|
7323
7382
|
modulesCodegen: incremental2.modulesCodegen,
|
|
7324
7383
|
modulesRuntimeRequirements: incremental2.modulesRuntimeRequirements,
|
|
7325
|
-
|
|
7384
|
+
chunksRuntimeRequirements: incremental2.chunksRuntimeRequirements,
|
|
7385
|
+
chunksHashes: incremental2.chunksHashes,
|
|
7386
|
+
chunksRender: incremental2.chunksRender,
|
|
7387
|
+
emitAssets: incremental2.emitAssets
|
|
7326
7388
|
};
|
|
7327
7389
|
}
|
|
7328
7390
|
function getRawRspackFutureOptions(future) {
|
|
@@ -8517,6 +8579,7 @@ var applyInfrastructureLoggingDefaults = (infrastructureLogging2) => {
|
|
|
8517
8579
|
D(infrastructureLogging2, "appendOnly", !tty);
|
|
8518
8580
|
};
|
|
8519
8581
|
var applyExperimentsDefaults = (experiments3, { production }) => {
|
|
8582
|
+
F(experiments3, "cache", () => !production);
|
|
8520
8583
|
D(experiments3, "futureDefaults", false);
|
|
8521
8584
|
D(experiments3, "lazyCompilation", false);
|
|
8522
8585
|
D(experiments3, "asyncWebAssembly", experiments3.futureDefaults);
|
|
@@ -8533,6 +8596,9 @@ var applyExperimentsDefaults = (experiments3, { production }) => {
|
|
|
8533
8596
|
D(experiments3.incremental, "modulesHashes", false);
|
|
8534
8597
|
D(experiments3.incremental, "modulesCodegen", false);
|
|
8535
8598
|
D(experiments3.incremental, "modulesRuntimeRequirements", false);
|
|
8599
|
+
D(experiments3.incremental, "chunksRuntimeRequirements", false);
|
|
8600
|
+
D(experiments3.incremental, "chunksHashes", false);
|
|
8601
|
+
D(experiments3.incremental, "chunksRender", false);
|
|
8536
8602
|
D(experiments3.incremental, "emitAssets", true);
|
|
8537
8603
|
}
|
|
8538
8604
|
D(experiments3, "rspackFuture", {});
|
|
@@ -9478,6 +9544,7 @@ var getNormalizedRspackOptions = (config2) => {
|
|
|
9478
9544
|
plugins: nestedArray(config2.plugins, (p) => [...p]),
|
|
9479
9545
|
experiments: nestedConfig(config2.experiments, (experiments3) => ({
|
|
9480
9546
|
...experiments3,
|
|
9547
|
+
cache: experiments3.cache,
|
|
9481
9548
|
lazyCompilation: optionalNestedConfig(
|
|
9482
9549
|
experiments3.lazyCompilation,
|
|
9483
9550
|
(options) => options === true ? {} : options
|
|
@@ -9486,14 +9553,17 @@ var getNormalizedRspackOptions = (config2) => {
|
|
|
9486
9553
|
experiments3.incremental,
|
|
9487
9554
|
(options) => options === true ? {
|
|
9488
9555
|
make: true,
|
|
9489
|
-
emitAssets: true,
|
|
9490
9556
|
dependenciesDiagnostics: true,
|
|
9491
9557
|
inferAsyncModules: true,
|
|
9492
9558
|
providedExports: true,
|
|
9559
|
+
buildChunkGraph: true,
|
|
9493
9560
|
modulesHashes: true,
|
|
9494
9561
|
modulesCodegen: true,
|
|
9495
9562
|
modulesRuntimeRequirements: true,
|
|
9496
|
-
|
|
9563
|
+
chunksRuntimeRequirements: true,
|
|
9564
|
+
chunksHashes: true,
|
|
9565
|
+
chunksRender: true,
|
|
9566
|
+
emitAssets: true
|
|
9497
9567
|
} : options
|
|
9498
9568
|
)
|
|
9499
9569
|
})),
|
|
@@ -10307,7 +10377,8 @@ var externalsType = import_zod2.z.enum([
|
|
|
10307
10377
|
"import",
|
|
10308
10378
|
"module-import",
|
|
10309
10379
|
"script",
|
|
10310
|
-
"node-commonjs"
|
|
10380
|
+
"node-commonjs",
|
|
10381
|
+
"commonjs-import"
|
|
10311
10382
|
]);
|
|
10312
10383
|
var ZodExternalObjectValue = new ZodRspackCrossChecker({
|
|
10313
10384
|
patterns: [
|
|
@@ -10630,6 +10701,22 @@ var listenOptions = import_zod2.z.object({
|
|
|
10630
10701
|
writableAll: import_zod2.z.boolean().optional(),
|
|
10631
10702
|
ipv6Only: import_zod2.z.boolean().optional()
|
|
10632
10703
|
});
|
|
10704
|
+
var experimentCacheOptions = import_zod2.z.object({
|
|
10705
|
+
type: import_zod2.z.enum(["memory"])
|
|
10706
|
+
}).or(
|
|
10707
|
+
import_zod2.z.object({
|
|
10708
|
+
type: import_zod2.z.enum(["persistent"]),
|
|
10709
|
+
snapshot: import_zod2.z.strictObject({
|
|
10710
|
+
immutablePaths: import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).array(),
|
|
10711
|
+
unmanagedPaths: import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).array(),
|
|
10712
|
+
managedPaths: import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).array()
|
|
10713
|
+
}),
|
|
10714
|
+
storage: import_zod2.z.strictObject({
|
|
10715
|
+
type: import_zod2.z.enum(["filesystem"]),
|
|
10716
|
+
directory: import_zod2.z.string()
|
|
10717
|
+
})
|
|
10718
|
+
})
|
|
10719
|
+
);
|
|
10633
10720
|
var lazyCompilationOptions = import_zod2.z.object({
|
|
10634
10721
|
backend: import_zod2.z.object({
|
|
10635
10722
|
client: import_zod2.z.string().optional(),
|
|
@@ -10642,16 +10729,20 @@ var lazyCompilationOptions = import_zod2.z.object({
|
|
|
10642
10729
|
});
|
|
10643
10730
|
var incremental = import_zod2.z.strictObject({
|
|
10644
10731
|
make: import_zod2.z.boolean().optional(),
|
|
10645
|
-
emitAssets: import_zod2.z.boolean().optional(),
|
|
10646
10732
|
inferAsyncModules: import_zod2.z.boolean().optional(),
|
|
10647
10733
|
providedExports: import_zod2.z.boolean().optional(),
|
|
10648
10734
|
dependenciesDiagnostics: import_zod2.z.boolean().optional(),
|
|
10735
|
+
buildChunkGraph: import_zod2.z.boolean().optional(),
|
|
10649
10736
|
modulesHashes: import_zod2.z.boolean().optional(),
|
|
10650
10737
|
modulesCodegen: import_zod2.z.boolean().optional(),
|
|
10651
10738
|
modulesRuntimeRequirements: import_zod2.z.boolean().optional(),
|
|
10652
|
-
|
|
10739
|
+
chunksRuntimeRequirements: import_zod2.z.boolean().optional(),
|
|
10740
|
+
chunksHashes: import_zod2.z.boolean().optional(),
|
|
10741
|
+
chunksRender: import_zod2.z.boolean().optional(),
|
|
10742
|
+
emitAssets: import_zod2.z.boolean().optional()
|
|
10653
10743
|
});
|
|
10654
10744
|
var experiments = import_zod2.z.strictObject({
|
|
10745
|
+
cache: import_zod2.z.boolean().optional().or(experimentCacheOptions),
|
|
10655
10746
|
lazyCompilation: import_zod2.z.boolean().optional().or(lazyCompilationOptions),
|
|
10656
10747
|
asyncWebAssembly: import_zod2.z.boolean().optional(),
|
|
10657
10748
|
outputModule: import_zod2.z.boolean().optional(),
|
|
@@ -10717,7 +10808,7 @@ var rspackOptions = import_zod2.z.strictObject({
|
|
|
10717
10808
|
|
|
10718
10809
|
// src/builtin-plugin/EntryPlugin.ts
|
|
10719
10810
|
var EntryPlugin = create2(
|
|
10720
|
-
|
|
10811
|
+
import_binding24.BuiltinPluginName.EntryPlugin,
|
|
10721
10812
|
(context2, entry2, options = "") => {
|
|
10722
10813
|
const entryOptions = typeof options === "string" ? { name: options } : options;
|
|
10723
10814
|
return {
|
|
@@ -10751,7 +10842,7 @@ var DynamicEntryPlugin = class extends RspackBuiltinPlugin {
|
|
|
10751
10842
|
super();
|
|
10752
10843
|
this.context = context2;
|
|
10753
10844
|
this.entry = entry2;
|
|
10754
|
-
this.name =
|
|
10845
|
+
this.name = import_binding25.BuiltinPluginName.DynamicEntryPlugin;
|
|
10755
10846
|
this.affectedHooks = "make";
|
|
10756
10847
|
}
|
|
10757
10848
|
raw(compiler) {
|
|
@@ -10777,21 +10868,21 @@ var DynamicEntryPlugin = class extends RspackBuiltinPlugin {
|
|
|
10777
10868
|
};
|
|
10778
10869
|
|
|
10779
10870
|
// src/builtin-plugin/ElectronTargetPlugin.ts
|
|
10780
|
-
var
|
|
10871
|
+
var import_binding26 = require("@rspack/binding");
|
|
10781
10872
|
var ElectronTargetPlugin = create2(
|
|
10782
|
-
|
|
10873
|
+
import_binding26.BuiltinPluginName.ElectronTargetPlugin,
|
|
10783
10874
|
(context2) => context2 ?? "none"
|
|
10784
10875
|
);
|
|
10785
10876
|
|
|
10786
10877
|
// src/builtin-plugin/EnableChunkLoadingPlugin.ts
|
|
10787
|
-
var
|
|
10878
|
+
var import_binding27 = require("@rspack/binding");
|
|
10788
10879
|
var EnableChunkLoadingPlugin = create2(
|
|
10789
|
-
|
|
10880
|
+
import_binding27.BuiltinPluginName.EnableChunkLoadingPlugin,
|
|
10790
10881
|
(type) => type
|
|
10791
10882
|
);
|
|
10792
10883
|
|
|
10793
10884
|
// src/builtin-plugin/EnableLibraryPlugin.ts
|
|
10794
|
-
var
|
|
10885
|
+
var import_binding28 = require("@rspack/binding");
|
|
10795
10886
|
var enabledTypes = /* @__PURE__ */ new WeakMap();
|
|
10796
10887
|
var getEnabledTypes = (compiler) => {
|
|
10797
10888
|
let set = enabledTypes.get(compiler);
|
|
@@ -10805,7 +10896,7 @@ var EnableLibraryPlugin = class extends RspackBuiltinPlugin {
|
|
|
10805
10896
|
constructor(type) {
|
|
10806
10897
|
super();
|
|
10807
10898
|
this.type = type;
|
|
10808
|
-
this.name =
|
|
10899
|
+
this.name = import_binding28.BuiltinPluginName.EnableLibraryPlugin;
|
|
10809
10900
|
}
|
|
10810
10901
|
static setEnabled(compiler, type) {
|
|
10811
10902
|
getEnabledTypes(compiler).add(type);
|
|
@@ -10827,32 +10918,32 @@ var EnableLibraryPlugin = class extends RspackBuiltinPlugin {
|
|
|
10827
10918
|
};
|
|
10828
10919
|
|
|
10829
10920
|
// src/builtin-plugin/EnableWasmLoadingPlugin.ts
|
|
10830
|
-
var
|
|
10921
|
+
var import_binding29 = require("@rspack/binding");
|
|
10831
10922
|
var EnableWasmLoadingPlugin = create2(
|
|
10832
|
-
|
|
10923
|
+
import_binding29.BuiltinPluginName.EnableWasmLoadingPlugin,
|
|
10833
10924
|
(type) => type
|
|
10834
10925
|
);
|
|
10835
10926
|
|
|
10836
10927
|
// src/builtin-plugin/EnsureChunkConditionsPlugin.ts
|
|
10837
|
-
var
|
|
10928
|
+
var import_binding30 = require("@rspack/binding");
|
|
10838
10929
|
var EnsureChunkConditionsPlugin = create2(
|
|
10839
|
-
|
|
10930
|
+
import_binding30.BuiltinPluginName.EnsureChunkConditionsPlugin,
|
|
10840
10931
|
() => {
|
|
10841
10932
|
}
|
|
10842
10933
|
);
|
|
10843
10934
|
|
|
10844
10935
|
// src/builtin-plugin/EvalDevToolModulePlugin.ts
|
|
10845
|
-
var
|
|
10936
|
+
var import_binding31 = require("@rspack/binding");
|
|
10846
10937
|
var EvalDevToolModulePlugin = create2(
|
|
10847
|
-
|
|
10938
|
+
import_binding31.BuiltinPluginName.EvalDevToolModulePlugin,
|
|
10848
10939
|
(options) => options,
|
|
10849
10940
|
"compilation"
|
|
10850
10941
|
);
|
|
10851
10942
|
|
|
10852
10943
|
// src/builtin-plugin/EvalSourceMapDevToolPlugin.ts
|
|
10853
|
-
var
|
|
10944
|
+
var import_binding32 = require("@rspack/binding");
|
|
10854
10945
|
var EvalSourceMapDevToolPlugin = create2(
|
|
10855
|
-
|
|
10946
|
+
import_binding32.BuiltinPluginName.EvalSourceMapDevToolPlugin,
|
|
10856
10947
|
(options) => {
|
|
10857
10948
|
return {
|
|
10858
10949
|
filename: options.filename || void 0,
|
|
@@ -10868,9 +10959,9 @@ var EvalSourceMapDevToolPlugin = create2(
|
|
|
10868
10959
|
);
|
|
10869
10960
|
|
|
10870
10961
|
// src/builtin-plugin/ExternalsPlugin.ts
|
|
10871
|
-
var
|
|
10962
|
+
var import_binding33 = require("@rspack/binding");
|
|
10872
10963
|
var ExternalsPlugin = create2(
|
|
10873
|
-
|
|
10964
|
+
import_binding33.BuiltinPluginName.ExternalsPlugin,
|
|
10874
10965
|
(type, externals2) => {
|
|
10875
10966
|
return {
|
|
10876
10967
|
type,
|
|
@@ -10924,30 +11015,30 @@ function getRawExternalItemValue(value) {
|
|
|
10924
11015
|
}
|
|
10925
11016
|
|
|
10926
11017
|
// src/builtin-plugin/FileUriPlugin.ts
|
|
10927
|
-
var
|
|
11018
|
+
var import_binding34 = require("@rspack/binding");
|
|
10928
11019
|
var FileUriPlugin = create2(
|
|
10929
|
-
|
|
11020
|
+
import_binding34.BuiltinPluginName.FileUriPlugin,
|
|
10930
11021
|
() => {
|
|
10931
11022
|
},
|
|
10932
11023
|
"compilation"
|
|
10933
11024
|
);
|
|
10934
11025
|
|
|
10935
11026
|
// src/builtin-plugin/FlagDependencyExportsPlugin.ts
|
|
10936
|
-
var
|
|
11027
|
+
var import_binding35 = require("@rspack/binding");
|
|
10937
11028
|
var FlagDependencyExportsPlugin = create2(
|
|
10938
|
-
|
|
11029
|
+
import_binding35.BuiltinPluginName.FlagDependencyExportsPlugin,
|
|
10939
11030
|
() => {
|
|
10940
11031
|
},
|
|
10941
11032
|
"compilation"
|
|
10942
11033
|
);
|
|
10943
11034
|
|
|
10944
11035
|
// src/builtin-plugin/FlagDependencyUsagePlugin.ts
|
|
10945
|
-
var
|
|
11036
|
+
var import_binding36 = require("@rspack/binding");
|
|
10946
11037
|
var FlagDependencyUsagePlugin = class extends RspackBuiltinPlugin {
|
|
10947
11038
|
constructor(global) {
|
|
10948
11039
|
super();
|
|
10949
11040
|
this.global = global;
|
|
10950
|
-
this.name =
|
|
11041
|
+
this.name = import_binding36.BuiltinPluginName.FlagDependencyUsagePlugin;
|
|
10951
11042
|
this.affectedHooks = "compilation";
|
|
10952
11043
|
}
|
|
10953
11044
|
raw(compiler) {
|
|
@@ -10978,11 +11069,11 @@ var FlagDependencyUsagePlugin = class extends RspackBuiltinPlugin {
|
|
|
10978
11069
|
};
|
|
10979
11070
|
|
|
10980
11071
|
// src/builtin-plugin/HotModuleReplacementPlugin.ts
|
|
10981
|
-
var
|
|
11072
|
+
var import_binding37 = require("@rspack/binding");
|
|
10982
11073
|
var HotModuleReplacementPlugin = class extends RspackBuiltinPlugin {
|
|
10983
11074
|
constructor() {
|
|
10984
11075
|
super(...arguments);
|
|
10985
|
-
this.name =
|
|
11076
|
+
this.name = import_binding37.BuiltinPluginName.HotModuleReplacementPlugin;
|
|
10986
11077
|
}
|
|
10987
11078
|
raw(compiler) {
|
|
10988
11079
|
if (compiler.options.output.strictModuleErrorHandling === void 0) {
|
|
@@ -10995,7 +11086,7 @@ var HotModuleReplacementPlugin = class extends RspackBuiltinPlugin {
|
|
|
10995
11086
|
// src/builtin-plugin/HtmlRspackPlugin.ts
|
|
10996
11087
|
var import_node_fs2 = __toESM(require("fs"));
|
|
10997
11088
|
var import_node_path8 = __toESM(require("path"));
|
|
10998
|
-
var
|
|
11089
|
+
var import_binding38 = require("@rspack/binding");
|
|
10999
11090
|
var liteTapable3 = __toESM(require("@rspack/lite-tapable"));
|
|
11000
11091
|
var import_zod3 = require("../compiled/zod/index.js");
|
|
11001
11092
|
|
|
@@ -11284,7 +11375,7 @@ var htmlRspackPluginOptions = import_zod3.z.strictObject({
|
|
|
11284
11375
|
hash: import_zod3.z.boolean().optional()
|
|
11285
11376
|
});
|
|
11286
11377
|
var HtmlRspackPluginImpl = create2(
|
|
11287
|
-
|
|
11378
|
+
import_binding38.BuiltinPluginName.HtmlRspackPlugin,
|
|
11288
11379
|
function(c = {}) {
|
|
11289
11380
|
validate(c, htmlRspackPluginOptions);
|
|
11290
11381
|
const meta = {};
|
|
@@ -11521,9 +11612,9 @@ HtmlRspackPlugin.getHooks = HtmlRspackPlugin.getCompilationHooks = (compilation)
|
|
|
11521
11612
|
HtmlRspackPlugin.version = 5;
|
|
11522
11613
|
|
|
11523
11614
|
// src/builtin-plugin/HttpExternalsRspackPlugin.ts
|
|
11524
|
-
var
|
|
11615
|
+
var import_binding39 = require("@rspack/binding");
|
|
11525
11616
|
var HttpExternalsRspackPlugin = create2(
|
|
11526
|
-
|
|
11617
|
+
import_binding39.BuiltinPluginName.HttpExternalsRspackPlugin,
|
|
11527
11618
|
(css, webAsync) => {
|
|
11528
11619
|
return {
|
|
11529
11620
|
css,
|
|
@@ -11533,7 +11624,7 @@ var HttpExternalsRspackPlugin = create2(
|
|
|
11533
11624
|
);
|
|
11534
11625
|
|
|
11535
11626
|
// src/builtin-plugin/IgnorePlugin.ts
|
|
11536
|
-
var
|
|
11627
|
+
var import_binding40 = require("@rspack/binding");
|
|
11537
11628
|
var import_zod4 = require("../compiled/zod/index.js");
|
|
11538
11629
|
var IgnorePluginOptions = import_zod4.z.union([
|
|
11539
11630
|
import_zod4.z.object({
|
|
@@ -11545,7 +11636,7 @@ var IgnorePluginOptions = import_zod4.z.union([
|
|
|
11545
11636
|
})
|
|
11546
11637
|
]);
|
|
11547
11638
|
var IgnorePlugin = create2(
|
|
11548
|
-
|
|
11639
|
+
import_binding40.BuiltinPluginName.IgnorePlugin,
|
|
11549
11640
|
(options) => {
|
|
11550
11641
|
validate(options, IgnorePluginOptions);
|
|
11551
11642
|
return options;
|
|
@@ -11553,22 +11644,22 @@ var IgnorePlugin = create2(
|
|
|
11553
11644
|
);
|
|
11554
11645
|
|
|
11555
11646
|
// src/builtin-plugin/InferAsyncModulesPlugin.ts
|
|
11556
|
-
var
|
|
11647
|
+
var import_binding41 = require("@rspack/binding");
|
|
11557
11648
|
var InferAsyncModulesPlugin = create2(
|
|
11558
|
-
|
|
11649
|
+
import_binding41.BuiltinPluginName.InferAsyncModulesPlugin,
|
|
11559
11650
|
() => {
|
|
11560
11651
|
},
|
|
11561
11652
|
"compilation"
|
|
11562
11653
|
);
|
|
11563
11654
|
|
|
11564
11655
|
// src/builtin-plugin/JavascriptModulesPlugin.ts
|
|
11565
|
-
var
|
|
11656
|
+
var import_binding42 = require("@rspack/binding");
|
|
11566
11657
|
var liteTapable4 = __toESM(require("@rspack/lite-tapable"));
|
|
11567
11658
|
var compilationHooksMap3 = /* @__PURE__ */ new WeakMap();
|
|
11568
11659
|
var JavascriptModulesPlugin = class extends RspackBuiltinPlugin {
|
|
11569
11660
|
constructor() {
|
|
11570
11661
|
super(...arguments);
|
|
11571
|
-
this.name =
|
|
11662
|
+
this.name = import_binding42.BuiltinPluginName.JavascriptModulesPlugin;
|
|
11572
11663
|
this.affectedHooks = "compilation";
|
|
11573
11664
|
}
|
|
11574
11665
|
raw() {
|
|
@@ -11592,18 +11683,18 @@ var JavascriptModulesPlugin = class extends RspackBuiltinPlugin {
|
|
|
11592
11683
|
};
|
|
11593
11684
|
|
|
11594
11685
|
// src/builtin-plugin/JsLoaderRspackPlugin.ts
|
|
11595
|
-
var
|
|
11686
|
+
var import_binding43 = require("@rspack/binding");
|
|
11596
11687
|
var JsLoaderRspackPlugin = create2(
|
|
11597
|
-
|
|
11688
|
+
import_binding43.BuiltinPluginName.JsLoaderRspackPlugin,
|
|
11598
11689
|
(compiler) => runLoaders.bind(null, compiler),
|
|
11599
11690
|
/* Not Inheretable */
|
|
11600
11691
|
"thisCompilation"
|
|
11601
11692
|
);
|
|
11602
11693
|
|
|
11603
11694
|
// src/builtin-plugin/JsonModulesPlugin.ts
|
|
11604
|
-
var
|
|
11695
|
+
var import_binding44 = require("@rspack/binding");
|
|
11605
11696
|
var JsonModulesPlugin = create2(
|
|
11606
|
-
|
|
11697
|
+
import_binding44.BuiltinPluginName.JsonModulesPlugin,
|
|
11607
11698
|
() => {
|
|
11608
11699
|
},
|
|
11609
11700
|
"compilation"
|
|
@@ -11739,9 +11830,9 @@ function moduleImpl(args) {
|
|
|
11739
11830
|
}
|
|
11740
11831
|
|
|
11741
11832
|
// src/builtin-plugin/lazy-compilation/lazyCompilation.ts
|
|
11742
|
-
var
|
|
11833
|
+
var import_binding45 = require("@rspack/binding");
|
|
11743
11834
|
var BuiltinLazyCompilationPlugin = create2(
|
|
11744
|
-
|
|
11835
|
+
import_binding45.BuiltinPluginName.LazyCompilationPlugin,
|
|
11745
11836
|
(module2, cacheable, entries, imports, test) => ({ module: module2, cacheable, imports, entries, test }),
|
|
11746
11837
|
"thisCompilation"
|
|
11747
11838
|
);
|
|
@@ -11786,21 +11877,21 @@ var LazyCompilationPlugin = class {
|
|
|
11786
11877
|
};
|
|
11787
11878
|
|
|
11788
11879
|
// src/builtin-plugin/LimitChunkCountPlugin.ts
|
|
11789
|
-
var
|
|
11880
|
+
var import_binding46 = require("@rspack/binding");
|
|
11790
11881
|
var LimitChunkCountPlugin = create2(
|
|
11791
|
-
|
|
11882
|
+
import_binding46.BuiltinPluginName.LimitChunkCountPlugin,
|
|
11792
11883
|
(options) => {
|
|
11793
11884
|
return options;
|
|
11794
11885
|
}
|
|
11795
11886
|
);
|
|
11796
11887
|
|
|
11797
11888
|
// src/builtin-plugin/MangleExportsPlugin.ts
|
|
11798
|
-
var
|
|
11889
|
+
var import_binding47 = require("@rspack/binding");
|
|
11799
11890
|
var MangleExportsPlugin = class extends RspackBuiltinPlugin {
|
|
11800
11891
|
constructor(deterministic) {
|
|
11801
11892
|
super();
|
|
11802
11893
|
this.deterministic = deterministic;
|
|
11803
|
-
this.name =
|
|
11894
|
+
this.name = import_binding47.BuiltinPluginName.MangleExportsPlugin;
|
|
11804
11895
|
this.affectedHooks = "compilation";
|
|
11805
11896
|
}
|
|
11806
11897
|
raw(compiler) {
|
|
@@ -11831,27 +11922,27 @@ var MangleExportsPlugin = class extends RspackBuiltinPlugin {
|
|
|
11831
11922
|
};
|
|
11832
11923
|
|
|
11833
11924
|
// src/builtin-plugin/MergeDuplicateChunksPlugin.ts
|
|
11834
|
-
var
|
|
11925
|
+
var import_binding48 = require("@rspack/binding");
|
|
11835
11926
|
var MergeDuplicateChunksPlugin = create2(
|
|
11836
|
-
|
|
11927
|
+
import_binding48.BuiltinPluginName.MergeDuplicateChunksPlugin,
|
|
11837
11928
|
() => {
|
|
11838
11929
|
}
|
|
11839
11930
|
);
|
|
11840
11931
|
|
|
11841
11932
|
// src/builtin-plugin/ModuleChunkFormatPlugin.ts
|
|
11842
|
-
var
|
|
11933
|
+
var import_binding49 = require("@rspack/binding");
|
|
11843
11934
|
var ModuleChunkFormatPlugin = create2(
|
|
11844
|
-
|
|
11935
|
+
import_binding49.BuiltinPluginName.ModuleChunkFormatPlugin,
|
|
11845
11936
|
() => {
|
|
11846
11937
|
}
|
|
11847
11938
|
);
|
|
11848
11939
|
|
|
11849
11940
|
// src/builtin-plugin/ModuleConcatenationPlugin.ts
|
|
11850
|
-
var
|
|
11941
|
+
var import_binding50 = require("@rspack/binding");
|
|
11851
11942
|
var ModuleConcatenationPlugin = class extends RspackBuiltinPlugin {
|
|
11852
11943
|
constructor() {
|
|
11853
11944
|
super(...arguments);
|
|
11854
|
-
this.name =
|
|
11945
|
+
this.name = import_binding50.BuiltinPluginName.ModuleConcatenationPlugin;
|
|
11855
11946
|
this.affectedHooks = "compilation";
|
|
11856
11947
|
}
|
|
11857
11948
|
raw(compiler) {
|
|
@@ -11882,52 +11973,52 @@ var ModuleConcatenationPlugin = class extends RspackBuiltinPlugin {
|
|
|
11882
11973
|
};
|
|
11883
11974
|
|
|
11884
11975
|
// src/builtin-plugin/NamedChunkIdsPlugin.ts
|
|
11885
|
-
var
|
|
11976
|
+
var import_binding51 = require("@rspack/binding");
|
|
11886
11977
|
var NamedChunkIdsPlugin = create2(
|
|
11887
|
-
|
|
11978
|
+
import_binding51.BuiltinPluginName.NamedChunkIdsPlugin,
|
|
11888
11979
|
() => {
|
|
11889
11980
|
},
|
|
11890
11981
|
"compilation"
|
|
11891
11982
|
);
|
|
11892
11983
|
|
|
11893
11984
|
// src/builtin-plugin/NamedModuleIdsPlugin.ts
|
|
11894
|
-
var
|
|
11985
|
+
var import_binding52 = require("@rspack/binding");
|
|
11895
11986
|
var NamedModuleIdsPlugin = create2(
|
|
11896
|
-
|
|
11987
|
+
import_binding52.BuiltinPluginName.NamedModuleIdsPlugin,
|
|
11897
11988
|
() => {
|
|
11898
11989
|
},
|
|
11899
11990
|
"compilation"
|
|
11900
11991
|
);
|
|
11901
11992
|
|
|
11902
11993
|
// src/builtin-plugin/NaturalChunkIdsPlugin.ts
|
|
11903
|
-
var
|
|
11994
|
+
var import_binding53 = require("@rspack/binding");
|
|
11904
11995
|
var NaturalChunkIdsPlugin = create2(
|
|
11905
|
-
|
|
11996
|
+
import_binding53.BuiltinPluginName.NaturalChunkIdsPlugin,
|
|
11906
11997
|
() => {
|
|
11907
11998
|
},
|
|
11908
11999
|
"compilation"
|
|
11909
12000
|
);
|
|
11910
12001
|
|
|
11911
12002
|
// src/builtin-plugin/NaturalModuleIdsPlugin.ts
|
|
11912
|
-
var
|
|
12003
|
+
var import_binding54 = require("@rspack/binding");
|
|
11913
12004
|
var NaturalModuleIdsPlugin = create2(
|
|
11914
|
-
|
|
12005
|
+
import_binding54.BuiltinPluginName.NaturalModuleIdsPlugin,
|
|
11915
12006
|
() => {
|
|
11916
12007
|
},
|
|
11917
12008
|
"compilation"
|
|
11918
12009
|
);
|
|
11919
12010
|
|
|
11920
12011
|
// src/builtin-plugin/NodeTargetPlugin.ts
|
|
11921
|
-
var
|
|
12012
|
+
var import_binding55 = require("@rspack/binding");
|
|
11922
12013
|
var NodeTargetPlugin = create2(
|
|
11923
|
-
|
|
12014
|
+
import_binding55.BuiltinPluginName.NodeTargetPlugin,
|
|
11924
12015
|
() => void 0
|
|
11925
12016
|
);
|
|
11926
12017
|
|
|
11927
12018
|
// src/builtin-plugin/ProgressPlugin.ts
|
|
11928
|
-
var
|
|
12019
|
+
var import_binding56 = require("@rspack/binding");
|
|
11929
12020
|
var ProgressPlugin = create2(
|
|
11930
|
-
|
|
12021
|
+
import_binding56.BuiltinPluginName.ProgressPlugin,
|
|
11931
12022
|
(progress = {}) => {
|
|
11932
12023
|
if (typeof progress === "function") {
|
|
11933
12024
|
return {
|
|
@@ -11941,9 +12032,9 @@ var ProgressPlugin = create2(
|
|
|
11941
12032
|
);
|
|
11942
12033
|
|
|
11943
12034
|
// src/builtin-plugin/ProvidePlugin.ts
|
|
11944
|
-
var
|
|
12035
|
+
var import_binding57 = require("@rspack/binding");
|
|
11945
12036
|
var ProvidePlugin = create2(
|
|
11946
|
-
|
|
12037
|
+
import_binding57.BuiltinPluginName.ProvidePlugin,
|
|
11947
12038
|
(provide) => {
|
|
11948
12039
|
const entries = Object.entries(provide).map(([key, value]) => {
|
|
11949
12040
|
if (typeof value === "string") {
|
|
@@ -11956,53 +12047,53 @@ var ProvidePlugin = create2(
|
|
|
11956
12047
|
);
|
|
11957
12048
|
|
|
11958
12049
|
// src/builtin-plugin/RealContentHashPlugin.ts
|
|
11959
|
-
var
|
|
12050
|
+
var import_binding58 = require("@rspack/binding");
|
|
11960
12051
|
var RealContentHashPlugin = create2(
|
|
11961
|
-
|
|
12052
|
+
import_binding58.BuiltinPluginName.RealContentHashPlugin,
|
|
11962
12053
|
() => {
|
|
11963
12054
|
},
|
|
11964
12055
|
"compilation"
|
|
11965
12056
|
);
|
|
11966
12057
|
|
|
11967
12058
|
// src/builtin-plugin/RemoveEmptyChunksPlugin.ts
|
|
11968
|
-
var
|
|
12059
|
+
var import_binding59 = require("@rspack/binding");
|
|
11969
12060
|
var RemoveEmptyChunksPlugin = create2(
|
|
11970
|
-
|
|
12061
|
+
import_binding59.BuiltinPluginName.RemoveEmptyChunksPlugin,
|
|
11971
12062
|
() => {
|
|
11972
12063
|
},
|
|
11973
12064
|
"compilation"
|
|
11974
12065
|
);
|
|
11975
12066
|
|
|
11976
12067
|
// src/builtin-plugin/RuntimeChunkPlugin.ts
|
|
11977
|
-
var
|
|
12068
|
+
var import_binding60 = require("@rspack/binding");
|
|
11978
12069
|
var RuntimeChunkPlugin = create2(
|
|
11979
|
-
|
|
12070
|
+
import_binding60.BuiltinPluginName.RuntimeChunkPlugin,
|
|
11980
12071
|
(options) => options,
|
|
11981
12072
|
"thisCompilation"
|
|
11982
12073
|
);
|
|
11983
12074
|
|
|
11984
12075
|
// src/builtin-plugin/RuntimePlugin.ts
|
|
11985
|
-
var
|
|
12076
|
+
var import_binding61 = require("@rspack/binding");
|
|
11986
12077
|
var RuntimePlugin = create2(
|
|
11987
|
-
|
|
12078
|
+
import_binding61.BuiltinPluginName.RuntimePlugin,
|
|
11988
12079
|
() => {
|
|
11989
12080
|
},
|
|
11990
12081
|
"compilation"
|
|
11991
12082
|
);
|
|
11992
12083
|
|
|
11993
12084
|
// src/builtin-plugin/SideEffectsFlagPlugin.ts
|
|
11994
|
-
var
|
|
12085
|
+
var import_binding62 = require("@rspack/binding");
|
|
11995
12086
|
var SideEffectsFlagPlugin = create2(
|
|
11996
|
-
|
|
12087
|
+
import_binding62.BuiltinPluginName.SideEffectsFlagPlugin,
|
|
11997
12088
|
() => {
|
|
11998
12089
|
},
|
|
11999
12090
|
"compilation"
|
|
12000
12091
|
);
|
|
12001
12092
|
|
|
12002
12093
|
// src/builtin-plugin/SizeLimitsPlugin.ts
|
|
12003
|
-
var
|
|
12094
|
+
var import_binding63 = require("@rspack/binding");
|
|
12004
12095
|
var SizeLimitsPlugin = create2(
|
|
12005
|
-
|
|
12096
|
+
import_binding63.BuiltinPluginName.SizeLimitsPlugin,
|
|
12006
12097
|
(options) => {
|
|
12007
12098
|
const hints = options.hints === false ? void 0 : options.hints;
|
|
12008
12099
|
return { ...options, hints };
|
|
@@ -12010,64 +12101,16 @@ var SizeLimitsPlugin = create2(
|
|
|
12010
12101
|
);
|
|
12011
12102
|
|
|
12012
12103
|
// src/builtin-plugin/SourceMapDevToolPlugin.ts
|
|
12013
|
-
var
|
|
12014
|
-
|
|
12015
|
-
// src/lib/ModuleFilenameHelpers.ts
|
|
12016
|
-
var ModuleFilenameHelpers_exports = {};
|
|
12017
|
-
__export(ModuleFilenameHelpers_exports, {
|
|
12018
|
-
asRegExp: () => asRegExp,
|
|
12019
|
-
matchObject: () => matchObject,
|
|
12020
|
-
matchPart: () => matchPart
|
|
12021
|
-
});
|
|
12022
|
-
var asRegExp = (test) => {
|
|
12023
|
-
if (typeof test === "string") {
|
|
12024
|
-
return new RegExp(`^${test.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")}`);
|
|
12025
|
-
}
|
|
12026
|
-
return test;
|
|
12027
|
-
};
|
|
12028
|
-
var matchPart = (str, test) => {
|
|
12029
|
-
if (!test) return true;
|
|
12030
|
-
if (Array.isArray(test)) {
|
|
12031
|
-
return test.map(asRegExp).some((regExp) => regExp.test(str));
|
|
12032
|
-
}
|
|
12033
|
-
return asRegExp(test).test(str);
|
|
12034
|
-
};
|
|
12035
|
-
var matchObject = (obj, str) => {
|
|
12036
|
-
if (obj.test) {
|
|
12037
|
-
if (!matchPart(str, obj.test)) {
|
|
12038
|
-
return false;
|
|
12039
|
-
}
|
|
12040
|
-
}
|
|
12041
|
-
if (obj.include) {
|
|
12042
|
-
if (!matchPart(str, obj.include)) {
|
|
12043
|
-
return false;
|
|
12044
|
-
}
|
|
12045
|
-
}
|
|
12046
|
-
if (obj.exclude) {
|
|
12047
|
-
if (matchPart(str, obj.exclude)) {
|
|
12048
|
-
return false;
|
|
12049
|
-
}
|
|
12050
|
-
}
|
|
12051
|
-
return true;
|
|
12052
|
-
};
|
|
12053
|
-
|
|
12054
|
-
// src/builtin-plugin/SourceMapDevToolPlugin.ts
|
|
12104
|
+
var import_binding64 = require("@rspack/binding");
|
|
12055
12105
|
var SourceMapDevToolPlugin = create2(
|
|
12056
|
-
|
|
12057
|
-
(options) =>
|
|
12058
|
-
const { test, include, exclude, ...rest } = options;
|
|
12059
|
-
const rawOptions = rest;
|
|
12060
|
-
if (test || include || exclude) {
|
|
12061
|
-
rawOptions.test = (text) => matchObject({ test, include, exclude }, text);
|
|
12062
|
-
}
|
|
12063
|
-
return rawOptions;
|
|
12064
|
-
},
|
|
12106
|
+
import_binding64.BuiltinPluginName.SourceMapDevToolPlugin,
|
|
12107
|
+
(options) => options,
|
|
12065
12108
|
"compilation"
|
|
12066
12109
|
);
|
|
12067
12110
|
|
|
12068
12111
|
// src/builtin-plugin/SplitChunksPlugin.ts
|
|
12069
12112
|
var import_node_assert5 = __toESM(require("assert"));
|
|
12070
|
-
var
|
|
12113
|
+
var import_binding65 = require("@rspack/binding");
|
|
12071
12114
|
|
|
12072
12115
|
// src/util/SplitChunkSize.ts
|
|
12073
12116
|
var JsSplitChunkSizes = class {
|
|
@@ -12090,7 +12133,7 @@ var SplitChunksPlugin = class extends RspackBuiltinPlugin {
|
|
|
12090
12133
|
constructor(options) {
|
|
12091
12134
|
super();
|
|
12092
12135
|
this.options = options;
|
|
12093
|
-
this.name =
|
|
12136
|
+
this.name = import_binding65.BuiltinPluginName.SplitChunksPlugin;
|
|
12094
12137
|
this.affectedHooks = "thisCompilation";
|
|
12095
12138
|
}
|
|
12096
12139
|
raw(compiler) {
|
|
@@ -12196,12 +12239,12 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
12196
12239
|
}
|
|
12197
12240
|
|
|
12198
12241
|
// src/builtin-plugin/LightningCssMinimizerRspackPlugin.ts
|
|
12199
|
-
var
|
|
12242
|
+
var import_binding66 = require("@rspack/binding");
|
|
12200
12243
|
var LightningCssMinimizerRspackPlugin = create2(
|
|
12201
|
-
|
|
12244
|
+
import_binding66.BuiltinPluginName.LightningCssMinimizerRspackPlugin,
|
|
12202
12245
|
(options) => {
|
|
12203
12246
|
var _a, _b, _c;
|
|
12204
|
-
const { include, exclude, draft, nonStandard, pseudoClasses } = (options == null ? void 0 : options.minimizerOptions) ?? {};
|
|
12247
|
+
const { include, exclude, draft, nonStandard, pseudoClasses, drafts } = (options == null ? void 0 : options.minimizerOptions) ?? {};
|
|
12205
12248
|
const targets = ((_a = options == null ? void 0 : options.minimizerOptions) == null ? void 0 : _a.targets) ?? "fully supports es6";
|
|
12206
12249
|
return {
|
|
12207
12250
|
test: options == null ? void 0 : options.test,
|
|
@@ -12215,6 +12258,7 @@ var LightningCssMinimizerRspackPlugin = create2(
|
|
|
12215
12258
|
exclude: exclude ? toFeatures(exclude) : void 0,
|
|
12216
12259
|
targets: typeof targets === "string" ? [targets] : targets,
|
|
12217
12260
|
draft: draft ? { customMedia: draft.customMedia ?? false } : void 0,
|
|
12261
|
+
drafts: drafts ? { customMedia: drafts.customMedia ?? false } : void 0,
|
|
12218
12262
|
nonStandard: nonStandard ? {
|
|
12219
12263
|
deepSelectorCombinator: nonStandard.deepSelectorCombinator ?? false
|
|
12220
12264
|
} : void 0,
|
|
@@ -12225,16 +12269,16 @@ var LightningCssMinimizerRspackPlugin = create2(
|
|
|
12225
12269
|
);
|
|
12226
12270
|
|
|
12227
12271
|
// src/builtin-plugin/RemoveDuplicateModulesPlugin.ts
|
|
12228
|
-
var
|
|
12272
|
+
var import_binding67 = require("@rspack/binding");
|
|
12229
12273
|
var RemoveDuplicateModulesPlugin = create2(
|
|
12230
|
-
|
|
12274
|
+
import_binding67.BuiltinPluginName.RemoveDuplicateModulesPlugin,
|
|
12231
12275
|
() => {
|
|
12232
12276
|
return {};
|
|
12233
12277
|
}
|
|
12234
12278
|
);
|
|
12235
12279
|
|
|
12236
12280
|
// src/builtin-plugin/SwcJsMinimizerPlugin.ts
|
|
12237
|
-
var
|
|
12281
|
+
var import_binding68 = require("@rspack/binding");
|
|
12238
12282
|
function isObject2(value) {
|
|
12239
12283
|
const type = typeof value;
|
|
12240
12284
|
return value != null && (type === "object" || type === "function");
|
|
@@ -12277,7 +12321,7 @@ function getRawExtractCommentsOptions(extractComments) {
|
|
|
12277
12321
|
return void 0;
|
|
12278
12322
|
}
|
|
12279
12323
|
var SwcJsMinimizerRspackPlugin = create2(
|
|
12280
|
-
|
|
12324
|
+
import_binding68.BuiltinPluginName.SwcJsMinimizerRspackPlugin,
|
|
12281
12325
|
(options) => {
|
|
12282
12326
|
var _a, _b, _c, _d, _e;
|
|
12283
12327
|
let compress = ((_a = options == null ? void 0 : options.minimizerOptions) == null ? void 0 : _a.compress) ?? true;
|
|
@@ -12316,23 +12360,23 @@ var SwcJsMinimizerRspackPlugin = create2(
|
|
|
12316
12360
|
);
|
|
12317
12361
|
|
|
12318
12362
|
// src/builtin-plugin/WarnCaseSensitiveModulesPlugin.ts
|
|
12319
|
-
var
|
|
12363
|
+
var import_binding69 = require("@rspack/binding");
|
|
12320
12364
|
var WarnCaseSensitiveModulesPlugin = create2(
|
|
12321
|
-
|
|
12365
|
+
import_binding69.BuiltinPluginName.WarnCaseSensitiveModulesPlugin,
|
|
12322
12366
|
() => {
|
|
12323
12367
|
},
|
|
12324
12368
|
"compilation"
|
|
12325
12369
|
);
|
|
12326
12370
|
|
|
12327
12371
|
// src/builtin-plugin/WebWorkerTemplatePlugin.ts
|
|
12328
|
-
var
|
|
12372
|
+
var import_binding70 = require("@rspack/binding");
|
|
12329
12373
|
var WebWorkerTemplatePlugin = create2(
|
|
12330
|
-
|
|
12374
|
+
import_binding70.BuiltinPluginName.WebWorkerTemplatePlugin,
|
|
12331
12375
|
() => void 0
|
|
12332
12376
|
);
|
|
12333
12377
|
|
|
12334
12378
|
// src/builtin-plugin/WorkerPlugin.ts
|
|
12335
|
-
var
|
|
12379
|
+
var import_binding71 = require("@rspack/binding");
|
|
12336
12380
|
var WorkerPlugin = class extends RspackBuiltinPlugin {
|
|
12337
12381
|
constructor(chunkLoading2, wasmLoading2, module2, workerPublicPath2) {
|
|
12338
12382
|
super();
|
|
@@ -12340,7 +12384,7 @@ var WorkerPlugin = class extends RspackBuiltinPlugin {
|
|
|
12340
12384
|
this.wasmLoading = wasmLoading2;
|
|
12341
12385
|
this.module = module2;
|
|
12342
12386
|
this.workerPublicPath = workerPublicPath2;
|
|
12343
|
-
this.name =
|
|
12387
|
+
this.name = import_binding71.BuiltinPluginName.WorkerPlugin;
|
|
12344
12388
|
}
|
|
12345
12389
|
raw(compiler) {
|
|
12346
12390
|
if (this.chunkLoading) {
|
|
@@ -12354,25 +12398,25 @@ var WorkerPlugin = class extends RspackBuiltinPlugin {
|
|
|
12354
12398
|
};
|
|
12355
12399
|
|
|
12356
12400
|
// src/builtin-plugin/FetchCompileAsyncWasmPlugin.ts
|
|
12357
|
-
var
|
|
12401
|
+
var import_binding72 = require("@rspack/binding");
|
|
12358
12402
|
var FetchCompileAsyncWasmPlugin = create2(
|
|
12359
|
-
|
|
12403
|
+
import_binding72.BuiltinPluginName.FetchCompileAsyncWasmPlugin,
|
|
12360
12404
|
() => {
|
|
12361
12405
|
},
|
|
12362
12406
|
"thisCompilation"
|
|
12363
12407
|
);
|
|
12364
12408
|
|
|
12365
12409
|
// src/builtin-plugin/NoEmitOnErrorsPlugin.ts
|
|
12366
|
-
var
|
|
12410
|
+
var import_binding73 = require("@rspack/binding");
|
|
12367
12411
|
var NoEmitOnErrorsPlugin = create2(
|
|
12368
|
-
|
|
12412
|
+
import_binding73.BuiltinPluginName.NoEmitOnErrorsPlugin,
|
|
12369
12413
|
() => void 0
|
|
12370
12414
|
);
|
|
12371
12415
|
|
|
12372
12416
|
// src/builtin-plugin/ContextReplacementPlugin.ts
|
|
12373
|
-
var
|
|
12417
|
+
var import_binding74 = require("@rspack/binding");
|
|
12374
12418
|
var ContextReplacementPlugin = create2(
|
|
12375
|
-
|
|
12419
|
+
import_binding74.BuiltinPluginName.ContextReplacementPlugin,
|
|
12376
12420
|
(resourceRegExp, newContentResource, newContentRecursive, newContentRegExp) => {
|
|
12377
12421
|
const rawOptions = {
|
|
12378
12422
|
resourceRegExp
|
|
@@ -12402,9 +12446,9 @@ var ContextReplacementPlugin = create2(
|
|
|
12402
12446
|
);
|
|
12403
12447
|
|
|
12404
12448
|
// src/builtin-plugin/LibManifestPlugin.ts
|
|
12405
|
-
var
|
|
12449
|
+
var import_binding75 = require("@rspack/binding");
|
|
12406
12450
|
var LibManifestPlugin = create2(
|
|
12407
|
-
|
|
12451
|
+
import_binding75.BuiltinPluginName.LibManifestPlugin,
|
|
12408
12452
|
(options) => {
|
|
12409
12453
|
const { context: context2, entryOnly, format: format3, name: name2, path: path10, type } = options;
|
|
12410
12454
|
return {
|
|
@@ -12419,9 +12463,9 @@ var LibManifestPlugin = create2(
|
|
|
12419
12463
|
);
|
|
12420
12464
|
|
|
12421
12465
|
// src/builtin-plugin/DllEntryPlugin.ts
|
|
12422
|
-
var
|
|
12466
|
+
var import_binding76 = require("@rspack/binding");
|
|
12423
12467
|
var DllEntryPlugin = create2(
|
|
12424
|
-
|
|
12468
|
+
import_binding76.BuiltinPluginName.DllEntryPlugin,
|
|
12425
12469
|
(context2, entries, options) => {
|
|
12426
12470
|
return {
|
|
12427
12471
|
context: context2,
|
|
@@ -12432,9 +12476,9 @@ var DllEntryPlugin = create2(
|
|
|
12432
12476
|
);
|
|
12433
12477
|
|
|
12434
12478
|
// src/builtin-plugin/DllReferenceAgencyPlugin.ts
|
|
12435
|
-
var
|
|
12479
|
+
var import_binding77 = require("@rspack/binding");
|
|
12436
12480
|
var DllReferenceAgencyPlugin = create2(
|
|
12437
|
-
|
|
12481
|
+
import_binding77.BuiltinPluginName.DllReferenceAgencyPlugin,
|
|
12438
12482
|
(options) => options
|
|
12439
12483
|
);
|
|
12440
12484
|
|
|
@@ -13160,7 +13204,9 @@ var Compiler = class _Compiler {
|
|
|
13160
13204
|
new JsLoaderRspackPlugin(this).apply(this);
|
|
13161
13205
|
new ExecuteModulePlugin().apply(this);
|
|
13162
13206
|
this.hooks.shutdown.tap("rspack:cleanup", () => {
|
|
13163
|
-
this
|
|
13207
|
+
if (!this.running) {
|
|
13208
|
+
this.#instance = void 0;
|
|
13209
|
+
}
|
|
13164
13210
|
});
|
|
13165
13211
|
}
|
|
13166
13212
|
get recordsInputPath() {
|
|
@@ -18316,13 +18362,52 @@ var RspackOptionsApply = class {
|
|
|
18316
18362
|
}
|
|
18317
18363
|
};
|
|
18318
18364
|
|
|
18365
|
+
// src/lib/ModuleFilenameHelpers.ts
|
|
18366
|
+
var ModuleFilenameHelpers_exports = {};
|
|
18367
|
+
__export(ModuleFilenameHelpers_exports, {
|
|
18368
|
+
asRegExp: () => asRegExp,
|
|
18369
|
+
matchObject: () => matchObject,
|
|
18370
|
+
matchPart: () => matchPart
|
|
18371
|
+
});
|
|
18372
|
+
var asRegExp = (test) => {
|
|
18373
|
+
if (typeof test === "string") {
|
|
18374
|
+
return new RegExp(`^${test.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")}`);
|
|
18375
|
+
}
|
|
18376
|
+
return test;
|
|
18377
|
+
};
|
|
18378
|
+
var matchPart = (str, test) => {
|
|
18379
|
+
if (!test) return true;
|
|
18380
|
+
if (Array.isArray(test)) {
|
|
18381
|
+
return test.map(asRegExp).some((regExp) => regExp.test(str));
|
|
18382
|
+
}
|
|
18383
|
+
return asRegExp(test).test(str);
|
|
18384
|
+
};
|
|
18385
|
+
var matchObject = (obj, str) => {
|
|
18386
|
+
if (obj.test) {
|
|
18387
|
+
if (!matchPart(str, obj.test)) {
|
|
18388
|
+
return false;
|
|
18389
|
+
}
|
|
18390
|
+
}
|
|
18391
|
+
if (obj.include) {
|
|
18392
|
+
if (!matchPart(str, obj.include)) {
|
|
18393
|
+
return false;
|
|
18394
|
+
}
|
|
18395
|
+
}
|
|
18396
|
+
if (obj.exclude) {
|
|
18397
|
+
if (matchPart(str, obj.exclude)) {
|
|
18398
|
+
return false;
|
|
18399
|
+
}
|
|
18400
|
+
}
|
|
18401
|
+
return true;
|
|
18402
|
+
};
|
|
18403
|
+
|
|
18319
18404
|
// src/lib/DllPlugin.ts
|
|
18320
18405
|
var import_zod5 = __toESM(require("../compiled/zod/index.js"));
|
|
18321
18406
|
|
|
18322
18407
|
// src/builtin-plugin/FlagAllModulesAsUsedPlugin.ts
|
|
18323
|
-
var
|
|
18408
|
+
var import_binding78 = require("@rspack/binding");
|
|
18324
18409
|
var FlagAllModulesAsUsedPlugin = create2(
|
|
18325
|
-
|
|
18410
|
+
import_binding78.BuiltinPluginName.FlagAllModulesAsUsedPlugin,
|
|
18326
18411
|
(explanation) => {
|
|
18327
18412
|
return {
|
|
18328
18413
|
explanation
|
|
@@ -19211,9 +19296,9 @@ var NodeTemplatePlugin = class {
|
|
|
19211
19296
|
};
|
|
19212
19297
|
|
|
19213
19298
|
// src/container/ModuleFederationRuntimePlugin.ts
|
|
19214
|
-
var
|
|
19299
|
+
var import_binding79 = require("@rspack/binding");
|
|
19215
19300
|
var ModuleFederationRuntimePlugin = create2(
|
|
19216
|
-
|
|
19301
|
+
import_binding79.BuiltinPluginName.ModuleFederationRuntimePlugin,
|
|
19217
19302
|
() => {
|
|
19218
19303
|
}
|
|
19219
19304
|
);
|
|
@@ -19409,10 +19494,10 @@ function getDefaultEntryRuntime(paths, options, compiler) {
|
|
|
19409
19494
|
}
|
|
19410
19495
|
|
|
19411
19496
|
// src/sharing/ConsumeSharedPlugin.ts
|
|
19412
|
-
var
|
|
19497
|
+
var import_binding81 = require("@rspack/binding");
|
|
19413
19498
|
|
|
19414
19499
|
// src/sharing/ShareRuntimePlugin.ts
|
|
19415
|
-
var
|
|
19500
|
+
var import_binding80 = require("@rspack/binding");
|
|
19416
19501
|
var compilerSet = /* @__PURE__ */ new WeakSet();
|
|
19417
19502
|
function isSingleton(compiler) {
|
|
19418
19503
|
return compilerSet.has(compiler);
|
|
@@ -19424,7 +19509,7 @@ var ShareRuntimePlugin = class extends RspackBuiltinPlugin {
|
|
|
19424
19509
|
constructor(enhanced = false) {
|
|
19425
19510
|
super();
|
|
19426
19511
|
this.enhanced = enhanced;
|
|
19427
|
-
this.name =
|
|
19512
|
+
this.name = import_binding80.BuiltinPluginName.ShareRuntimePlugin;
|
|
19428
19513
|
}
|
|
19429
19514
|
raw(compiler) {
|
|
19430
19515
|
if (isSingleton(compiler)) return;
|
|
@@ -19443,7 +19528,7 @@ function isRequiredVersion(str) {
|
|
|
19443
19528
|
var ConsumeSharedPlugin = class extends RspackBuiltinPlugin {
|
|
19444
19529
|
constructor(options) {
|
|
19445
19530
|
super();
|
|
19446
|
-
this.name =
|
|
19531
|
+
this.name = import_binding81.BuiltinPluginName.ConsumeSharedPlugin;
|
|
19447
19532
|
this._options = {
|
|
19448
19533
|
consumes: parseOptions(
|
|
19449
19534
|
options.consumes,
|
|
@@ -19506,11 +19591,11 @@ var ConsumeSharedPlugin = class extends RspackBuiltinPlugin {
|
|
|
19506
19591
|
};
|
|
19507
19592
|
|
|
19508
19593
|
// src/sharing/ProvideSharedPlugin.ts
|
|
19509
|
-
var
|
|
19594
|
+
var import_binding82 = require("@rspack/binding");
|
|
19510
19595
|
var ProvideSharedPlugin = class extends RspackBuiltinPlugin {
|
|
19511
19596
|
constructor(options) {
|
|
19512
19597
|
super();
|
|
19513
|
-
this.name =
|
|
19598
|
+
this.name = import_binding82.BuiltinPluginName.ProvideSharedPlugin;
|
|
19514
19599
|
this._provides = parseOptions(
|
|
19515
19600
|
options.provides,
|
|
19516
19601
|
(item) => {
|
|
@@ -19615,11 +19700,11 @@ var SharePlugin = class {
|
|
|
19615
19700
|
};
|
|
19616
19701
|
|
|
19617
19702
|
// src/container/ContainerPlugin.ts
|
|
19618
|
-
var
|
|
19703
|
+
var import_binding83 = require("@rspack/binding");
|
|
19619
19704
|
var ContainerPlugin = class extends RspackBuiltinPlugin {
|
|
19620
19705
|
constructor(options) {
|
|
19621
19706
|
super();
|
|
19622
|
-
this.name =
|
|
19707
|
+
this.name = import_binding83.BuiltinPluginName.ContainerPlugin;
|
|
19623
19708
|
this._options = {
|
|
19624
19709
|
name: options.name,
|
|
19625
19710
|
shareScope: options.shareScope || "default",
|
|
@@ -19663,11 +19748,11 @@ var ContainerPlugin = class extends RspackBuiltinPlugin {
|
|
|
19663
19748
|
};
|
|
19664
19749
|
|
|
19665
19750
|
// src/container/ContainerReferencePlugin.ts
|
|
19666
|
-
var
|
|
19751
|
+
var import_binding84 = require("@rspack/binding");
|
|
19667
19752
|
var ContainerReferencePlugin = class extends RspackBuiltinPlugin {
|
|
19668
19753
|
constructor(options) {
|
|
19669
19754
|
super();
|
|
19670
|
-
this.name =
|
|
19755
|
+
this.name = import_binding84.BuiltinPluginName.ContainerReferencePlugin;
|
|
19671
19756
|
this._options = {
|
|
19672
19757
|
remoteType: options.remoteType,
|
|
19673
19758
|
remotes: parseOptions(
|
|
@@ -19752,7 +19837,7 @@ var ModuleFederationPluginV1 = class {
|
|
|
19752
19837
|
};
|
|
19753
19838
|
|
|
19754
19839
|
// src/exports.ts
|
|
19755
|
-
var
|
|
19840
|
+
var import_binding85 = require("@rspack/binding");
|
|
19756
19841
|
var rspackVersion = import_package.version;
|
|
19757
19842
|
var version = import_package.webpackVersion;
|
|
19758
19843
|
var WebpackError2 = Error;
|
|
@@ -19798,8 +19883,8 @@ var sharing = {
|
|
|
19798
19883
|
};
|
|
19799
19884
|
var experiments2 = {
|
|
19800
19885
|
globalTrace: {
|
|
19801
|
-
register:
|
|
19802
|
-
cleanup:
|
|
19886
|
+
register: import_binding85.registerGlobalTrace,
|
|
19887
|
+
cleanup: import_binding85.cleanupGlobalTrace
|
|
19803
19888
|
},
|
|
19804
19889
|
RemoveDuplicateModulesPlugin
|
|
19805
19890
|
};
|