@rspack/core 1.1.0 → 1.1.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/dist/Chunk.d.ts +1 -2
- package/dist/Compilation.d.ts +16 -3
- package/dist/Dependency.d.ts +2 -2
- package/dist/builtin-loader/lightningcss/index.d.ts +5 -0
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +13 -0
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +11 -0
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +10 -0
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +18 -0
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +5 -0
- package/dist/builtin-plugin/index.d.ts +3 -0
- package/dist/config/normalization.d.ts +2 -1
- package/dist/config/types.d.ts +63 -13
- package/dist/config/utils.d.ts +16 -0
- package/dist/config/zod.d.ts +197 -215
- package/dist/exports.d.ts +2 -0
- package/dist/index.js +1847 -1035
- package/dist/lib/DllPlugin.d.ts +42 -0
- package/dist/lib/DllReferencePlugin.d.ts +119 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -696,6 +696,8 @@ __export(src_exports, {
|
|
|
696
696
|
CopyRspackPlugin: () => CopyRspackPlugin,
|
|
697
697
|
CssExtractRspackPlugin: () => CssExtractRspackPlugin,
|
|
698
698
|
DefinePlugin: () => DefinePlugin,
|
|
699
|
+
DllPlugin: () => DllPlugin,
|
|
700
|
+
DllReferencePlugin: () => DllReferencePlugin,
|
|
699
701
|
DynamicEntryPlugin: () => DynamicEntryPlugin,
|
|
700
702
|
EntryOptionPlugin: () => EntryOptionPlugin_default,
|
|
701
703
|
EntryPlugin: () => EntryPlugin,
|
|
@@ -758,6 +760,8 @@ __export(exports_exports, {
|
|
|
758
760
|
CopyRspackPlugin: () => CopyRspackPlugin,
|
|
759
761
|
CssExtractRspackPlugin: () => CssExtractRspackPlugin,
|
|
760
762
|
DefinePlugin: () => DefinePlugin,
|
|
763
|
+
DllPlugin: () => DllPlugin,
|
|
764
|
+
DllReferencePlugin: () => DllReferencePlugin,
|
|
761
765
|
DynamicEntryPlugin: () => DynamicEntryPlugin,
|
|
762
766
|
EntryOptionPlugin: () => EntryOptionPlugin_default,
|
|
763
767
|
EntryPlugin: () => EntryPlugin,
|
|
@@ -809,7 +813,7 @@ __export(exports_exports, {
|
|
|
809
813
|
var import_package = require("../package.json");
|
|
810
814
|
|
|
811
815
|
// src/Compilation.ts
|
|
812
|
-
var
|
|
816
|
+
var import_binding6 = require("@rspack/binding");
|
|
813
817
|
var liteTapable = __toESM(require("@rspack/lite-tapable"));
|
|
814
818
|
|
|
815
819
|
// src/Chunk.ts
|
|
@@ -1077,24 +1081,15 @@ var Chunk = class _Chunk {
|
|
|
1077
1081
|
__internal__innerUkey() {
|
|
1078
1082
|
return this.#inner.__inner_ukey;
|
|
1079
1083
|
}
|
|
1080
|
-
__internal_to_path_data_chunk() {
|
|
1081
|
-
return {
|
|
1082
|
-
id: this.id,
|
|
1083
|
-
name: this.name,
|
|
1084
|
-
hash: this.hash,
|
|
1085
|
-
contentHash: this.contentHash
|
|
1086
|
-
};
|
|
1087
|
-
}
|
|
1088
1084
|
};
|
|
1089
1085
|
|
|
1090
1086
|
// src/ChunkGraph.ts
|
|
1091
|
-
var
|
|
1087
|
+
var import_binding4 = require("@rspack/binding");
|
|
1092
1088
|
|
|
1093
1089
|
// src/Module.ts
|
|
1094
|
-
var
|
|
1090
|
+
var import_binding3 = require("@rspack/binding");
|
|
1095
1091
|
|
|
1096
1092
|
// src/Dependency.ts
|
|
1097
|
-
var import_binding3 = require("@rspack/binding");
|
|
1098
1093
|
var Dependency = class _Dependency {
|
|
1099
1094
|
static __from_binding(binding3) {
|
|
1100
1095
|
return new _Dependency(binding3);
|
|
@@ -1125,9 +1120,7 @@ var Dependency = class _Dependency {
|
|
|
1125
1120
|
return binding3.critical;
|
|
1126
1121
|
},
|
|
1127
1122
|
set(val) {
|
|
1128
|
-
|
|
1129
|
-
binding3.critical = val;
|
|
1130
|
-
}
|
|
1123
|
+
binding3.critical = val;
|
|
1131
1124
|
}
|
|
1132
1125
|
}
|
|
1133
1126
|
});
|
|
@@ -1392,7 +1385,7 @@ var Module = class _Module {
|
|
|
1392
1385
|
modules: {
|
|
1393
1386
|
enumerable: true,
|
|
1394
1387
|
get() {
|
|
1395
|
-
if (module2 instanceof
|
|
1388
|
+
if (module2 instanceof import_binding3.JsModule) {
|
|
1396
1389
|
return module2.modules ? module2.modules.map((m) => _Module.__from_binding(m)) : void 0;
|
|
1397
1390
|
}
|
|
1398
1391
|
return void 0;
|
|
@@ -1480,14 +1473,14 @@ var ChunkGraph = class {
|
|
|
1480
1473
|
this.compilation = compilation;
|
|
1481
1474
|
}
|
|
1482
1475
|
getChunkModules(chunk) {
|
|
1483
|
-
return (0,
|
|
1476
|
+
return (0, import_binding4.__chunk_graph_inner_get_chunk_modules)(
|
|
1484
1477
|
chunk.__internal__innerUkey(),
|
|
1485
1478
|
this.compilation.__internal_getInner()
|
|
1486
1479
|
).map((m) => Module.__from_binding(m, this.compilation));
|
|
1487
1480
|
}
|
|
1488
1481
|
getChunkModulesIterable(chunk) {
|
|
1489
1482
|
return new Set(
|
|
1490
|
-
(0,
|
|
1483
|
+
(0, import_binding4.__chunk_graph_inner_get_chunk_modules)(
|
|
1491
1484
|
chunk.__internal__innerUkey(),
|
|
1492
1485
|
this.compilation.__internal_getInner()
|
|
1493
1486
|
).map((m) => Module.__from_binding(m, this.compilation))
|
|
@@ -1495,7 +1488,7 @@ var ChunkGraph = class {
|
|
|
1495
1488
|
}
|
|
1496
1489
|
getChunkEntryModulesIterable(chunk) {
|
|
1497
1490
|
return new Set(
|
|
1498
|
-
(0,
|
|
1491
|
+
(0, import_binding4.__chunk_graph_inner_get_chunk_entry_modules)(
|
|
1499
1492
|
chunk.__internal__innerUkey(),
|
|
1500
1493
|
this.compilation.__internal_getInner()
|
|
1501
1494
|
).map((m) => Module.__from_binding(m, this.compilation))
|
|
@@ -1503,7 +1496,7 @@ var ChunkGraph = class {
|
|
|
1503
1496
|
}
|
|
1504
1497
|
getChunkEntryDependentChunksIterable(chunk) {
|
|
1505
1498
|
return new Set(
|
|
1506
|
-
(0,
|
|
1499
|
+
(0, import_binding4.__chunk_graph_inner_get_chunk_entry_dependent_chunks_iterable)(
|
|
1507
1500
|
chunk.__internal__innerUkey(),
|
|
1508
1501
|
this.compilation.__internal_getInner()
|
|
1509
1502
|
).map(
|
|
@@ -1513,7 +1506,7 @@ var ChunkGraph = class {
|
|
|
1513
1506
|
}
|
|
1514
1507
|
getChunkModulesIterableBySourceType(chunk, sourceType) {
|
|
1515
1508
|
return new Set(
|
|
1516
|
-
(0,
|
|
1509
|
+
(0, import_binding4.__chunk_graph_inner_get_chunk_modules_iterable_by_source_type)(
|
|
1517
1510
|
chunk.__internal__innerUkey(),
|
|
1518
1511
|
sourceType,
|
|
1519
1512
|
this.compilation.__internal_getInner()
|
|
@@ -1523,7 +1516,7 @@ var ChunkGraph = class {
|
|
|
1523
1516
|
};
|
|
1524
1517
|
|
|
1525
1518
|
// src/Entrypoint.ts
|
|
1526
|
-
var
|
|
1519
|
+
var import_binding5 = require("@rspack/binding");
|
|
1527
1520
|
var Entrypoint = class _Entrypoint extends ChunkGroup {
|
|
1528
1521
|
static __from_binding(chunk, compilation) {
|
|
1529
1522
|
return new _Entrypoint(chunk, compilation);
|
|
@@ -1532,7 +1525,7 @@ var Entrypoint = class _Entrypoint extends ChunkGroup {
|
|
|
1532
1525
|
super(inner, compilation);
|
|
1533
1526
|
}
|
|
1534
1527
|
getRuntimeChunk() {
|
|
1535
|
-
const c = (0,
|
|
1528
|
+
const c = (0, import_binding5.__entrypoint_inner_get_runtime_chunk)(
|
|
1536
1529
|
this.__internal__innerUkey(),
|
|
1537
1530
|
this.__internal__innerCompilation()
|
|
1538
1531
|
);
|
|
@@ -3167,7 +3160,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3167
3160
|
for (let i = 0; i < errs.length; i++) {
|
|
3168
3161
|
const error = errs[i];
|
|
3169
3162
|
inner.pushDiagnostic(
|
|
3170
|
-
JsRspackDiagnostic.__to_binding(error,
|
|
3163
|
+
JsRspackDiagnostic.__to_binding(error, import_binding6.JsRspackSeverity.Error)
|
|
3171
3164
|
);
|
|
3172
3165
|
}
|
|
3173
3166
|
return Reflect.apply(target2, thisArg, errs);
|
|
@@ -3193,7 +3186,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3193
3186
|
const errList = errs.map((error) => {
|
|
3194
3187
|
return JsRspackDiagnostic.__to_binding(
|
|
3195
3188
|
error,
|
|
3196
|
-
|
|
3189
|
+
import_binding6.JsRspackSeverity.Error
|
|
3197
3190
|
);
|
|
3198
3191
|
});
|
|
3199
3192
|
inner.spliceDiagnostic(0, 0, errList);
|
|
@@ -3206,7 +3199,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3206
3199
|
const errList = errors2.map((error) => {
|
|
3207
3200
|
return JsRspackDiagnostic.__to_binding(
|
|
3208
3201
|
error,
|
|
3209
|
-
|
|
3202
|
+
import_binding6.JsRspackSeverity.Error
|
|
3210
3203
|
);
|
|
3211
3204
|
});
|
|
3212
3205
|
inner.spliceDiagnostic(startIdx, startIdx + delCount, errList);
|
|
@@ -3233,7 +3226,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3233
3226
|
0,
|
|
3234
3227
|
length,
|
|
3235
3228
|
errors.map((error) => {
|
|
3236
|
-
return JsRspackDiagnostic.__to_binding(error,
|
|
3229
|
+
return JsRspackDiagnostic.__to_binding(error, import_binding6.JsRspackSeverity.Error);
|
|
3237
3230
|
})
|
|
3238
3231
|
);
|
|
3239
3232
|
}
|
|
@@ -3250,7 +3243,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3250
3243
|
thisArg,
|
|
3251
3244
|
processWarningsHook.call(warns).map((warn) => {
|
|
3252
3245
|
inner.pushDiagnostic(
|
|
3253
|
-
JsRspackDiagnostic.__to_binding(warn,
|
|
3246
|
+
JsRspackDiagnostic.__to_binding(warn, import_binding6.JsRspackSeverity.Warn)
|
|
3254
3247
|
);
|
|
3255
3248
|
return warn;
|
|
3256
3249
|
})
|
|
@@ -3281,7 +3274,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3281
3274
|
warnings2.map((warn) => {
|
|
3282
3275
|
return JsRspackDiagnostic.__to_binding(
|
|
3283
3276
|
warn,
|
|
3284
|
-
|
|
3277
|
+
import_binding6.JsRspackSeverity.Warn
|
|
3285
3278
|
);
|
|
3286
3279
|
})
|
|
3287
3280
|
);
|
|
@@ -3293,7 +3286,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3293
3286
|
handler(target2, thisArg, [startIdx, delCount, ...warns]) {
|
|
3294
3287
|
warns = processWarningsHook.call(warns);
|
|
3295
3288
|
const warnList = warns.map((warn) => {
|
|
3296
|
-
return JsRspackDiagnostic.__to_binding(warn,
|
|
3289
|
+
return JsRspackDiagnostic.__to_binding(warn, import_binding6.JsRspackSeverity.Warn);
|
|
3297
3290
|
});
|
|
3298
3291
|
inner.spliceDiagnostic(startIdx, startIdx + delCount, warnList);
|
|
3299
3292
|
return Reflect.apply(target2, thisArg, [
|
|
@@ -3319,33 +3312,41 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3319
3312
|
0,
|
|
3320
3313
|
length,
|
|
3321
3314
|
warnings.map((warning) => {
|
|
3322
|
-
return JsRspackDiagnostic.__to_binding(warning,
|
|
3315
|
+
return JsRspackDiagnostic.__to_binding(warning, import_binding6.JsRspackSeverity.Warn);
|
|
3323
3316
|
})
|
|
3324
3317
|
);
|
|
3325
3318
|
}
|
|
3326
3319
|
getPath(filename2, data = {}) {
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3320
|
+
var _a;
|
|
3321
|
+
const pathData = { ...data };
|
|
3322
|
+
if (data.contentHashType && ((_a = data.chunk) == null ? void 0 : _a.contentHash)) {
|
|
3323
|
+
pathData.contentHash = data.chunk.contentHash[data.contentHashType];
|
|
3324
|
+
}
|
|
3325
|
+
return __privateGet(this, _inner).getPath(filename2, pathData);
|
|
3331
3326
|
}
|
|
3332
3327
|
getPathWithInfo(filename2, data = {}) {
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3328
|
+
var _a;
|
|
3329
|
+
const pathData = { ...data };
|
|
3330
|
+
if (data.contentHashType && ((_a = data.chunk) == null ? void 0 : _a.contentHash)) {
|
|
3331
|
+
pathData.contentHash = data.chunk.contentHash[data.contentHashType];
|
|
3332
|
+
}
|
|
3333
|
+
return __privateGet(this, _inner).getPathWithInfo(filename2, pathData);
|
|
3337
3334
|
}
|
|
3338
3335
|
getAssetPath(filename2, data = {}) {
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3336
|
+
var _a;
|
|
3337
|
+
const pathData = { ...data };
|
|
3338
|
+
if (data.contentHashType && ((_a = data.chunk) == null ? void 0 : _a.contentHash)) {
|
|
3339
|
+
pathData.contentHash = data.chunk.contentHash[data.contentHashType];
|
|
3340
|
+
}
|
|
3341
|
+
return __privateGet(this, _inner).getAssetPath(filename2, pathData);
|
|
3343
3342
|
}
|
|
3344
3343
|
getAssetPathWithInfo(filename2, data = {}) {
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3344
|
+
var _a;
|
|
3345
|
+
const pathData = { ...data };
|
|
3346
|
+
if (data.contentHashType && ((_a = data.chunk) == null ? void 0 : _a.contentHash)) {
|
|
3347
|
+
pathData.contentHash = data.chunk.contentHash[data.contentHashType];
|
|
3348
|
+
}
|
|
3349
|
+
return __privateGet(this, _inner).getAssetPathWithInfo(filename2, pathData);
|
|
3349
3350
|
}
|
|
3350
3351
|
getLogger(name2) {
|
|
3351
3352
|
if (!name2) {
|
|
@@ -5086,40 +5087,40 @@ function create2(name2, resolve2, affectedHooks) {
|
|
|
5086
5087
|
}
|
|
5087
5088
|
|
|
5088
5089
|
// src/builtin-plugin/APIPlugin.ts
|
|
5089
|
-
var
|
|
5090
|
-
var APIPlugin = create2(
|
|
5090
|
+
var import_binding7 = require("@rspack/binding");
|
|
5091
|
+
var APIPlugin = create2(import_binding7.BuiltinPluginName.APIPlugin, () => {
|
|
5091
5092
|
});
|
|
5092
5093
|
|
|
5093
5094
|
// src/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.ts
|
|
5094
|
-
var
|
|
5095
|
+
var import_binding8 = require("@rspack/binding");
|
|
5095
5096
|
var ArrayPushCallbackChunkFormatPlugin = create2(
|
|
5096
|
-
|
|
5097
|
+
import_binding8.BuiltinPluginName.ArrayPushCallbackChunkFormatPlugin,
|
|
5097
5098
|
() => {
|
|
5098
5099
|
}
|
|
5099
5100
|
);
|
|
5100
5101
|
|
|
5101
5102
|
// src/builtin-plugin/AssetModulesPlugin.ts
|
|
5102
|
-
var
|
|
5103
|
+
var import_binding9 = require("@rspack/binding");
|
|
5103
5104
|
var AssetModulesPlugin = create2(
|
|
5104
|
-
|
|
5105
|
+
import_binding9.BuiltinPluginName.AssetModulesPlugin,
|
|
5105
5106
|
() => {
|
|
5106
5107
|
},
|
|
5107
5108
|
"compilation"
|
|
5108
5109
|
);
|
|
5109
5110
|
|
|
5110
5111
|
// src/builtin-plugin/AsyncWebAssemblyModulesPlugin.ts
|
|
5111
|
-
var
|
|
5112
|
+
var import_binding10 = require("@rspack/binding");
|
|
5112
5113
|
var AsyncWebAssemblyModulesPlugin = create2(
|
|
5113
|
-
|
|
5114
|
+
import_binding10.BuiltinPluginName.AsyncWebAssemblyModulesPlugin,
|
|
5114
5115
|
() => {
|
|
5115
5116
|
},
|
|
5116
5117
|
"compilation"
|
|
5117
5118
|
);
|
|
5118
5119
|
|
|
5119
5120
|
// src/builtin-plugin/BannerPlugin.ts
|
|
5120
|
-
var
|
|
5121
|
+
var import_binding11 = require("@rspack/binding");
|
|
5121
5122
|
var BannerPlugin = create2(
|
|
5122
|
-
|
|
5123
|
+
import_binding11.BuiltinPluginName.BannerPlugin,
|
|
5123
5124
|
(args) => {
|
|
5124
5125
|
if (typeof args === "string" || typeof args === "function") {
|
|
5125
5126
|
return {
|
|
@@ -5140,9 +5141,9 @@ var BannerPlugin = create2(
|
|
|
5140
5141
|
);
|
|
5141
5142
|
|
|
5142
5143
|
// src/builtin-plugin/BundlerInfoRspackPlugin.ts
|
|
5143
|
-
var
|
|
5144
|
+
var import_binding12 = require("@rspack/binding");
|
|
5144
5145
|
var BundlerInfoRspackPlugin = create2(
|
|
5145
|
-
|
|
5146
|
+
import_binding12.BuiltinPluginName.BundlerInfoRspackPlugin,
|
|
5146
5147
|
(options) => {
|
|
5147
5148
|
return {
|
|
5148
5149
|
version: options.version || "unknown",
|
|
@@ -5153,25 +5154,25 @@ var BundlerInfoRspackPlugin = create2(
|
|
|
5153
5154
|
);
|
|
5154
5155
|
|
|
5155
5156
|
// src/builtin-plugin/ChunkPrefetchPreloadPlugin.ts
|
|
5156
|
-
var
|
|
5157
|
+
var import_binding13 = require("@rspack/binding");
|
|
5157
5158
|
var ChunkPrefetchPreloadPlugin = create2(
|
|
5158
|
-
|
|
5159
|
+
import_binding13.BuiltinPluginName.ChunkPrefetchPreloadPlugin,
|
|
5159
5160
|
() => {
|
|
5160
5161
|
}
|
|
5161
5162
|
);
|
|
5162
5163
|
|
|
5163
5164
|
// src/builtin-plugin/CommonJsChunkFormatPlugin.ts
|
|
5164
|
-
var
|
|
5165
|
+
var import_binding14 = require("@rspack/binding");
|
|
5165
5166
|
var CommonJsChunkFormatPlugin = create2(
|
|
5166
|
-
|
|
5167
|
+
import_binding14.BuiltinPluginName.CommonJsChunkFormatPlugin,
|
|
5167
5168
|
() => {
|
|
5168
5169
|
}
|
|
5169
5170
|
);
|
|
5170
5171
|
|
|
5171
5172
|
// src/builtin-plugin/CopyRspackPlugin.ts
|
|
5172
|
-
var
|
|
5173
|
+
var import_binding15 = require("@rspack/binding");
|
|
5173
5174
|
var CopyRspackPlugin = create2(
|
|
5174
|
-
|
|
5175
|
+
import_binding15.BuiltinPluginName.CopyRspackPlugin,
|
|
5175
5176
|
(copy) => {
|
|
5176
5177
|
const ret = {
|
|
5177
5178
|
patterns: []
|
|
@@ -5191,7 +5192,7 @@ var CopyRspackPlugin = create2(
|
|
|
5191
5192
|
);
|
|
5192
5193
|
|
|
5193
5194
|
// src/builtin-plugin/css-extract/index.ts
|
|
5194
|
-
var
|
|
5195
|
+
var import_binding16 = require("@rspack/binding");
|
|
5195
5196
|
var import_node_path3 = require("path");
|
|
5196
5197
|
|
|
5197
5198
|
// src/builtin-plugin/css-extract/loader.ts
|
|
@@ -5227,7 +5228,7 @@ var CssExtractRspackPlugin = class {
|
|
|
5227
5228
|
this.options.pathinfo = true;
|
|
5228
5229
|
}
|
|
5229
5230
|
compiler.__internal__registerBuiltinPlugin({
|
|
5230
|
-
name:
|
|
5231
|
+
name: import_binding16.BuiltinPluginName.CssExtractRspackPlugin,
|
|
5231
5232
|
options: this.normalizeOptions(this.options)
|
|
5232
5233
|
});
|
|
5233
5234
|
}
|
|
@@ -5285,27 +5286,27 @@ CssExtractRspackPlugin.pluginName = PLUGIN_NAME;
|
|
|
5285
5286
|
CssExtractRspackPlugin.loader = LOADER_PATH;
|
|
5286
5287
|
|
|
5287
5288
|
// src/builtin-plugin/CssModulesPlugin.ts
|
|
5288
|
-
var
|
|
5289
|
+
var import_binding17 = require("@rspack/binding");
|
|
5289
5290
|
var CssModulesPlugin = create2(
|
|
5290
|
-
|
|
5291
|
+
import_binding17.BuiltinPluginName.CssModulesPlugin,
|
|
5291
5292
|
() => {
|
|
5292
5293
|
},
|
|
5293
5294
|
"compilation"
|
|
5294
5295
|
);
|
|
5295
5296
|
|
|
5296
5297
|
// src/builtin-plugin/DataUriPlugin.ts
|
|
5297
|
-
var
|
|
5298
|
+
var import_binding18 = require("@rspack/binding");
|
|
5298
5299
|
var DataUriPlugin = create2(
|
|
5299
|
-
|
|
5300
|
+
import_binding18.BuiltinPluginName.DataUriPlugin,
|
|
5300
5301
|
() => {
|
|
5301
5302
|
},
|
|
5302
5303
|
"compilation"
|
|
5303
5304
|
);
|
|
5304
5305
|
|
|
5305
5306
|
// src/builtin-plugin/DefinePlugin.ts
|
|
5306
|
-
var
|
|
5307
|
+
var import_binding19 = require("@rspack/binding");
|
|
5307
5308
|
var DefinePlugin = create2(
|
|
5308
|
-
|
|
5309
|
+
import_binding19.BuiltinPluginName.DefinePlugin,
|
|
5309
5310
|
function(define) {
|
|
5310
5311
|
var _a;
|
|
5311
5312
|
const supportsBigIntLiteral = ((_a = this.options.output.environment) == null ? void 0 : _a.bigIntLiteral) ?? false;
|
|
@@ -5349,25 +5350,25 @@ var normalizeValue = (define, supportsBigIntLiteral) => {
|
|
|
5349
5350
|
};
|
|
5350
5351
|
|
|
5351
5352
|
// src/builtin-plugin/DeterministicChunkIdsPlugin.ts
|
|
5352
|
-
var
|
|
5353
|
+
var import_binding20 = require("@rspack/binding");
|
|
5353
5354
|
var DeterministicChunkIdsPlugin = create2(
|
|
5354
|
-
|
|
5355
|
+
import_binding20.BuiltinPluginName.DeterministicChunkIdsPlugin,
|
|
5355
5356
|
() => {
|
|
5356
5357
|
},
|
|
5357
5358
|
"compilation"
|
|
5358
5359
|
);
|
|
5359
5360
|
|
|
5360
5361
|
// src/builtin-plugin/DeterministicModuleIdsPlugin.ts
|
|
5361
|
-
var
|
|
5362
|
+
var import_binding21 = require("@rspack/binding");
|
|
5362
5363
|
var DeterministicModuleIdsPlugin = create2(
|
|
5363
|
-
|
|
5364
|
+
import_binding21.BuiltinPluginName.DeterministicModuleIdsPlugin,
|
|
5364
5365
|
() => {
|
|
5365
5366
|
},
|
|
5366
5367
|
"compilation"
|
|
5367
5368
|
);
|
|
5368
5369
|
|
|
5369
5370
|
// src/builtin-plugin/DynamicEntryPlugin.ts
|
|
5370
|
-
var
|
|
5371
|
+
var import_binding25 = require("@rspack/binding");
|
|
5371
5372
|
|
|
5372
5373
|
// src/lib/EntryOptionPlugin.ts
|
|
5373
5374
|
var import_node_assert = __toESM(require("assert"));
|
|
@@ -5440,11 +5441,11 @@ var EntryOptionPlugin = class _EntryOptionPlugin {
|
|
|
5440
5441
|
var EntryOptionPlugin_default = EntryOptionPlugin;
|
|
5441
5442
|
|
|
5442
5443
|
// src/builtin-plugin/EntryPlugin.ts
|
|
5443
|
-
var
|
|
5444
|
+
var import_binding24 = require("@rspack/binding");
|
|
5444
5445
|
|
|
5445
5446
|
// src/config/adapter.ts
|
|
5446
5447
|
var import_node_assert3 = __toESM(require("assert"));
|
|
5447
|
-
var
|
|
5448
|
+
var import_binding23 = require("@rspack/binding");
|
|
5448
5449
|
|
|
5449
5450
|
// src/util/identifier.ts
|
|
5450
5451
|
var import_node_path4 = __toESM(require("path"));
|
|
@@ -5752,7 +5753,7 @@ function toFeatures(featureOptions) {
|
|
|
5752
5753
|
var import_node_querystring = __toESM(require("querystring"));
|
|
5753
5754
|
var import_node_assert2 = __toESM(require("assert"));
|
|
5754
5755
|
var import_node_util3 = require("util");
|
|
5755
|
-
var
|
|
5756
|
+
var import_binding22 = require("@rspack/binding");
|
|
5756
5757
|
var import_webpack_sources2 = require("../compiled/webpack-sources/index.js");
|
|
5757
5758
|
|
|
5758
5759
|
// src/NormalModule.ts
|
|
@@ -6347,7 +6348,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6347
6348
|
error.moduleIdentifier = this._module.identifier();
|
|
6348
6349
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
6349
6350
|
error,
|
|
6350
|
-
severity:
|
|
6351
|
+
severity: import_binding22.JsRspackSeverity.Error
|
|
6351
6352
|
});
|
|
6352
6353
|
};
|
|
6353
6354
|
loaderContext.emitWarning = function emitWarning(warn) {
|
|
@@ -6363,7 +6364,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6363
6364
|
warning.moduleIdentifier = this._module.identifier();
|
|
6364
6365
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
6365
6366
|
error: warning,
|
|
6366
|
-
severity:
|
|
6367
|
+
severity: import_binding22.JsRspackSeverity.Warn
|
|
6367
6368
|
});
|
|
6368
6369
|
};
|
|
6369
6370
|
loaderContext.emitFile = function emitFile(name2, content, sourceMap, assetInfo) {
|
|
@@ -6404,7 +6405,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6404
6405
|
moduleIdentifier: context2._module.moduleIdentifier
|
|
6405
6406
|
});
|
|
6406
6407
|
compiler._lastCompilation.__internal__pushDiagnostic(
|
|
6407
|
-
(0,
|
|
6408
|
+
(0, import_binding22.formatDiagnostic)(d)
|
|
6408
6409
|
);
|
|
6409
6410
|
}
|
|
6410
6411
|
};
|
|
@@ -6494,7 +6495,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6494
6495
|
});
|
|
6495
6496
|
try {
|
|
6496
6497
|
switch (loaderState) {
|
|
6497
|
-
case
|
|
6498
|
+
case import_binding22.JsLoaderState.Pitching: {
|
|
6498
6499
|
while (loaderContext.loaderIndex < loaderContext.loaders.length) {
|
|
6499
6500
|
const currentLoaderObject = loaderContext.loaders[loaderContext.loaderIndex];
|
|
6500
6501
|
if (currentLoaderObject.shouldYield()) break;
|
|
@@ -6522,7 +6523,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6522
6523
|
}
|
|
6523
6524
|
break;
|
|
6524
6525
|
}
|
|
6525
|
-
case
|
|
6526
|
+
case import_binding22.JsLoaderState.Normal: {
|
|
6526
6527
|
let content = context2.content;
|
|
6527
6528
|
let sourceMap = JsSourceMap.__from_binding(context2.sourceMap);
|
|
6528
6529
|
let additionalData = context2.additionalData;
|
|
@@ -7035,31 +7036,31 @@ var getRawModuleRule = (rule, path10, options, upperType) => {
|
|
|
7035
7036
|
function getRawRuleSetCondition(condition) {
|
|
7036
7037
|
if (typeof condition === "string") {
|
|
7037
7038
|
return {
|
|
7038
|
-
type:
|
|
7039
|
+
type: import_binding23.RawRuleSetConditionType.string,
|
|
7039
7040
|
string: condition
|
|
7040
7041
|
};
|
|
7041
7042
|
}
|
|
7042
7043
|
if (condition instanceof RegExp) {
|
|
7043
7044
|
return {
|
|
7044
|
-
type:
|
|
7045
|
+
type: import_binding23.RawRuleSetConditionType.regexp,
|
|
7045
7046
|
regexp: condition
|
|
7046
7047
|
};
|
|
7047
7048
|
}
|
|
7048
7049
|
if (typeof condition === "function") {
|
|
7049
7050
|
return {
|
|
7050
|
-
type:
|
|
7051
|
+
type: import_binding23.RawRuleSetConditionType.func,
|
|
7051
7052
|
func: condition
|
|
7052
7053
|
};
|
|
7053
7054
|
}
|
|
7054
7055
|
if (Array.isArray(condition)) {
|
|
7055
7056
|
return {
|
|
7056
|
-
type:
|
|
7057
|
+
type: import_binding23.RawRuleSetConditionType.array,
|
|
7057
7058
|
array: condition.map((i) => getRawRuleSetCondition(i))
|
|
7058
7059
|
};
|
|
7059
7060
|
}
|
|
7060
7061
|
if (typeof condition === "object" && condition !== null) {
|
|
7061
7062
|
return {
|
|
7062
|
-
type:
|
|
7063
|
+
type: import_binding23.RawRuleSetConditionType.logical,
|
|
7063
7064
|
logical: [getRawRuleSetLogicalConditions(condition)]
|
|
7064
7065
|
};
|
|
7065
7066
|
}
|
|
@@ -7294,31 +7295,54 @@ function getRawSnapshotOptions(_snapshot) {
|
|
|
7294
7295
|
return {};
|
|
7295
7296
|
}
|
|
7296
7297
|
function getRawExperiments(experiments3) {
|
|
7297
|
-
const { topLevelAwait, layers, incremental: incremental2, rspackFuture } = experiments3;
|
|
7298
|
+
const { topLevelAwait, layers, incremental: incremental2, rspackFuture, cache } = experiments3;
|
|
7298
7299
|
(0, import_node_assert3.default)(
|
|
7299
7300
|
!isNil(topLevelAwait) && !isNil(rspackFuture) && !isNil(layers) && !isNil(incremental2)
|
|
7300
7301
|
);
|
|
7301
7302
|
return {
|
|
7302
7303
|
layers,
|
|
7303
7304
|
topLevelAwait,
|
|
7305
|
+
cache: getRawExperimentCache(cache),
|
|
7304
7306
|
incremental: getRawIncremental(incremental2),
|
|
7305
7307
|
rspackFuture: getRawRspackFutureOptions(rspackFuture)
|
|
7306
7308
|
};
|
|
7307
7309
|
}
|
|
7310
|
+
function getRawExperimentCache(cache) {
|
|
7311
|
+
if (cache === void 0) {
|
|
7312
|
+
throw new Error("experiment cache can not be undefined");
|
|
7313
|
+
}
|
|
7314
|
+
if (typeof cache === "boolean") {
|
|
7315
|
+
return {
|
|
7316
|
+
type: cache ? "memory" : "disable"
|
|
7317
|
+
};
|
|
7318
|
+
}
|
|
7319
|
+
if (cache.type === "persistent") {
|
|
7320
|
+
const { type, snapshot, storage } = cache;
|
|
7321
|
+
return {
|
|
7322
|
+
type,
|
|
7323
|
+
snapshot,
|
|
7324
|
+
storage: [storage]
|
|
7325
|
+
};
|
|
7326
|
+
}
|
|
7327
|
+
return cache;
|
|
7328
|
+
}
|
|
7308
7329
|
function getRawIncremental(incremental2) {
|
|
7309
7330
|
if (incremental2 === false) {
|
|
7310
7331
|
return void 0;
|
|
7311
7332
|
}
|
|
7312
7333
|
return {
|
|
7313
7334
|
make: incremental2.make,
|
|
7314
|
-
emitAssets: incremental2.emitAssets,
|
|
7315
7335
|
inferAsyncModules: incremental2.inferAsyncModules,
|
|
7316
7336
|
providedExports: incremental2.providedExports,
|
|
7317
7337
|
dependenciesDiagnostics: incremental2.dependenciesDiagnostics,
|
|
7338
|
+
buildChunkGraph: incremental2.buildChunkGraph,
|
|
7318
7339
|
modulesHashes: incremental2.modulesHashes,
|
|
7319
7340
|
modulesCodegen: incremental2.modulesCodegen,
|
|
7320
7341
|
modulesRuntimeRequirements: incremental2.modulesRuntimeRequirements,
|
|
7321
|
-
|
|
7342
|
+
chunksRuntimeRequirements: incremental2.chunksRuntimeRequirements,
|
|
7343
|
+
chunksHashes: incremental2.chunksHashes,
|
|
7344
|
+
chunksRender: incremental2.chunksRender,
|
|
7345
|
+
emitAssets: incremental2.emitAssets
|
|
7322
7346
|
};
|
|
7323
7347
|
}
|
|
7324
7348
|
function getRawRspackFutureOptions(future) {
|
|
@@ -8513,6 +8537,7 @@ var applyInfrastructureLoggingDefaults = (infrastructureLogging2) => {
|
|
|
8513
8537
|
D(infrastructureLogging2, "appendOnly", !tty);
|
|
8514
8538
|
};
|
|
8515
8539
|
var applyExperimentsDefaults = (experiments3, { production }) => {
|
|
8540
|
+
F(experiments3, "cache", () => !production);
|
|
8516
8541
|
D(experiments3, "futureDefaults", false);
|
|
8517
8542
|
D(experiments3, "lazyCompilation", false);
|
|
8518
8543
|
D(experiments3, "asyncWebAssembly", experiments3.futureDefaults);
|
|
@@ -8529,6 +8554,9 @@ var applyExperimentsDefaults = (experiments3, { production }) => {
|
|
|
8529
8554
|
D(experiments3.incremental, "modulesHashes", false);
|
|
8530
8555
|
D(experiments3.incremental, "modulesCodegen", false);
|
|
8531
8556
|
D(experiments3.incremental, "modulesRuntimeRequirements", false);
|
|
8557
|
+
D(experiments3.incremental, "chunksRuntimeRequirements", false);
|
|
8558
|
+
D(experiments3.incremental, "chunksHashes", false);
|
|
8559
|
+
D(experiments3.incremental, "chunksRender", false);
|
|
8532
8560
|
D(experiments3.incremental, "emitAssets", true);
|
|
8533
8561
|
}
|
|
8534
8562
|
D(experiments3, "rspackFuture", {});
|
|
@@ -9474,6 +9502,7 @@ var getNormalizedRspackOptions = (config2) => {
|
|
|
9474
9502
|
plugins: nestedArray(config2.plugins, (p) => [...p]),
|
|
9475
9503
|
experiments: nestedConfig(config2.experiments, (experiments3) => ({
|
|
9476
9504
|
...experiments3,
|
|
9505
|
+
cache: experiments3.cache,
|
|
9477
9506
|
lazyCompilation: optionalNestedConfig(
|
|
9478
9507
|
experiments3.lazyCompilation,
|
|
9479
9508
|
(options) => options === true ? {} : options
|
|
@@ -9482,14 +9511,17 @@ var getNormalizedRspackOptions = (config2) => {
|
|
|
9482
9511
|
experiments3.incremental,
|
|
9483
9512
|
(options) => options === true ? {
|
|
9484
9513
|
make: true,
|
|
9485
|
-
emitAssets: true,
|
|
9486
9514
|
dependenciesDiagnostics: true,
|
|
9487
9515
|
inferAsyncModules: true,
|
|
9488
9516
|
providedExports: true,
|
|
9517
|
+
buildChunkGraph: true,
|
|
9489
9518
|
modulesHashes: true,
|
|
9490
9519
|
modulesCodegen: true,
|
|
9491
9520
|
modulesRuntimeRequirements: true,
|
|
9492
|
-
|
|
9521
|
+
chunksRuntimeRequirements: true,
|
|
9522
|
+
chunksHashes: true,
|
|
9523
|
+
chunksRender: true,
|
|
9524
|
+
emitAssets: true
|
|
9493
9525
|
} : options
|
|
9494
9526
|
)
|
|
9495
9527
|
})),
|
|
@@ -9590,55 +9622,204 @@ var keyedNestedConfig = (value, fn2, customKeys) => {
|
|
|
9590
9622
|
|
|
9591
9623
|
// src/config/zod.ts
|
|
9592
9624
|
var import_node_path7 = __toESM(require("path"));
|
|
9625
|
+
var import_zod2 = require("../compiled/zod/index.js");
|
|
9626
|
+
|
|
9627
|
+
// src/config/utils.ts
|
|
9593
9628
|
var import_zod = require("../compiled/zod/index.js");
|
|
9594
|
-
|
|
9629
|
+
function processCreateParams(params) {
|
|
9630
|
+
if (!params) return {};
|
|
9631
|
+
const { errorMap, invalid_type_error, required_error, description } = params;
|
|
9632
|
+
if (errorMap && (invalid_type_error || required_error)) {
|
|
9633
|
+
throw new Error(
|
|
9634
|
+
`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`
|
|
9635
|
+
);
|
|
9636
|
+
}
|
|
9637
|
+
if (errorMap) return { errorMap, description };
|
|
9638
|
+
const customMap = (iss, ctx) => {
|
|
9639
|
+
const { message } = params;
|
|
9640
|
+
if (iss.code === "invalid_enum_value") {
|
|
9641
|
+
return { message: message ?? ctx.defaultError };
|
|
9642
|
+
}
|
|
9643
|
+
if (typeof ctx.data === "undefined") {
|
|
9644
|
+
return { message: message ?? required_error ?? ctx.defaultError };
|
|
9645
|
+
}
|
|
9646
|
+
if (iss.code !== "invalid_type") return { message: ctx.defaultError };
|
|
9647
|
+
return { message: message ?? invalid_type_error ?? ctx.defaultError };
|
|
9648
|
+
};
|
|
9649
|
+
return { errorMap: customMap, description };
|
|
9650
|
+
}
|
|
9651
|
+
var _RspackZodUnion = class _RspackZodUnion extends import_zod.z.ZodUnion {
|
|
9652
|
+
_parse(input) {
|
|
9653
|
+
const { ctx } = this._processInputParams(input);
|
|
9654
|
+
const options = this._def.options;
|
|
9655
|
+
function handleResults(results) {
|
|
9656
|
+
for (const result2 of results) {
|
|
9657
|
+
if (result2.result.status === "valid") {
|
|
9658
|
+
return result2.result;
|
|
9659
|
+
}
|
|
9660
|
+
}
|
|
9661
|
+
for (const result2 of results) {
|
|
9662
|
+
if (result2.result.status === "dirty") {
|
|
9663
|
+
ctx.common.issues.push(...result2.ctx.common.issues);
|
|
9664
|
+
return result2.result;
|
|
9665
|
+
}
|
|
9666
|
+
}
|
|
9667
|
+
const unionErrors2 = results.map(
|
|
9668
|
+
(result2) => new import_zod.ZodError(result2.ctx.common.issues)
|
|
9669
|
+
);
|
|
9670
|
+
(0, import_zod.addIssueToContext)(ctx, {
|
|
9671
|
+
code: import_zod.ZodIssueCode.invalid_union,
|
|
9672
|
+
unionErrors: unionErrors2
|
|
9673
|
+
});
|
|
9674
|
+
return import_zod.INVALID;
|
|
9675
|
+
}
|
|
9676
|
+
if (ctx.common.async) {
|
|
9677
|
+
return Promise.all(
|
|
9678
|
+
options.map(async (option) => {
|
|
9679
|
+
const childCtx = {
|
|
9680
|
+
...ctx,
|
|
9681
|
+
common: {
|
|
9682
|
+
...ctx.common,
|
|
9683
|
+
issues: []
|
|
9684
|
+
},
|
|
9685
|
+
parent: ctx
|
|
9686
|
+
};
|
|
9687
|
+
return {
|
|
9688
|
+
result: await option._parseAsync({
|
|
9689
|
+
data: ctx.data,
|
|
9690
|
+
path: ctx.path,
|
|
9691
|
+
parent: childCtx
|
|
9692
|
+
}),
|
|
9693
|
+
ctx: childCtx
|
|
9694
|
+
};
|
|
9695
|
+
})
|
|
9696
|
+
).then(handleResults);
|
|
9697
|
+
}
|
|
9698
|
+
let dirty = void 0;
|
|
9699
|
+
const issues = [];
|
|
9700
|
+
for (const option of options) {
|
|
9701
|
+
const childCtx = {
|
|
9702
|
+
...ctx,
|
|
9703
|
+
common: {
|
|
9704
|
+
...ctx.common,
|
|
9705
|
+
issues: []
|
|
9706
|
+
},
|
|
9707
|
+
parent: ctx
|
|
9708
|
+
};
|
|
9709
|
+
const result2 = option._parseSync({
|
|
9710
|
+
data: ctx.data,
|
|
9711
|
+
path: ctx.path,
|
|
9712
|
+
parent: childCtx
|
|
9713
|
+
});
|
|
9714
|
+
if (result2.status === "valid") {
|
|
9715
|
+
return result2;
|
|
9716
|
+
}
|
|
9717
|
+
if (result2.status === "dirty" && !dirty) {
|
|
9718
|
+
dirty = { result: result2, ctx: childCtx };
|
|
9719
|
+
}
|
|
9720
|
+
if (childCtx.common.issues.length) {
|
|
9721
|
+
issues.push(childCtx.common.issues);
|
|
9722
|
+
}
|
|
9723
|
+
}
|
|
9724
|
+
if (dirty) {
|
|
9725
|
+
ctx.common.issues.push(...dirty.ctx.common.issues);
|
|
9726
|
+
return dirty.result;
|
|
9727
|
+
}
|
|
9728
|
+
const unionErrors = issues.map((issues2) => new import_zod.ZodError(issues2));
|
|
9729
|
+
(0, import_zod.addIssueToContext)(ctx, {
|
|
9730
|
+
code: import_zod.ZodIssueCode.invalid_union,
|
|
9731
|
+
unionErrors
|
|
9732
|
+
});
|
|
9733
|
+
return import_zod.INVALID;
|
|
9734
|
+
}
|
|
9735
|
+
};
|
|
9736
|
+
_RspackZodUnion.create = (types, params) => {
|
|
9737
|
+
return new _RspackZodUnion({
|
|
9738
|
+
options: types,
|
|
9739
|
+
typeName: import_zod.ZodFirstPartyTypeKind.ZodUnion,
|
|
9740
|
+
...processCreateParams(params)
|
|
9741
|
+
});
|
|
9742
|
+
};
|
|
9743
|
+
var RspackZodUnion = _RspackZodUnion;
|
|
9744
|
+
import_zod.ZodUnion.create = RspackZodUnion.create;
|
|
9745
|
+
var ZodRspackCrossChecker = class extends import_zod.ZodType {
|
|
9746
|
+
constructor(params) {
|
|
9747
|
+
super(params);
|
|
9748
|
+
this.params = params;
|
|
9749
|
+
}
|
|
9750
|
+
_parse(input) {
|
|
9751
|
+
const ctx = this._getOrReturnCtx(input);
|
|
9752
|
+
const root = this._getRootData(ctx);
|
|
9753
|
+
for (const pattern of this.params.patterns) {
|
|
9754
|
+
if (pattern.test(root)) {
|
|
9755
|
+
const res = pattern.type._parse(input);
|
|
9756
|
+
const issues = typeof pattern.issue === "function" ? pattern.issue(res) : [];
|
|
9757
|
+
for (const issue of issues) {
|
|
9758
|
+
(0, import_zod.addIssueToContext)(ctx, issue);
|
|
9759
|
+
}
|
|
9760
|
+
return res;
|
|
9761
|
+
}
|
|
9762
|
+
}
|
|
9763
|
+
return this.params.default._parse(input);
|
|
9764
|
+
}
|
|
9765
|
+
_getRootData(ctx) {
|
|
9766
|
+
let root = ctx;
|
|
9767
|
+
while (root.parent) {
|
|
9768
|
+
root = root.parent;
|
|
9769
|
+
}
|
|
9770
|
+
return root.data;
|
|
9771
|
+
}
|
|
9772
|
+
};
|
|
9773
|
+
|
|
9774
|
+
// src/config/zod.ts
|
|
9775
|
+
var filenameTemplate = import_zod2.z.string();
|
|
9595
9776
|
var filename = filenameTemplate.or(
|
|
9596
|
-
|
|
9777
|
+
import_zod2.z.function().args(import_zod2.z.custom(), import_zod2.z.custom().optional()).returns(import_zod2.z.string())
|
|
9597
9778
|
);
|
|
9598
|
-
var name =
|
|
9599
|
-
var dependencies =
|
|
9600
|
-
var context =
|
|
9779
|
+
var name = import_zod2.z.string();
|
|
9780
|
+
var dependencies = import_zod2.z.array(name);
|
|
9781
|
+
var context = import_zod2.z.string().refine(
|
|
9601
9782
|
(val) => import_node_path7.default.isAbsolute(val),
|
|
9602
9783
|
(val) => ({
|
|
9603
9784
|
message: `The provided value ${JSON.stringify(val)} must be an absolute path.`
|
|
9604
9785
|
})
|
|
9605
9786
|
);
|
|
9606
|
-
var mode =
|
|
9787
|
+
var mode = import_zod2.z.enum([
|
|
9607
9788
|
"development",
|
|
9608
9789
|
"production",
|
|
9609
9790
|
"none"
|
|
9610
9791
|
]);
|
|
9611
|
-
var falsy =
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9792
|
+
var falsy = import_zod2.z.union([
|
|
9793
|
+
import_zod2.z.literal(false),
|
|
9794
|
+
import_zod2.z.literal(0),
|
|
9795
|
+
import_zod2.z.literal(""),
|
|
9796
|
+
import_zod2.z.null(),
|
|
9797
|
+
import_zod2.z.undefined()
|
|
9617
9798
|
]);
|
|
9618
|
-
var publicPath =
|
|
9619
|
-
var baseUri =
|
|
9620
|
-
var chunkLoadingType =
|
|
9621
|
-
var chunkLoading =
|
|
9622
|
-
var asyncChunks =
|
|
9623
|
-
var wasmLoadingType =
|
|
9624
|
-
var wasmLoading =
|
|
9625
|
-
var scriptType =
|
|
9626
|
-
var libraryCustomUmdObject =
|
|
9627
|
-
amd:
|
|
9628
|
-
commonjs:
|
|
9629
|
-
root:
|
|
9799
|
+
var publicPath = import_zod2.z.literal("auto").or(filename);
|
|
9800
|
+
var baseUri = import_zod2.z.string();
|
|
9801
|
+
var chunkLoadingType = import_zod2.z.enum(["jsonp", "import-scripts", "require", "async-node", "import"]).or(import_zod2.z.string());
|
|
9802
|
+
var chunkLoading = import_zod2.z.literal(false).or(chunkLoadingType);
|
|
9803
|
+
var asyncChunks = import_zod2.z.boolean();
|
|
9804
|
+
var wasmLoadingType = import_zod2.z.enum(["fetch-streaming", "fetch", "async-node"]).or(import_zod2.z.string());
|
|
9805
|
+
var wasmLoading = import_zod2.z.literal(false).or(wasmLoadingType);
|
|
9806
|
+
var scriptType = import_zod2.z.enum(["text/javascript", "module"]).or(import_zod2.z.literal(false));
|
|
9807
|
+
var libraryCustomUmdObject = import_zod2.z.strictObject({
|
|
9808
|
+
amd: import_zod2.z.string().optional(),
|
|
9809
|
+
commonjs: import_zod2.z.string().optional(),
|
|
9810
|
+
root: import_zod2.z.string().or(import_zod2.z.array(import_zod2.z.string())).optional()
|
|
9630
9811
|
});
|
|
9631
|
-
var libraryName =
|
|
9632
|
-
var libraryCustomUmdCommentObject =
|
|
9633
|
-
amd:
|
|
9634
|
-
commonjs:
|
|
9635
|
-
commonjs2:
|
|
9636
|
-
root:
|
|
9812
|
+
var libraryName = import_zod2.z.string().or(import_zod2.z.array(import_zod2.z.string())).or(libraryCustomUmdObject);
|
|
9813
|
+
var libraryCustomUmdCommentObject = import_zod2.z.strictObject({
|
|
9814
|
+
amd: import_zod2.z.string().optional(),
|
|
9815
|
+
commonjs: import_zod2.z.string().optional(),
|
|
9816
|
+
commonjs2: import_zod2.z.string().optional(),
|
|
9817
|
+
root: import_zod2.z.string().optional()
|
|
9637
9818
|
});
|
|
9638
|
-
var amdContainer =
|
|
9639
|
-
var auxiliaryComment =
|
|
9640
|
-
var libraryExport =
|
|
9641
|
-
var libraryType =
|
|
9819
|
+
var amdContainer = import_zod2.z.string();
|
|
9820
|
+
var auxiliaryComment = import_zod2.z.string().or(libraryCustomUmdCommentObject);
|
|
9821
|
+
var libraryExport = import_zod2.z.string().or(import_zod2.z.array(import_zod2.z.string()));
|
|
9822
|
+
var libraryType = import_zod2.z.enum([
|
|
9642
9823
|
"var",
|
|
9643
9824
|
"module",
|
|
9644
9825
|
"assign",
|
|
@@ -9657,9 +9838,9 @@ var libraryType = import_zod.z.enum([
|
|
|
9657
9838
|
"umd2",
|
|
9658
9839
|
"jsonp",
|
|
9659
9840
|
"system"
|
|
9660
|
-
]).or(
|
|
9661
|
-
var umdNamedDefine =
|
|
9662
|
-
var libraryOptions =
|
|
9841
|
+
]).or(import_zod2.z.string());
|
|
9842
|
+
var umdNamedDefine = import_zod2.z.boolean();
|
|
9843
|
+
var libraryOptions = import_zod2.z.strictObject({
|
|
9663
9844
|
amdContainer: amdContainer.optional(),
|
|
9664
9845
|
auxiliaryComment: auxiliaryComment.optional(),
|
|
9665
9846
|
export: libraryExport.optional(),
|
|
@@ -9668,12 +9849,12 @@ var libraryOptions = import_zod.z.strictObject({
|
|
|
9668
9849
|
umdNamedDefine: umdNamedDefine.optional()
|
|
9669
9850
|
});
|
|
9670
9851
|
var library = libraryName.or(libraryOptions).optional();
|
|
9671
|
-
var layer =
|
|
9852
|
+
var layer = import_zod2.z.string().or(import_zod2.z.null());
|
|
9672
9853
|
var entryFilename = filename;
|
|
9673
|
-
var entryRuntime =
|
|
9674
|
-
var entryItem =
|
|
9675
|
-
var entryDependOn =
|
|
9676
|
-
var entryDescription =
|
|
9854
|
+
var entryRuntime = import_zod2.z.literal(false).or(import_zod2.z.string());
|
|
9855
|
+
var entryItem = import_zod2.z.string().or(import_zod2.z.array(import_zod2.z.string()));
|
|
9856
|
+
var entryDependOn = import_zod2.z.string().or(import_zod2.z.array(import_zod2.z.string()));
|
|
9857
|
+
var entryDescription = import_zod2.z.strictObject({
|
|
9677
9858
|
import: entryItem,
|
|
9678
9859
|
runtime: entryRuntime.optional(),
|
|
9679
9860
|
publicPath: publicPath.optional(),
|
|
@@ -9687,84 +9868,84 @@ var entryDescription = import_zod.z.strictObject({
|
|
|
9687
9868
|
layer: layer.optional()
|
|
9688
9869
|
});
|
|
9689
9870
|
var entryUnnamed = entryItem;
|
|
9690
|
-
var entryObject =
|
|
9871
|
+
var entryObject = import_zod2.z.record(
|
|
9691
9872
|
entryItem.or(entryDescription)
|
|
9692
9873
|
);
|
|
9693
9874
|
var entryStatic = entryObject.or(
|
|
9694
9875
|
entryUnnamed
|
|
9695
9876
|
);
|
|
9696
|
-
var entryDynamic =
|
|
9697
|
-
entryStatic.or(
|
|
9877
|
+
var entryDynamic = import_zod2.z.function().returns(
|
|
9878
|
+
entryStatic.or(import_zod2.z.promise(entryStatic))
|
|
9698
9879
|
);
|
|
9699
9880
|
var entry = entryStatic.or(entryDynamic);
|
|
9700
|
-
var path6 =
|
|
9701
|
-
var pathinfo =
|
|
9881
|
+
var path6 = import_zod2.z.string();
|
|
9882
|
+
var pathinfo = import_zod2.z.boolean().or(import_zod2.z.literal("verbose"));
|
|
9702
9883
|
var assetModuleFilename = filename;
|
|
9703
|
-
var webassemblyModuleFilename =
|
|
9884
|
+
var webassemblyModuleFilename = import_zod2.z.string();
|
|
9704
9885
|
var chunkFilename = filename;
|
|
9705
|
-
var crossOriginLoading =
|
|
9706
|
-
|
|
9886
|
+
var crossOriginLoading = import_zod2.z.literal(false).or(
|
|
9887
|
+
import_zod2.z.enum(["anonymous", "use-credentials"])
|
|
9707
9888
|
);
|
|
9708
9889
|
var cssFilename = filename;
|
|
9709
9890
|
var cssChunkFilename = filename;
|
|
9710
9891
|
var hotUpdateChunkFilename = filenameTemplate;
|
|
9711
9892
|
var hotUpdateMainFilename = filenameTemplate;
|
|
9712
|
-
var hotUpdateGlobal =
|
|
9713
|
-
var uniqueName =
|
|
9714
|
-
var chunkLoadingGlobal =
|
|
9715
|
-
var enabledLibraryTypes =
|
|
9893
|
+
var hotUpdateGlobal = import_zod2.z.string();
|
|
9894
|
+
var uniqueName = import_zod2.z.string();
|
|
9895
|
+
var chunkLoadingGlobal = import_zod2.z.string();
|
|
9896
|
+
var enabledLibraryTypes = import_zod2.z.array(
|
|
9716
9897
|
libraryType
|
|
9717
9898
|
);
|
|
9718
|
-
var clean =
|
|
9719
|
-
var outputModule =
|
|
9720
|
-
var strictModuleExceptionHandling =
|
|
9721
|
-
var strictModuleErrorHandling =
|
|
9722
|
-
var globalObject =
|
|
9723
|
-
var enabledWasmLoadingTypes =
|
|
9899
|
+
var clean = import_zod2.z.boolean();
|
|
9900
|
+
var outputModule = import_zod2.z.boolean();
|
|
9901
|
+
var strictModuleExceptionHandling = import_zod2.z.boolean();
|
|
9902
|
+
var strictModuleErrorHandling = import_zod2.z.boolean();
|
|
9903
|
+
var globalObject = import_zod2.z.string();
|
|
9904
|
+
var enabledWasmLoadingTypes = import_zod2.z.array(
|
|
9724
9905
|
wasmLoadingType
|
|
9725
9906
|
);
|
|
9726
|
-
var importFunctionName =
|
|
9727
|
-
var importMetaName =
|
|
9728
|
-
var iife =
|
|
9729
|
-
var enabledChunkLoadingTypes =
|
|
9907
|
+
var importFunctionName = import_zod2.z.string();
|
|
9908
|
+
var importMetaName = import_zod2.z.string();
|
|
9909
|
+
var iife = import_zod2.z.boolean();
|
|
9910
|
+
var enabledChunkLoadingTypes = import_zod2.z.array(
|
|
9730
9911
|
chunkLoadingType
|
|
9731
9912
|
);
|
|
9732
|
-
var chunkFormat =
|
|
9733
|
-
var workerPublicPath =
|
|
9734
|
-
var trustedTypes =
|
|
9735
|
-
policyName:
|
|
9913
|
+
var chunkFormat = import_zod2.z.literal(false).or(import_zod2.z.string());
|
|
9914
|
+
var workerPublicPath = import_zod2.z.string();
|
|
9915
|
+
var trustedTypes = import_zod2.z.strictObject({
|
|
9916
|
+
policyName: import_zod2.z.string().optional()
|
|
9736
9917
|
});
|
|
9737
|
-
var hashDigest =
|
|
9738
|
-
var hashDigestLength =
|
|
9739
|
-
var hashFunction =
|
|
9918
|
+
var hashDigest = import_zod2.z.string();
|
|
9919
|
+
var hashDigestLength = import_zod2.z.number();
|
|
9920
|
+
var hashFunction = import_zod2.z.enum([
|
|
9740
9921
|
"md4",
|
|
9741
9922
|
"xxhash64"
|
|
9742
9923
|
]);
|
|
9743
|
-
var hashSalt =
|
|
9744
|
-
var sourceMapFilename =
|
|
9745
|
-
var devtoolNamespace =
|
|
9746
|
-
var devtoolModuleFilenameTemplate =
|
|
9747
|
-
|
|
9748
|
-
|
|
9924
|
+
var hashSalt = import_zod2.z.string();
|
|
9925
|
+
var sourceMapFilename = import_zod2.z.string();
|
|
9926
|
+
var devtoolNamespace = import_zod2.z.string();
|
|
9927
|
+
var devtoolModuleFilenameTemplate = import_zod2.z.union([
|
|
9928
|
+
import_zod2.z.string(),
|
|
9929
|
+
import_zod2.z.function(import_zod2.z.tuple([import_zod2.z.any()]), import_zod2.z.any())
|
|
9749
9930
|
]);
|
|
9750
9931
|
var devtoolFallbackModuleFilenameTemplate = devtoolModuleFilenameTemplate;
|
|
9751
|
-
var environment =
|
|
9752
|
-
arrowFunction:
|
|
9753
|
-
asyncFunction:
|
|
9754
|
-
bigIntLiteral:
|
|
9755
|
-
const:
|
|
9756
|
-
destructuring:
|
|
9757
|
-
document:
|
|
9758
|
-
dynamicImport:
|
|
9759
|
-
dynamicImportInWorker:
|
|
9760
|
-
forOf:
|
|
9761
|
-
globalThis:
|
|
9762
|
-
module:
|
|
9763
|
-
nodePrefixForCoreModules:
|
|
9764
|
-
optionalChaining:
|
|
9765
|
-
templateLiteral:
|
|
9932
|
+
var environment = import_zod2.z.strictObject({
|
|
9933
|
+
arrowFunction: import_zod2.z.boolean().optional(),
|
|
9934
|
+
asyncFunction: import_zod2.z.boolean().optional(),
|
|
9935
|
+
bigIntLiteral: import_zod2.z.boolean().optional(),
|
|
9936
|
+
const: import_zod2.z.boolean().optional(),
|
|
9937
|
+
destructuring: import_zod2.z.boolean().optional(),
|
|
9938
|
+
document: import_zod2.z.boolean().optional(),
|
|
9939
|
+
dynamicImport: import_zod2.z.boolean().optional(),
|
|
9940
|
+
dynamicImportInWorker: import_zod2.z.boolean().optional(),
|
|
9941
|
+
forOf: import_zod2.z.boolean().optional(),
|
|
9942
|
+
globalThis: import_zod2.z.boolean().optional(),
|
|
9943
|
+
module: import_zod2.z.boolean().optional(),
|
|
9944
|
+
nodePrefixForCoreModules: import_zod2.z.boolean().optional(),
|
|
9945
|
+
optionalChaining: import_zod2.z.boolean().optional(),
|
|
9946
|
+
templateLiteral: import_zod2.z.boolean().optional()
|
|
9766
9947
|
});
|
|
9767
|
-
var output =
|
|
9948
|
+
var output = import_zod2.z.strictObject({
|
|
9768
9949
|
path: path6.optional(),
|
|
9769
9950
|
pathinfo: pathinfo.optional(),
|
|
9770
9951
|
clean: clean.optional(),
|
|
@@ -9773,7 +9954,7 @@ var output = import_zod.z.strictObject({
|
|
|
9773
9954
|
chunkFilename: chunkFilename.optional(),
|
|
9774
9955
|
crossOriginLoading: crossOriginLoading.optional(),
|
|
9775
9956
|
cssFilename: cssFilename.optional(),
|
|
9776
|
-
cssHeadDataCompression:
|
|
9957
|
+
cssHeadDataCompression: import_zod2.z.boolean().optional(),
|
|
9777
9958
|
cssChunkFilename: cssChunkFilename.optional(),
|
|
9778
9959
|
hotUpdateMainFilename: hotUpdateMainFilename.optional(),
|
|
9779
9960
|
hotUpdateChunkFilename: hotUpdateChunkFilename.optional(),
|
|
@@ -9800,7 +9981,7 @@ var output = import_zod.z.strictObject({
|
|
|
9800
9981
|
chunkFormat: chunkFormat.optional(),
|
|
9801
9982
|
chunkLoading: chunkLoading.optional(),
|
|
9802
9983
|
enabledChunkLoadingTypes: enabledChunkLoadingTypes.optional(),
|
|
9803
|
-
trustedTypes:
|
|
9984
|
+
trustedTypes: import_zod2.z.literal(true).or(import_zod2.z.string()).or(trustedTypes).optional(),
|
|
9804
9985
|
sourceMapFilename: sourceMapFilename.optional(),
|
|
9805
9986
|
hashDigest: hashDigest.optional(),
|
|
9806
9987
|
hashDigestLength: hashDigestLength.optional(),
|
|
@@ -9814,60 +9995,60 @@ var output = import_zod.z.strictObject({
|
|
|
9814
9995
|
devtoolNamespace: devtoolNamespace.optional(),
|
|
9815
9996
|
devtoolModuleFilenameTemplate: devtoolModuleFilenameTemplate.optional(),
|
|
9816
9997
|
devtoolFallbackModuleFilenameTemplate: devtoolFallbackModuleFilenameTemplate.optional(),
|
|
9817
|
-
chunkLoadTimeout:
|
|
9818
|
-
charset:
|
|
9998
|
+
chunkLoadTimeout: import_zod2.z.number().optional(),
|
|
9999
|
+
charset: import_zod2.z.boolean().optional(),
|
|
9819
10000
|
environment: environment.optional(),
|
|
9820
|
-
compareBeforeEmit:
|
|
10001
|
+
compareBeforeEmit: import_zod2.z.boolean().optional()
|
|
9821
10002
|
});
|
|
9822
|
-
var resolveAlias =
|
|
9823
|
-
|
|
10003
|
+
var resolveAlias = import_zod2.z.record(
|
|
10004
|
+
import_zod2.z.literal(false).or(import_zod2.z.string()).or(import_zod2.z.array(import_zod2.z.string().or(import_zod2.z.literal(false))))
|
|
9824
10005
|
);
|
|
9825
|
-
var resolveTsConfigFile =
|
|
10006
|
+
var resolveTsConfigFile = import_zod2.z.string();
|
|
9826
10007
|
var resolveTsConfig = resolveTsConfigFile.or(
|
|
9827
|
-
|
|
10008
|
+
import_zod2.z.strictObject({
|
|
9828
10009
|
configFile: resolveTsConfigFile,
|
|
9829
|
-
references:
|
|
10010
|
+
references: import_zod2.z.array(import_zod2.z.string()).or(import_zod2.z.literal("auto")).optional()
|
|
9830
10011
|
})
|
|
9831
10012
|
);
|
|
9832
|
-
var baseResolveOptions =
|
|
10013
|
+
var baseResolveOptions = import_zod2.z.strictObject({
|
|
9833
10014
|
alias: resolveAlias.optional(),
|
|
9834
|
-
conditionNames:
|
|
9835
|
-
extensions:
|
|
10015
|
+
conditionNames: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
10016
|
+
extensions: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
9836
10017
|
fallback: resolveAlias.optional(),
|
|
9837
|
-
mainFields:
|
|
9838
|
-
mainFiles:
|
|
9839
|
-
modules:
|
|
9840
|
-
preferRelative:
|
|
9841
|
-
preferAbsolute:
|
|
9842
|
-
symlinks:
|
|
9843
|
-
enforceExtension:
|
|
9844
|
-
importsFields:
|
|
9845
|
-
descriptionFiles:
|
|
10018
|
+
mainFields: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
10019
|
+
mainFiles: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
10020
|
+
modules: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
10021
|
+
preferRelative: import_zod2.z.boolean().optional(),
|
|
10022
|
+
preferAbsolute: import_zod2.z.boolean().optional(),
|
|
10023
|
+
symlinks: import_zod2.z.boolean().optional(),
|
|
10024
|
+
enforceExtension: import_zod2.z.boolean().optional(),
|
|
10025
|
+
importsFields: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
10026
|
+
descriptionFiles: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
9846
10027
|
tsConfig: resolveTsConfig.optional(),
|
|
9847
|
-
fullySpecified:
|
|
9848
|
-
exportsFields:
|
|
9849
|
-
extensionAlias:
|
|
9850
|
-
aliasFields:
|
|
9851
|
-
restrictions:
|
|
9852
|
-
roots:
|
|
10028
|
+
fullySpecified: import_zod2.z.boolean().optional(),
|
|
10029
|
+
exportsFields: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
10030
|
+
extensionAlias: import_zod2.z.record(import_zod2.z.string().or(import_zod2.z.array(import_zod2.z.string()))).optional(),
|
|
10031
|
+
aliasFields: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
10032
|
+
restrictions: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
10033
|
+
roots: import_zod2.z.array(import_zod2.z.string()).optional()
|
|
9853
10034
|
});
|
|
9854
10035
|
var resolveOptions = baseResolveOptions.extend({
|
|
9855
|
-
byDependency:
|
|
10036
|
+
byDependency: import_zod2.z.lazy(() => import_zod2.z.record(resolveOptions)).optional()
|
|
9856
10037
|
});
|
|
9857
|
-
var baseRuleSetCondition =
|
|
9858
|
-
var ruleSetCondition = baseRuleSetCondition.or(
|
|
9859
|
-
var ruleSetConditions =
|
|
9860
|
-
() =>
|
|
10038
|
+
var baseRuleSetCondition = import_zod2.z.instanceof(RegExp).or(import_zod2.z.string()).or(import_zod2.z.function().args(import_zod2.z.string()).returns(import_zod2.z.boolean()));
|
|
10039
|
+
var ruleSetCondition = baseRuleSetCondition.or(import_zod2.z.lazy(() => ruleSetConditions)).or(import_zod2.z.lazy(() => ruleSetLogicalConditions));
|
|
10040
|
+
var ruleSetConditions = import_zod2.z.lazy(
|
|
10041
|
+
() => import_zod2.z.array(ruleSetCondition)
|
|
9861
10042
|
);
|
|
9862
|
-
var ruleSetLogicalConditions =
|
|
10043
|
+
var ruleSetLogicalConditions = import_zod2.z.strictObject({
|
|
9863
10044
|
and: ruleSetConditions.optional(),
|
|
9864
10045
|
or: ruleSetConditions.optional(),
|
|
9865
10046
|
not: ruleSetCondition.optional()
|
|
9866
10047
|
});
|
|
9867
|
-
var ruleSetLoader =
|
|
9868
|
-
var ruleSetLoaderOptions =
|
|
9869
|
-
var ruleSetLoaderWithOptions =
|
|
9870
|
-
ident:
|
|
10048
|
+
var ruleSetLoader = import_zod2.z.string();
|
|
10049
|
+
var ruleSetLoaderOptions = import_zod2.z.string().or(import_zod2.z.record(import_zod2.z.any()));
|
|
10050
|
+
var ruleSetLoaderWithOptions = import_zod2.z.strictObject({
|
|
10051
|
+
ident: import_zod2.z.string().optional(),
|
|
9871
10052
|
loader: ruleSetLoader,
|
|
9872
10053
|
options: ruleSetLoaderOptions.optional()
|
|
9873
10054
|
});
|
|
@@ -9875,9 +10056,9 @@ var ruleSetUseItem = ruleSetLoader.or(
|
|
|
9875
10056
|
ruleSetLoaderWithOptions
|
|
9876
10057
|
);
|
|
9877
10058
|
var ruleSetUse = ruleSetUseItem.or(ruleSetUseItem.array()).or(
|
|
9878
|
-
|
|
10059
|
+
import_zod2.z.function().args(import_zod2.z.custom()).returns(ruleSetUseItem.array())
|
|
9879
10060
|
);
|
|
9880
|
-
var baseRuleSetRule =
|
|
10061
|
+
var baseRuleSetRule = import_zod2.z.strictObject({
|
|
9881
10062
|
test: ruleSetCondition.optional(),
|
|
9882
10063
|
exclude: ruleSetCondition.optional(),
|
|
9883
10064
|
include: ruleSetCondition.optional(),
|
|
@@ -9889,67 +10070,67 @@ var baseRuleSetRule = import_zod.z.strictObject({
|
|
|
9889
10070
|
resourceQuery: ruleSetCondition.optional(),
|
|
9890
10071
|
scheme: ruleSetCondition.optional(),
|
|
9891
10072
|
mimetype: ruleSetCondition.optional(),
|
|
9892
|
-
descriptionData:
|
|
9893
|
-
with:
|
|
9894
|
-
type:
|
|
9895
|
-
layer:
|
|
10073
|
+
descriptionData: import_zod2.z.record(ruleSetCondition).optional(),
|
|
10074
|
+
with: import_zod2.z.record(ruleSetCondition).optional(),
|
|
10075
|
+
type: import_zod2.z.string().optional(),
|
|
10076
|
+
layer: import_zod2.z.string().optional(),
|
|
9896
10077
|
loader: ruleSetLoader.optional(),
|
|
9897
10078
|
options: ruleSetLoaderOptions.optional(),
|
|
9898
10079
|
use: ruleSetUse.optional(),
|
|
9899
|
-
parser:
|
|
9900
|
-
generator:
|
|
10080
|
+
parser: import_zod2.z.record(import_zod2.z.any()).optional(),
|
|
10081
|
+
generator: import_zod2.z.record(import_zod2.z.any()).optional(),
|
|
9901
10082
|
resolve: resolveOptions.optional(),
|
|
9902
|
-
sideEffects:
|
|
9903
|
-
enforce:
|
|
10083
|
+
sideEffects: import_zod2.z.boolean().optional(),
|
|
10084
|
+
enforce: import_zod2.z.literal("pre").or(import_zod2.z.literal("post")).optional()
|
|
9904
10085
|
});
|
|
9905
10086
|
var ruleSetRule = baseRuleSetRule.extend({
|
|
9906
|
-
oneOf:
|
|
9907
|
-
rules:
|
|
10087
|
+
oneOf: import_zod2.z.lazy(() => ruleSetRule.or(falsy).array()).optional(),
|
|
10088
|
+
rules: import_zod2.z.lazy(() => ruleSetRule.or(falsy).array()).optional()
|
|
9908
10089
|
});
|
|
9909
|
-
var ruleSetRules =
|
|
9910
|
-
|
|
10090
|
+
var ruleSetRules = import_zod2.z.array(
|
|
10091
|
+
import_zod2.z.literal("...").or(ruleSetRule).or(falsy)
|
|
9911
10092
|
);
|
|
9912
|
-
var assetParserDataUrlOptions =
|
|
9913
|
-
maxSize:
|
|
10093
|
+
var assetParserDataUrlOptions = import_zod2.z.strictObject({
|
|
10094
|
+
maxSize: import_zod2.z.number().optional()
|
|
9914
10095
|
});
|
|
9915
10096
|
var assetParserDataUrl = assetParserDataUrlOptions;
|
|
9916
|
-
var assetParserOptions =
|
|
10097
|
+
var assetParserOptions = import_zod2.z.strictObject({
|
|
9917
10098
|
dataUrlCondition: assetParserDataUrl.optional()
|
|
9918
10099
|
});
|
|
9919
|
-
var cssParserNamedExports =
|
|
9920
|
-
var cssParserOptions =
|
|
10100
|
+
var cssParserNamedExports = import_zod2.z.boolean();
|
|
10101
|
+
var cssParserOptions = import_zod2.z.strictObject({
|
|
9921
10102
|
namedExports: cssParserNamedExports.optional()
|
|
9922
10103
|
});
|
|
9923
|
-
var cssAutoParserOptions =
|
|
10104
|
+
var cssAutoParserOptions = import_zod2.z.strictObject({
|
|
9924
10105
|
namedExports: cssParserNamedExports.optional()
|
|
9925
10106
|
});
|
|
9926
|
-
var cssModuleParserOptions =
|
|
10107
|
+
var cssModuleParserOptions = import_zod2.z.strictObject({
|
|
9927
10108
|
namedExports: cssParserNamedExports.optional()
|
|
9928
10109
|
});
|
|
9929
|
-
var dynamicImportMode =
|
|
9930
|
-
var dynamicImportPreload =
|
|
9931
|
-
var dynamicImportPrefetch =
|
|
9932
|
-
var dynamicImportFetchPriority =
|
|
9933
|
-
var javascriptParserUrl =
|
|
9934
|
-
var exprContextCritical =
|
|
9935
|
-
var wrappedContextCritical =
|
|
9936
|
-
var wrappedContextRegExp =
|
|
9937
|
-
var exportsPresence =
|
|
9938
|
-
var importExportsPresence =
|
|
9939
|
-
var reexportExportsPresence =
|
|
9940
|
-
var strictExportPresence =
|
|
9941
|
-
var worker =
|
|
9942
|
-
var overrideStrict =
|
|
9943
|
-
var requireAsExpression =
|
|
9944
|
-
var requireDynamic =
|
|
9945
|
-
var requireResolve =
|
|
9946
|
-
var importDynamic =
|
|
9947
|
-
var javascriptParserOptions =
|
|
10110
|
+
var dynamicImportMode = import_zod2.z.enum(["eager", "lazy", "weak", "lazy-once"]);
|
|
10111
|
+
var dynamicImportPreload = import_zod2.z.union([import_zod2.z.boolean(), import_zod2.z.number()]);
|
|
10112
|
+
var dynamicImportPrefetch = import_zod2.z.union([import_zod2.z.boolean(), import_zod2.z.number()]);
|
|
10113
|
+
var dynamicImportFetchPriority = import_zod2.z.enum(["low", "high", "auto"]);
|
|
10114
|
+
var javascriptParserUrl = import_zod2.z.union([import_zod2.z.literal("relative"), import_zod2.z.boolean()]);
|
|
10115
|
+
var exprContextCritical = import_zod2.z.boolean();
|
|
10116
|
+
var wrappedContextCritical = import_zod2.z.boolean();
|
|
10117
|
+
var wrappedContextRegExp = import_zod2.z.instanceof(RegExp);
|
|
10118
|
+
var exportsPresence = import_zod2.z.enum(["error", "warn", "auto"]).or(import_zod2.z.literal(false));
|
|
10119
|
+
var importExportsPresence = import_zod2.z.enum(["error", "warn", "auto"]).or(import_zod2.z.literal(false));
|
|
10120
|
+
var reexportExportsPresence = import_zod2.z.enum(["error", "warn", "auto"]).or(import_zod2.z.literal(false));
|
|
10121
|
+
var strictExportPresence = import_zod2.z.boolean();
|
|
10122
|
+
var worker = import_zod2.z.array(import_zod2.z.string()).or(import_zod2.z.boolean());
|
|
10123
|
+
var overrideStrict = import_zod2.z.enum(["strict", "non-strict"]);
|
|
10124
|
+
var requireAsExpression = import_zod2.z.boolean();
|
|
10125
|
+
var requireDynamic = import_zod2.z.boolean();
|
|
10126
|
+
var requireResolve = import_zod2.z.boolean();
|
|
10127
|
+
var importDynamic = import_zod2.z.boolean();
|
|
10128
|
+
var javascriptParserOptions = import_zod2.z.strictObject({
|
|
9948
10129
|
dynamicImportMode: dynamicImportMode.optional(),
|
|
9949
10130
|
dynamicImportPreload: dynamicImportPreload.optional(),
|
|
9950
10131
|
dynamicImportPrefetch: dynamicImportPrefetch.optional(),
|
|
9951
10132
|
dynamicImportFetchPriority: dynamicImportFetchPriority.optional(),
|
|
9952
|
-
importMeta:
|
|
10133
|
+
importMeta: import_zod2.z.boolean().optional(),
|
|
9953
10134
|
url: javascriptParserUrl.optional(),
|
|
9954
10135
|
exprContextCritical: exprContextCritical.optional(),
|
|
9955
10136
|
wrappedContextCritical: wrappedContextCritical.optional(),
|
|
@@ -9967,7 +10148,7 @@ var javascriptParserOptions = import_zod.z.strictObject({
|
|
|
9967
10148
|
importDynamic: importDynamic.optional()
|
|
9968
10149
|
// #endregion
|
|
9969
10150
|
});
|
|
9970
|
-
var parserOptionsByModuleTypeKnown =
|
|
10151
|
+
var parserOptionsByModuleTypeKnown = import_zod2.z.strictObject({
|
|
9971
10152
|
asset: assetParserOptions.optional(),
|
|
9972
10153
|
css: cssParserOptions.optional(),
|
|
9973
10154
|
"css/auto": cssAutoParserOptions.optional(),
|
|
@@ -9977,63 +10158,63 @@ var parserOptionsByModuleTypeKnown = import_zod.z.strictObject({
|
|
|
9977
10158
|
"javascript/dynamic": javascriptParserOptions.optional(),
|
|
9978
10159
|
"javascript/esm": javascriptParserOptions.optional()
|
|
9979
10160
|
});
|
|
9980
|
-
var parserOptionsByModuleTypeUnknown =
|
|
9981
|
-
|
|
10161
|
+
var parserOptionsByModuleTypeUnknown = import_zod2.z.record(
|
|
10162
|
+
import_zod2.z.record(import_zod2.z.any())
|
|
9982
10163
|
);
|
|
9983
10164
|
var parserOptionsByModuleType = parserOptionsByModuleTypeKnown.or(
|
|
9984
10165
|
parserOptionsByModuleTypeUnknown
|
|
9985
10166
|
);
|
|
9986
|
-
var assetGeneratorDataUrlOptions =
|
|
9987
|
-
encoding:
|
|
9988
|
-
mimetype:
|
|
10167
|
+
var assetGeneratorDataUrlOptions = import_zod2.z.strictObject({
|
|
10168
|
+
encoding: import_zod2.z.literal(false).or(import_zod2.z.literal("base64")).optional(),
|
|
10169
|
+
mimetype: import_zod2.z.string().optional()
|
|
9989
10170
|
});
|
|
9990
|
-
var assetGeneratorDataUrlFunction =
|
|
9991
|
-
|
|
9992
|
-
content:
|
|
9993
|
-
filename:
|
|
10171
|
+
var assetGeneratorDataUrlFunction = import_zod2.z.function().args(
|
|
10172
|
+
import_zod2.z.strictObject({
|
|
10173
|
+
content: import_zod2.z.string(),
|
|
10174
|
+
filename: import_zod2.z.string()
|
|
9994
10175
|
})
|
|
9995
|
-
).returns(
|
|
10176
|
+
).returns(import_zod2.z.string());
|
|
9996
10177
|
var assetGeneratorDataUrl = assetGeneratorDataUrlOptions.or(
|
|
9997
10178
|
assetGeneratorDataUrlFunction
|
|
9998
10179
|
);
|
|
9999
|
-
var assetInlineGeneratorOptions =
|
|
10180
|
+
var assetInlineGeneratorOptions = import_zod2.z.strictObject({
|
|
10000
10181
|
dataUrl: assetGeneratorDataUrl.optional()
|
|
10001
10182
|
});
|
|
10002
|
-
var assetResourceGeneratorOptions =
|
|
10003
|
-
emit:
|
|
10183
|
+
var assetResourceGeneratorOptions = import_zod2.z.strictObject({
|
|
10184
|
+
emit: import_zod2.z.boolean().optional(),
|
|
10004
10185
|
filename: filename.optional(),
|
|
10005
10186
|
publicPath: publicPath.optional()
|
|
10006
10187
|
});
|
|
10007
10188
|
var assetGeneratorOptions = assetInlineGeneratorOptions.merge(
|
|
10008
10189
|
assetResourceGeneratorOptions
|
|
10009
10190
|
);
|
|
10010
|
-
var cssGeneratorExportsConvention =
|
|
10191
|
+
var cssGeneratorExportsConvention = import_zod2.z.enum([
|
|
10011
10192
|
"as-is",
|
|
10012
10193
|
"camel-case",
|
|
10013
10194
|
"camel-case-only",
|
|
10014
10195
|
"dashes",
|
|
10015
10196
|
"dashes-only"
|
|
10016
10197
|
]);
|
|
10017
|
-
var cssGeneratorExportsOnly =
|
|
10018
|
-
var cssGeneratorLocalIdentName =
|
|
10019
|
-
var cssGeneratorEsModule =
|
|
10020
|
-
var cssGeneratorOptions =
|
|
10198
|
+
var cssGeneratorExportsOnly = import_zod2.z.boolean();
|
|
10199
|
+
var cssGeneratorLocalIdentName = import_zod2.z.string();
|
|
10200
|
+
var cssGeneratorEsModule = import_zod2.z.boolean();
|
|
10201
|
+
var cssGeneratorOptions = import_zod2.z.strictObject({
|
|
10021
10202
|
exportsOnly: cssGeneratorExportsOnly.optional(),
|
|
10022
10203
|
esModule: cssGeneratorEsModule.optional()
|
|
10023
10204
|
});
|
|
10024
|
-
var cssAutoGeneratorOptions =
|
|
10205
|
+
var cssAutoGeneratorOptions = import_zod2.z.strictObject({
|
|
10025
10206
|
exportsConvention: cssGeneratorExportsConvention.optional(),
|
|
10026
10207
|
exportsOnly: cssGeneratorExportsOnly.optional(),
|
|
10027
10208
|
localIdentName: cssGeneratorLocalIdentName.optional(),
|
|
10028
10209
|
esModule: cssGeneratorEsModule.optional()
|
|
10029
10210
|
});
|
|
10030
|
-
var cssModuleGeneratorOptions =
|
|
10211
|
+
var cssModuleGeneratorOptions = import_zod2.z.strictObject({
|
|
10031
10212
|
exportsConvention: cssGeneratorExportsConvention.optional(),
|
|
10032
10213
|
exportsOnly: cssGeneratorExportsOnly.optional(),
|
|
10033
10214
|
localIdentName: cssGeneratorLocalIdentName.optional(),
|
|
10034
10215
|
esModule: cssGeneratorEsModule.optional()
|
|
10035
10216
|
});
|
|
10036
|
-
var generatorOptionsByModuleTypeKnown =
|
|
10217
|
+
var generatorOptionsByModuleTypeKnown = import_zod2.z.strictObject({
|
|
10037
10218
|
asset: assetGeneratorOptions.optional(),
|
|
10038
10219
|
"asset/inline": assetInlineGeneratorOptions.optional(),
|
|
10039
10220
|
"asset/resource": assetResourceGeneratorOptions.optional(),
|
|
@@ -10041,25 +10222,25 @@ var generatorOptionsByModuleTypeKnown = import_zod.z.strictObject({
|
|
|
10041
10222
|
"css/auto": cssAutoGeneratorOptions.optional(),
|
|
10042
10223
|
"css/module": cssModuleGeneratorOptions.optional()
|
|
10043
10224
|
});
|
|
10044
|
-
var generatorOptionsByModuleTypeUnknown =
|
|
10045
|
-
|
|
10225
|
+
var generatorOptionsByModuleTypeUnknown = import_zod2.z.record(
|
|
10226
|
+
import_zod2.z.record(import_zod2.z.any())
|
|
10046
10227
|
);
|
|
10047
10228
|
var generatorOptionsByModuleType = generatorOptionsByModuleTypeKnown.or(
|
|
10048
10229
|
generatorOptionsByModuleTypeUnknown
|
|
10049
10230
|
);
|
|
10050
|
-
var noParseOptionSingle =
|
|
10231
|
+
var noParseOptionSingle = import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).or(import_zod2.z.function().args(import_zod2.z.string()).returns(import_zod2.z.boolean()));
|
|
10051
10232
|
var noParseOption = noParseOptionSingle.or(
|
|
10052
|
-
|
|
10233
|
+
import_zod2.z.array(noParseOptionSingle)
|
|
10053
10234
|
);
|
|
10054
|
-
var moduleOptions =
|
|
10235
|
+
var moduleOptions = import_zod2.z.strictObject({
|
|
10055
10236
|
defaultRules: ruleSetRules.optional(),
|
|
10056
10237
|
rules: ruleSetRules.optional(),
|
|
10057
10238
|
parser: parserOptionsByModuleType.optional(),
|
|
10058
10239
|
generator: generatorOptionsByModuleType.optional(),
|
|
10059
10240
|
noParse: noParseOption.optional()
|
|
10060
10241
|
});
|
|
10061
|
-
var allowTarget =
|
|
10062
|
-
|
|
10242
|
+
var allowTarget = import_zod2.z.union([
|
|
10243
|
+
import_zod2.z.enum([
|
|
10063
10244
|
"web",
|
|
10064
10245
|
"webworker",
|
|
10065
10246
|
"es3",
|
|
@@ -10073,66 +10254,66 @@ var allowTarget = import_zod.z.union([
|
|
|
10073
10254
|
"es2021",
|
|
10074
10255
|
"es2022"
|
|
10075
10256
|
]),
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10257
|
+
import_zod2.z.literal("node"),
|
|
10258
|
+
import_zod2.z.literal("async-node"),
|
|
10259
|
+
import_zod2.z.custom(
|
|
10079
10260
|
(value) => typeof value === "string" && /^node\d+$/.test(value)
|
|
10080
10261
|
),
|
|
10081
|
-
|
|
10262
|
+
import_zod2.z.custom(
|
|
10082
10263
|
(value) => typeof value === "string" && /^async-node\d+$/.test(value)
|
|
10083
10264
|
),
|
|
10084
|
-
|
|
10265
|
+
import_zod2.z.custom(
|
|
10085
10266
|
(value) => typeof value === "string" && /^node\d+\.\d+$/.test(value)
|
|
10086
10267
|
),
|
|
10087
|
-
|
|
10268
|
+
import_zod2.z.custom(
|
|
10088
10269
|
(value) => typeof value === "string" && /^async-node\d+\.\d+$/.test(value)
|
|
10089
10270
|
),
|
|
10090
|
-
|
|
10091
|
-
|
|
10271
|
+
import_zod2.z.literal("electron-main"),
|
|
10272
|
+
import_zod2.z.custom(
|
|
10092
10273
|
(value) => typeof value === "string" && /^electron\d+-main$/.test(value)
|
|
10093
10274
|
),
|
|
10094
|
-
|
|
10275
|
+
import_zod2.z.custom(
|
|
10095
10276
|
(value) => typeof value === "string" && /^electron\d+\.\d+-main$/.test(value)
|
|
10096
10277
|
),
|
|
10097
|
-
|
|
10098
|
-
|
|
10278
|
+
import_zod2.z.literal("electron-renderer"),
|
|
10279
|
+
import_zod2.z.custom(
|
|
10099
10280
|
(value) => typeof value === "string" && /^electron\d+-renderer$/.test(value)
|
|
10100
10281
|
),
|
|
10101
|
-
|
|
10282
|
+
import_zod2.z.custom(
|
|
10102
10283
|
(value) => typeof value === "string" && /^electron\d+\.\d+-renderer$/.test(value)
|
|
10103
10284
|
),
|
|
10104
|
-
|
|
10105
|
-
|
|
10285
|
+
import_zod2.z.literal("electron-preload"),
|
|
10286
|
+
import_zod2.z.custom(
|
|
10106
10287
|
(value) => typeof value === "string" && /^electron\d+-preload$/.test(value)
|
|
10107
10288
|
),
|
|
10108
|
-
|
|
10289
|
+
import_zod2.z.custom(
|
|
10109
10290
|
(value) => typeof value === "string" && /^electron\d+\.\d+-preload$/.test(value)
|
|
10110
10291
|
),
|
|
10111
|
-
|
|
10112
|
-
|
|
10292
|
+
import_zod2.z.literal("nwjs"),
|
|
10293
|
+
import_zod2.z.custom(
|
|
10113
10294
|
(value) => typeof value === "string" && /^nwjs\d+$/.test(value)
|
|
10114
10295
|
),
|
|
10115
|
-
|
|
10296
|
+
import_zod2.z.custom(
|
|
10116
10297
|
(value) => typeof value === "string" && /^nwjs\d+\.\d+$/.test(value)
|
|
10117
10298
|
),
|
|
10118
|
-
|
|
10119
|
-
|
|
10299
|
+
import_zod2.z.literal("node-webkit"),
|
|
10300
|
+
import_zod2.z.custom(
|
|
10120
10301
|
(value) => typeof value === "string" && /^node-webkit\d+$/.test(value)
|
|
10121
10302
|
),
|
|
10122
|
-
|
|
10303
|
+
import_zod2.z.custom(
|
|
10123
10304
|
(value) => typeof value === "string" && /^node-webkit\d+\.\d+$/.test(value)
|
|
10124
10305
|
),
|
|
10125
|
-
|
|
10126
|
-
|
|
10306
|
+
import_zod2.z.literal("browserslist"),
|
|
10307
|
+
import_zod2.z.custom(
|
|
10127
10308
|
(value) => typeof value === "string" && /^browserslist:(.+)$/.test(value)
|
|
10128
10309
|
)
|
|
10129
10310
|
]);
|
|
10130
|
-
var target =
|
|
10131
|
-
|
|
10311
|
+
var target = import_zod2.z.union([
|
|
10312
|
+
import_zod2.z.literal(false),
|
|
10132
10313
|
allowTarget,
|
|
10133
10314
|
allowTarget.array()
|
|
10134
10315
|
]);
|
|
10135
|
-
var externalsType =
|
|
10316
|
+
var externalsType = import_zod2.z.enum([
|
|
10136
10317
|
"var",
|
|
10137
10318
|
"module",
|
|
10138
10319
|
"assign",
|
|
@@ -10154,64 +10335,97 @@ var externalsType = import_zod.z.enum([
|
|
|
10154
10335
|
"import",
|
|
10155
10336
|
"module-import",
|
|
10156
10337
|
"script",
|
|
10157
|
-
"node-commonjs"
|
|
10338
|
+
"node-commonjs",
|
|
10339
|
+
"commonjs-import"
|
|
10158
10340
|
]);
|
|
10159
|
-
var
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
)
|
|
10167
|
-
|
|
10341
|
+
var ZodExternalObjectValue = new ZodRspackCrossChecker({
|
|
10342
|
+
patterns: [
|
|
10343
|
+
{
|
|
10344
|
+
test: (config2) => {
|
|
10345
|
+
var _a, _b;
|
|
10346
|
+
let isLibraryUmd = false;
|
|
10347
|
+
const library3 = (_a = config2 == null ? void 0 : config2.output) == null ? void 0 : _a.library;
|
|
10348
|
+
if (typeof library3 === "object" && "type" in library3) {
|
|
10349
|
+
isLibraryUmd = library3.type === "umd";
|
|
10350
|
+
} else {
|
|
10351
|
+
isLibraryUmd = ((_b = config2 == null ? void 0 : config2.output) == null ? void 0 : _b.libraryTarget) === "umd";
|
|
10352
|
+
}
|
|
10353
|
+
if (isLibraryUmd) {
|
|
10354
|
+
return (config2 == null ? void 0 : config2.externalsType) === void 0 || (config2 == null ? void 0 : config2.externalsType) === "umd";
|
|
10355
|
+
}
|
|
10356
|
+
return false;
|
|
10357
|
+
},
|
|
10358
|
+
type: import_zod2.z.strictObject({
|
|
10359
|
+
root: import_zod2.z.string().or(import_zod2.z.string().array()),
|
|
10360
|
+
commonjs: import_zod2.z.string().or(import_zod2.z.string().array()),
|
|
10361
|
+
commonjs2: import_zod2.z.string().or(import_zod2.z.string().array()),
|
|
10362
|
+
amd: import_zod2.z.string().or(import_zod2.z.string().array())
|
|
10363
|
+
}),
|
|
10364
|
+
issue: (res) => {
|
|
10365
|
+
if (res.status === "aborted") {
|
|
10366
|
+
return [
|
|
10367
|
+
{
|
|
10368
|
+
fatal: true,
|
|
10369
|
+
code: import_zod2.ZodIssueCode.custom,
|
|
10370
|
+
message: `External object must have "root", "commonjs", "commonjs2", "amd" properties when "libraryType" or "externalsType" is "umd"`
|
|
10371
|
+
}
|
|
10372
|
+
];
|
|
10373
|
+
}
|
|
10374
|
+
return [];
|
|
10375
|
+
}
|
|
10376
|
+
}
|
|
10377
|
+
],
|
|
10378
|
+
default: import_zod2.z.record(import_zod2.z.string().or(import_zod2.z.string().array()))
|
|
10379
|
+
});
|
|
10380
|
+
var externalItemValue = import_zod2.z.string().or(import_zod2.z.boolean()).or(import_zod2.z.string().array().min(1)).or(ZodExternalObjectValue);
|
|
10381
|
+
var externalItemObjectUnknown = import_zod2.z.record(
|
|
10168
10382
|
externalItemValue
|
|
10169
10383
|
);
|
|
10170
|
-
var externalItemFunctionData =
|
|
10171
|
-
context:
|
|
10172
|
-
dependencyType:
|
|
10173
|
-
request:
|
|
10174
|
-
contextInfo:
|
|
10175
|
-
issuer:
|
|
10384
|
+
var externalItemFunctionData = import_zod2.z.strictObject({
|
|
10385
|
+
context: import_zod2.z.string().optional(),
|
|
10386
|
+
dependencyType: import_zod2.z.string().optional(),
|
|
10387
|
+
request: import_zod2.z.string().optional(),
|
|
10388
|
+
contextInfo: import_zod2.z.strictObject({
|
|
10389
|
+
issuer: import_zod2.z.string()
|
|
10176
10390
|
}).optional()
|
|
10177
10391
|
});
|
|
10178
|
-
var externalItem =
|
|
10179
|
-
|
|
10392
|
+
var externalItem = import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).or(externalItemObjectUnknown).or(
|
|
10393
|
+
import_zod2.z.function().args(
|
|
10180
10394
|
externalItemFunctionData,
|
|
10181
|
-
|
|
10182
|
-
|
|
10395
|
+
import_zod2.z.function().args(
|
|
10396
|
+
import_zod2.z.instanceof(Error).optional(),
|
|
10183
10397
|
externalItemValue.optional(),
|
|
10184
10398
|
externalsType.optional()
|
|
10185
|
-
).returns(
|
|
10399
|
+
).returns(import_zod2.z.void())
|
|
10186
10400
|
)
|
|
10187
10401
|
).or(
|
|
10188
|
-
|
|
10402
|
+
import_zod2.z.function().args(externalItemFunctionData).returns(import_zod2.z.promise(externalItemValue))
|
|
10189
10403
|
);
|
|
10190
10404
|
var externals = externalItem.array().or(externalItem);
|
|
10191
|
-
var externalsPresets =
|
|
10192
|
-
node:
|
|
10193
|
-
web:
|
|
10194
|
-
webAsync:
|
|
10195
|
-
electron:
|
|
10196
|
-
electronMain:
|
|
10197
|
-
electronPreload:
|
|
10198
|
-
electronRenderer:
|
|
10199
|
-
nwjs:
|
|
10405
|
+
var externalsPresets = import_zod2.z.strictObject({
|
|
10406
|
+
node: import_zod2.z.boolean().optional(),
|
|
10407
|
+
web: import_zod2.z.boolean().optional(),
|
|
10408
|
+
webAsync: import_zod2.z.boolean().optional(),
|
|
10409
|
+
electron: import_zod2.z.boolean().optional(),
|
|
10410
|
+
electronMain: import_zod2.z.boolean().optional(),
|
|
10411
|
+
electronPreload: import_zod2.z.boolean().optional(),
|
|
10412
|
+
electronRenderer: import_zod2.z.boolean().optional(),
|
|
10413
|
+
nwjs: import_zod2.z.boolean().optional()
|
|
10200
10414
|
});
|
|
10201
|
-
var filterItemTypes =
|
|
10202
|
-
|
|
10415
|
+
var filterItemTypes = import_zod2.z.instanceof(RegExp).or(import_zod2.z.string()).or(
|
|
10416
|
+
import_zod2.z.function().args(import_zod2.z.string()).returns(import_zod2.z.boolean())
|
|
10203
10417
|
);
|
|
10204
10418
|
var filterTypes = filterItemTypes.array().or(filterItemTypes);
|
|
10205
|
-
var infrastructureLogging =
|
|
10206
|
-
appendOnly:
|
|
10207
|
-
colors:
|
|
10208
|
-
console:
|
|
10209
|
-
debug:
|
|
10210
|
-
level:
|
|
10211
|
-
stream:
|
|
10419
|
+
var infrastructureLogging = import_zod2.z.strictObject({
|
|
10420
|
+
appendOnly: import_zod2.z.boolean().optional(),
|
|
10421
|
+
colors: import_zod2.z.boolean().optional(),
|
|
10422
|
+
console: import_zod2.z.custom().optional(),
|
|
10423
|
+
debug: import_zod2.z.boolean().or(filterTypes).optional(),
|
|
10424
|
+
level: import_zod2.z.enum(["none", "error", "warn", "info", "log", "verbose"]).optional(),
|
|
10425
|
+
stream: import_zod2.z.custom().optional()
|
|
10212
10426
|
});
|
|
10213
|
-
var devTool =
|
|
10214
|
-
|
|
10427
|
+
var devTool = import_zod2.z.literal(false).or(
|
|
10428
|
+
import_zod2.z.enum([
|
|
10215
10429
|
"eval",
|
|
10216
10430
|
"cheap-source-map",
|
|
10217
10431
|
"cheap-module-source-map",
|
|
@@ -10239,18 +10453,18 @@ var devTool = import_zod.z.literal(false).or(
|
|
|
10239
10453
|
"eval-nosources-source-map"
|
|
10240
10454
|
])
|
|
10241
10455
|
);
|
|
10242
|
-
var nodeOptions =
|
|
10243
|
-
__dirname:
|
|
10244
|
-
__filename:
|
|
10245
|
-
global:
|
|
10456
|
+
var nodeOptions = import_zod2.z.strictObject({
|
|
10457
|
+
__dirname: import_zod2.z.boolean().or(import_zod2.z.enum(["warn-mock", "mock", "eval-only", "node-module"])).optional(),
|
|
10458
|
+
__filename: import_zod2.z.boolean().or(import_zod2.z.enum(["warn-mock", "mock", "eval-only", "node-module"])).optional(),
|
|
10459
|
+
global: import_zod2.z.boolean().or(import_zod2.z.literal("warn")).optional()
|
|
10246
10460
|
});
|
|
10247
|
-
var node =
|
|
10248
|
-
var loader =
|
|
10249
|
-
var snapshotOptions =
|
|
10461
|
+
var node = import_zod2.z.literal(false).or(nodeOptions);
|
|
10462
|
+
var loader = import_zod2.z.record(import_zod2.z.string(), import_zod2.z.any());
|
|
10463
|
+
var snapshotOptions = import_zod2.z.strictObject(
|
|
10250
10464
|
{}
|
|
10251
10465
|
);
|
|
10252
|
-
var cacheOptions =
|
|
10253
|
-
var statsPresets =
|
|
10466
|
+
var cacheOptions = import_zod2.z.boolean();
|
|
10467
|
+
var statsPresets = import_zod2.z.enum([
|
|
10254
10468
|
"normal",
|
|
10255
10469
|
"none",
|
|
10256
10470
|
"verbose",
|
|
@@ -10260,244 +10474,264 @@ var statsPresets = import_zod.z.enum([
|
|
|
10260
10474
|
"detailed",
|
|
10261
10475
|
"summary"
|
|
10262
10476
|
]);
|
|
10263
|
-
var statsOptions =
|
|
10264
|
-
all:
|
|
10265
|
-
preset:
|
|
10266
|
-
assets:
|
|
10267
|
-
chunks:
|
|
10268
|
-
modules:
|
|
10269
|
-
entrypoints:
|
|
10270
|
-
chunkGroups:
|
|
10271
|
-
warnings:
|
|
10272
|
-
warningsCount:
|
|
10273
|
-
errors:
|
|
10274
|
-
errorsCount:
|
|
10275
|
-
colors:
|
|
10276
|
-
hash:
|
|
10277
|
-
version:
|
|
10278
|
-
reasons:
|
|
10279
|
-
publicPath:
|
|
10280
|
-
outputPath:
|
|
10281
|
-
chunkModules:
|
|
10282
|
-
chunkRelations:
|
|
10283
|
-
ids:
|
|
10284
|
-
timings:
|
|
10285
|
-
builtAt:
|
|
10286
|
-
moduleAssets:
|
|
10287
|
-
nestedModules:
|
|
10288
|
-
source:
|
|
10289
|
-
logging:
|
|
10290
|
-
loggingDebug:
|
|
10291
|
-
loggingTrace:
|
|
10292
|
-
runtimeModules:
|
|
10293
|
-
children:
|
|
10294
|
-
usedExports:
|
|
10295
|
-
providedExports:
|
|
10296
|
-
optimizationBailout:
|
|
10297
|
-
groupModulesByType:
|
|
10298
|
-
groupModulesByCacheStatus:
|
|
10299
|
-
groupModulesByLayer:
|
|
10300
|
-
groupModulesByAttributes:
|
|
10301
|
-
groupModulesByPath:
|
|
10302
|
-
groupModulesByExtension:
|
|
10303
|
-
modulesSpace:
|
|
10304
|
-
chunkModulesSpace:
|
|
10305
|
-
nestedModulesSpace:
|
|
10306
|
-
relatedAssets:
|
|
10307
|
-
groupAssetsByEmitStatus:
|
|
10308
|
-
groupAssetsByInfo:
|
|
10309
|
-
groupAssetsByPath:
|
|
10310
|
-
groupAssetsByExtension:
|
|
10311
|
-
groupAssetsByChunk:
|
|
10312
|
-
assetsSpace:
|
|
10313
|
-
orphanModules:
|
|
10314
|
-
excludeModules:
|
|
10315
|
-
|
|
10316
|
-
).or(
|
|
10317
|
-
excludeAssets:
|
|
10318
|
-
|
|
10319
|
-
).or(
|
|
10320
|
-
modulesSort:
|
|
10321
|
-
chunkModulesSort:
|
|
10322
|
-
nestedModulesSort:
|
|
10323
|
-
chunksSort:
|
|
10324
|
-
assetsSort:
|
|
10325
|
-
performance:
|
|
10326
|
-
env:
|
|
10327
|
-
chunkGroupAuxiliary:
|
|
10328
|
-
chunkGroupChildren:
|
|
10329
|
-
chunkGroupMaxAssets:
|
|
10330
|
-
dependentModules:
|
|
10331
|
-
chunkOrigins:
|
|
10332
|
-
runtime:
|
|
10333
|
-
depth:
|
|
10334
|
-
reasonsSpace:
|
|
10335
|
-
groupReasonsByOrigin:
|
|
10336
|
-
errorDetails:
|
|
10337
|
-
errorStack:
|
|
10338
|
-
moduleTrace:
|
|
10339
|
-
cachedModules:
|
|
10340
|
-
cachedAssets:
|
|
10341
|
-
cached:
|
|
10342
|
-
errorsSpace:
|
|
10343
|
-
warningsSpace:
|
|
10477
|
+
var statsOptions = import_zod2.z.strictObject({
|
|
10478
|
+
all: import_zod2.z.boolean().optional(),
|
|
10479
|
+
preset: import_zod2.z.boolean().or(statsPresets).optional(),
|
|
10480
|
+
assets: import_zod2.z.boolean().optional(),
|
|
10481
|
+
chunks: import_zod2.z.boolean().optional(),
|
|
10482
|
+
modules: import_zod2.z.boolean().optional(),
|
|
10483
|
+
entrypoints: import_zod2.z.boolean().or(import_zod2.z.literal("auto")).optional(),
|
|
10484
|
+
chunkGroups: import_zod2.z.boolean().optional(),
|
|
10485
|
+
warnings: import_zod2.z.boolean().optional(),
|
|
10486
|
+
warningsCount: import_zod2.z.boolean().optional(),
|
|
10487
|
+
errors: import_zod2.z.boolean().optional(),
|
|
10488
|
+
errorsCount: import_zod2.z.boolean().optional(),
|
|
10489
|
+
colors: import_zod2.z.boolean().optional(),
|
|
10490
|
+
hash: import_zod2.z.boolean().optional(),
|
|
10491
|
+
version: import_zod2.z.boolean().optional(),
|
|
10492
|
+
reasons: import_zod2.z.boolean().optional(),
|
|
10493
|
+
publicPath: import_zod2.z.boolean().optional(),
|
|
10494
|
+
outputPath: import_zod2.z.boolean().optional(),
|
|
10495
|
+
chunkModules: import_zod2.z.boolean().optional(),
|
|
10496
|
+
chunkRelations: import_zod2.z.boolean().optional(),
|
|
10497
|
+
ids: import_zod2.z.boolean().optional(),
|
|
10498
|
+
timings: import_zod2.z.boolean().optional(),
|
|
10499
|
+
builtAt: import_zod2.z.boolean().optional(),
|
|
10500
|
+
moduleAssets: import_zod2.z.boolean().optional(),
|
|
10501
|
+
nestedModules: import_zod2.z.boolean().optional(),
|
|
10502
|
+
source: import_zod2.z.boolean().optional(),
|
|
10503
|
+
logging: import_zod2.z.enum(["none", "error", "warn", "info", "log", "verbose"]).or(import_zod2.z.boolean()).optional(),
|
|
10504
|
+
loggingDebug: import_zod2.z.boolean().or(filterTypes).optional(),
|
|
10505
|
+
loggingTrace: import_zod2.z.boolean().optional(),
|
|
10506
|
+
runtimeModules: import_zod2.z.boolean().optional(),
|
|
10507
|
+
children: import_zod2.z.boolean().optional(),
|
|
10508
|
+
usedExports: import_zod2.z.boolean().optional(),
|
|
10509
|
+
providedExports: import_zod2.z.boolean().optional(),
|
|
10510
|
+
optimizationBailout: import_zod2.z.boolean().optional(),
|
|
10511
|
+
groupModulesByType: import_zod2.z.boolean().optional(),
|
|
10512
|
+
groupModulesByCacheStatus: import_zod2.z.boolean().optional(),
|
|
10513
|
+
groupModulesByLayer: import_zod2.z.boolean().optional(),
|
|
10514
|
+
groupModulesByAttributes: import_zod2.z.boolean().optional(),
|
|
10515
|
+
groupModulesByPath: import_zod2.z.boolean().optional(),
|
|
10516
|
+
groupModulesByExtension: import_zod2.z.boolean().optional(),
|
|
10517
|
+
modulesSpace: import_zod2.z.number().optional(),
|
|
10518
|
+
chunkModulesSpace: import_zod2.z.number().optional(),
|
|
10519
|
+
nestedModulesSpace: import_zod2.z.number().optional(),
|
|
10520
|
+
relatedAssets: import_zod2.z.boolean().optional(),
|
|
10521
|
+
groupAssetsByEmitStatus: import_zod2.z.boolean().optional(),
|
|
10522
|
+
groupAssetsByInfo: import_zod2.z.boolean().optional(),
|
|
10523
|
+
groupAssetsByPath: import_zod2.z.boolean().optional(),
|
|
10524
|
+
groupAssetsByExtension: import_zod2.z.boolean().optional(),
|
|
10525
|
+
groupAssetsByChunk: import_zod2.z.boolean().optional(),
|
|
10526
|
+
assetsSpace: import_zod2.z.number().optional(),
|
|
10527
|
+
orphanModules: import_zod2.z.boolean().optional(),
|
|
10528
|
+
excludeModules: import_zod2.z.array(
|
|
10529
|
+
import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).or(import_zod2.z.function(import_zod2.z.tuple([import_zod2.z.string(), import_zod2.z.any(), import_zod2.z.any()]), import_zod2.z.boolean()))
|
|
10530
|
+
).or(import_zod2.z.string()).or(import_zod2.z.instanceof(RegExp)).or(import_zod2.z.function(import_zod2.z.tuple([import_zod2.z.string(), import_zod2.z.any(), import_zod2.z.any()]), import_zod2.z.boolean())).or(import_zod2.z.boolean()).optional(),
|
|
10531
|
+
excludeAssets: import_zod2.z.array(
|
|
10532
|
+
import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).or(import_zod2.z.function(import_zod2.z.tuple([import_zod2.z.string(), import_zod2.z.any()]), import_zod2.z.boolean()))
|
|
10533
|
+
).or(import_zod2.z.string()).or(import_zod2.z.instanceof(RegExp)).or(import_zod2.z.function(import_zod2.z.tuple([import_zod2.z.string(), import_zod2.z.any()]), import_zod2.z.boolean())).optional(),
|
|
10534
|
+
modulesSort: import_zod2.z.string().optional(),
|
|
10535
|
+
chunkModulesSort: import_zod2.z.string().optional(),
|
|
10536
|
+
nestedModulesSort: import_zod2.z.string().optional(),
|
|
10537
|
+
chunksSort: import_zod2.z.string().optional(),
|
|
10538
|
+
assetsSort: import_zod2.z.string().optional(),
|
|
10539
|
+
performance: import_zod2.z.boolean().optional(),
|
|
10540
|
+
env: import_zod2.z.boolean().optional(),
|
|
10541
|
+
chunkGroupAuxiliary: import_zod2.z.boolean().optional(),
|
|
10542
|
+
chunkGroupChildren: import_zod2.z.boolean().optional(),
|
|
10543
|
+
chunkGroupMaxAssets: import_zod2.z.number().optional(),
|
|
10544
|
+
dependentModules: import_zod2.z.boolean().optional(),
|
|
10545
|
+
chunkOrigins: import_zod2.z.boolean().optional(),
|
|
10546
|
+
runtime: import_zod2.z.boolean().optional(),
|
|
10547
|
+
depth: import_zod2.z.boolean().optional(),
|
|
10548
|
+
reasonsSpace: import_zod2.z.number().optional(),
|
|
10549
|
+
groupReasonsByOrigin: import_zod2.z.boolean().optional(),
|
|
10550
|
+
errorDetails: import_zod2.z.boolean().optional(),
|
|
10551
|
+
errorStack: import_zod2.z.boolean().optional(),
|
|
10552
|
+
moduleTrace: import_zod2.z.boolean().optional(),
|
|
10553
|
+
cachedModules: import_zod2.z.boolean().optional(),
|
|
10554
|
+
cachedAssets: import_zod2.z.boolean().optional(),
|
|
10555
|
+
cached: import_zod2.z.boolean().optional(),
|
|
10556
|
+
errorsSpace: import_zod2.z.number().optional(),
|
|
10557
|
+
warningsSpace: import_zod2.z.number().optional()
|
|
10344
10558
|
});
|
|
10345
|
-
var statsValue =
|
|
10346
|
-
var plugin =
|
|
10347
|
-
|
|
10559
|
+
var statsValue = import_zod2.z.boolean().or(statsPresets).or(statsOptions);
|
|
10560
|
+
var plugin = import_zod2.z.union([
|
|
10561
|
+
import_zod2.z.custom(),
|
|
10348
10562
|
falsy
|
|
10349
10563
|
]);
|
|
10350
10564
|
var plugins = plugin.array();
|
|
10351
|
-
var optimizationRuntimeChunk =
|
|
10352
|
-
|
|
10353
|
-
name:
|
|
10354
|
-
|
|
10565
|
+
var optimizationRuntimeChunk = import_zod2.z.enum(["single", "multiple"]).or(import_zod2.z.boolean()).or(
|
|
10566
|
+
import_zod2.z.strictObject({
|
|
10567
|
+
name: import_zod2.z.string().or(
|
|
10568
|
+
import_zod2.z.function().args(import_zod2.z.strictObject({ name: import_zod2.z.string() })).returns(import_zod2.z.string())
|
|
10355
10569
|
).optional()
|
|
10356
10570
|
})
|
|
10357
10571
|
);
|
|
10358
|
-
var optimizationSplitChunksNameFunction =
|
|
10359
|
-
|
|
10572
|
+
var optimizationSplitChunksNameFunction = import_zod2.z.function().args(
|
|
10573
|
+
import_zod2.z.instanceof(Module).optional()
|
|
10360
10574
|
// FIXME: z.array(z.instanceof(Chunk)).optional(), z.string()
|
|
10361
10575
|
// FIXME: Chunk[], cacheChunkKey
|
|
10362
10576
|
);
|
|
10363
|
-
var optimizationSplitChunksName =
|
|
10364
|
-
var optimizationSplitChunksChunks =
|
|
10365
|
-
|
|
10577
|
+
var optimizationSplitChunksName = import_zod2.z.string().or(import_zod2.z.literal(false)).or(optimizationSplitChunksNameFunction);
|
|
10578
|
+
var optimizationSplitChunksChunks = import_zod2.z.enum(["initial", "async", "all"]).or(import_zod2.z.instanceof(RegExp)).or(
|
|
10579
|
+
import_zod2.z.function().args(import_zod2.z.instanceof(Chunk, { message: "Input not instance of Chunk" })).returns(import_zod2.z.boolean())
|
|
10366
10580
|
);
|
|
10367
|
-
var optimizationSplitChunksSizes =
|
|
10368
|
-
var optimizationSplitChunksDefaultSizeTypes =
|
|
10581
|
+
var optimizationSplitChunksSizes = import_zod2.z.number().or(import_zod2.z.record(import_zod2.z.number()));
|
|
10582
|
+
var optimizationSplitChunksDefaultSizeTypes = import_zod2.z.array(import_zod2.z.string());
|
|
10369
10583
|
var sharedOptimizationSplitChunksCacheGroup = {
|
|
10370
10584
|
chunks: optimizationSplitChunksChunks.optional(),
|
|
10371
10585
|
defaultSizeTypes: optimizationSplitChunksDefaultSizeTypes.optional(),
|
|
10372
|
-
minChunks:
|
|
10373
|
-
usedExports:
|
|
10586
|
+
minChunks: import_zod2.z.number().min(1).optional(),
|
|
10587
|
+
usedExports: import_zod2.z.boolean().optional(),
|
|
10374
10588
|
name: optimizationSplitChunksName.optional(),
|
|
10375
10589
|
minSize: optimizationSplitChunksSizes.optional(),
|
|
10376
10590
|
maxSize: optimizationSplitChunksSizes.optional(),
|
|
10377
10591
|
maxAsyncSize: optimizationSplitChunksSizes.optional(),
|
|
10378
10592
|
maxInitialSize: optimizationSplitChunksSizes.optional(),
|
|
10379
|
-
maxAsyncRequests:
|
|
10380
|
-
maxInitialRequests:
|
|
10381
|
-
automaticNameDelimiter:
|
|
10382
|
-
};
|
|
10383
|
-
var optimizationSplitChunksCacheGroup =
|
|
10384
|
-
test:
|
|
10385
|
-
|
|
10386
|
-
|
|
10593
|
+
maxAsyncRequests: import_zod2.z.number().optional(),
|
|
10594
|
+
maxInitialRequests: import_zod2.z.number().optional(),
|
|
10595
|
+
automaticNameDelimiter: import_zod2.z.string().optional()
|
|
10596
|
+
};
|
|
10597
|
+
var optimizationSplitChunksCacheGroup = import_zod2.z.strictObject({
|
|
10598
|
+
test: import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).or(
|
|
10599
|
+
import_zod2.z.function().args(
|
|
10600
|
+
import_zod2.z.instanceof(Module)
|
|
10387
10601
|
/** FIXME: lack of CacheGroupContext */
|
|
10388
10602
|
)
|
|
10389
10603
|
).optional(),
|
|
10390
|
-
priority:
|
|
10391
|
-
enforce:
|
|
10392
|
-
filename:
|
|
10393
|
-
reuseExistingChunk:
|
|
10394
|
-
type:
|
|
10395
|
-
idHint:
|
|
10604
|
+
priority: import_zod2.z.number().optional(),
|
|
10605
|
+
enforce: import_zod2.z.boolean().optional(),
|
|
10606
|
+
filename: import_zod2.z.string().optional(),
|
|
10607
|
+
reuseExistingChunk: import_zod2.z.boolean().optional(),
|
|
10608
|
+
type: import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).optional(),
|
|
10609
|
+
idHint: import_zod2.z.string().optional(),
|
|
10396
10610
|
...sharedOptimizationSplitChunksCacheGroup
|
|
10397
10611
|
});
|
|
10398
|
-
var optimizationSplitChunksOptions =
|
|
10399
|
-
cacheGroups:
|
|
10400
|
-
fallbackCacheGroup:
|
|
10612
|
+
var optimizationSplitChunksOptions = import_zod2.z.strictObject({
|
|
10613
|
+
cacheGroups: import_zod2.z.record(import_zod2.z.literal(false).or(optimizationSplitChunksCacheGroup)).optional(),
|
|
10614
|
+
fallbackCacheGroup: import_zod2.z.strictObject({
|
|
10401
10615
|
chunks: optimizationSplitChunksChunks.optional(),
|
|
10402
|
-
minSize:
|
|
10403
|
-
maxSize:
|
|
10404
|
-
maxAsyncSize:
|
|
10405
|
-
maxInitialSize:
|
|
10406
|
-
automaticNameDelimiter:
|
|
10616
|
+
minSize: import_zod2.z.number().optional(),
|
|
10617
|
+
maxSize: import_zod2.z.number().optional(),
|
|
10618
|
+
maxAsyncSize: import_zod2.z.number().optional(),
|
|
10619
|
+
maxInitialSize: import_zod2.z.number().optional(),
|
|
10620
|
+
automaticNameDelimiter: import_zod2.z.string().optional()
|
|
10407
10621
|
}).optional(),
|
|
10408
|
-
hidePathInfo:
|
|
10622
|
+
hidePathInfo: import_zod2.z.boolean().optional(),
|
|
10409
10623
|
...sharedOptimizationSplitChunksCacheGroup
|
|
10410
10624
|
});
|
|
10411
|
-
var optimization =
|
|
10412
|
-
moduleIds:
|
|
10413
|
-
chunkIds:
|
|
10414
|
-
minimize:
|
|
10415
|
-
minimizer:
|
|
10416
|
-
mergeDuplicateChunks:
|
|
10417
|
-
splitChunks:
|
|
10625
|
+
var optimization = import_zod2.z.strictObject({
|
|
10626
|
+
moduleIds: import_zod2.z.enum(["named", "natural", "deterministic"]).optional(),
|
|
10627
|
+
chunkIds: import_zod2.z.enum(["natural", "named", "deterministic"]).optional(),
|
|
10628
|
+
minimize: import_zod2.z.boolean().optional(),
|
|
10629
|
+
minimizer: import_zod2.z.literal("...").or(plugin).array().optional(),
|
|
10630
|
+
mergeDuplicateChunks: import_zod2.z.boolean().optional(),
|
|
10631
|
+
splitChunks: import_zod2.z.literal(false).or(optimizationSplitChunksOptions).optional(),
|
|
10418
10632
|
runtimeChunk: optimizationRuntimeChunk.optional(),
|
|
10419
|
-
removeAvailableModules:
|
|
10420
|
-
removeEmptyChunks:
|
|
10421
|
-
realContentHash:
|
|
10422
|
-
sideEffects:
|
|
10423
|
-
providedExports:
|
|
10424
|
-
concatenateModules:
|
|
10425
|
-
innerGraph:
|
|
10426
|
-
usedExports:
|
|
10427
|
-
mangleExports:
|
|
10428
|
-
nodeEnv:
|
|
10429
|
-
emitOnErrors:
|
|
10633
|
+
removeAvailableModules: import_zod2.z.boolean().optional(),
|
|
10634
|
+
removeEmptyChunks: import_zod2.z.boolean().optional(),
|
|
10635
|
+
realContentHash: import_zod2.z.boolean().optional(),
|
|
10636
|
+
sideEffects: import_zod2.z.enum(["flag"]).or(import_zod2.z.boolean()).optional(),
|
|
10637
|
+
providedExports: import_zod2.z.boolean().optional(),
|
|
10638
|
+
concatenateModules: import_zod2.z.boolean().optional(),
|
|
10639
|
+
innerGraph: import_zod2.z.boolean().optional(),
|
|
10640
|
+
usedExports: import_zod2.z.enum(["global"]).or(import_zod2.z.boolean()).optional(),
|
|
10641
|
+
mangleExports: import_zod2.z.enum(["size", "deterministic"]).or(import_zod2.z.boolean()).optional(),
|
|
10642
|
+
nodeEnv: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.literal(false)]).optional(),
|
|
10643
|
+
emitOnErrors: import_zod2.z.boolean().optional()
|
|
10430
10644
|
});
|
|
10431
|
-
var rspackFutureOptions =
|
|
10432
|
-
bundlerInfo:
|
|
10433
|
-
version:
|
|
10434
|
-
bundler:
|
|
10435
|
-
force:
|
|
10645
|
+
var rspackFutureOptions = import_zod2.z.strictObject({
|
|
10646
|
+
bundlerInfo: import_zod2.z.strictObject({
|
|
10647
|
+
version: import_zod2.z.string().optional(),
|
|
10648
|
+
bundler: import_zod2.z.string().optional(),
|
|
10649
|
+
force: import_zod2.z.boolean().or(import_zod2.z.array(import_zod2.z.enum(["version", "uniqueId"]))).optional()
|
|
10436
10650
|
}).optional()
|
|
10437
10651
|
});
|
|
10438
|
-
var listenOptions =
|
|
10439
|
-
port:
|
|
10440
|
-
host:
|
|
10441
|
-
backlog:
|
|
10442
|
-
path:
|
|
10443
|
-
exclusive:
|
|
10444
|
-
readableAll:
|
|
10445
|
-
writableAll:
|
|
10446
|
-
ipv6Only:
|
|
10652
|
+
var listenOptions = import_zod2.z.object({
|
|
10653
|
+
port: import_zod2.z.number().optional(),
|
|
10654
|
+
host: import_zod2.z.string().optional(),
|
|
10655
|
+
backlog: import_zod2.z.number().optional(),
|
|
10656
|
+
path: import_zod2.z.string().optional(),
|
|
10657
|
+
exclusive: import_zod2.z.boolean().optional(),
|
|
10658
|
+
readableAll: import_zod2.z.boolean().optional(),
|
|
10659
|
+
writableAll: import_zod2.z.boolean().optional(),
|
|
10660
|
+
ipv6Only: import_zod2.z.boolean().optional()
|
|
10447
10661
|
});
|
|
10448
|
-
var
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10662
|
+
var experimentCacheOptions = import_zod2.z.object({
|
|
10663
|
+
type: import_zod2.z.enum(["memory"])
|
|
10664
|
+
}).or(
|
|
10665
|
+
import_zod2.z.object({
|
|
10666
|
+
type: import_zod2.z.enum(["persistent"]),
|
|
10667
|
+
snapshot: import_zod2.z.strictObject({
|
|
10668
|
+
immutablePaths: import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).array(),
|
|
10669
|
+
unmanagedPaths: import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).array(),
|
|
10670
|
+
managedPaths: import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).array()
|
|
10671
|
+
}),
|
|
10672
|
+
storage: import_zod2.z.strictObject({
|
|
10673
|
+
type: import_zod2.z.enum(["filesystem"]),
|
|
10674
|
+
directory: import_zod2.z.string()
|
|
10675
|
+
})
|
|
10676
|
+
})
|
|
10677
|
+
);
|
|
10678
|
+
var lazyCompilationOptions = import_zod2.z.object({
|
|
10679
|
+
backend: import_zod2.z.object({
|
|
10680
|
+
client: import_zod2.z.string().optional(),
|
|
10681
|
+
listen: import_zod2.z.number().optional().or(listenOptions),
|
|
10682
|
+
protocol: import_zod2.z.enum(["http", "https"]).optional()
|
|
10453
10683
|
}).optional(),
|
|
10454
|
-
imports:
|
|
10455
|
-
entries:
|
|
10456
|
-
test:
|
|
10684
|
+
imports: import_zod2.z.boolean().optional(),
|
|
10685
|
+
entries: import_zod2.z.boolean().optional(),
|
|
10686
|
+
test: import_zod2.z.instanceof(RegExp).or(import_zod2.z.function().args(import_zod2.z.custom()).returns(import_zod2.z.boolean())).optional()
|
|
10457
10687
|
});
|
|
10458
|
-
var incremental =
|
|
10459
|
-
make:
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
modulesHashes:
|
|
10465
|
-
modulesCodegen:
|
|
10466
|
-
modulesRuntimeRequirements:
|
|
10467
|
-
|
|
10688
|
+
var incremental = import_zod2.z.strictObject({
|
|
10689
|
+
make: import_zod2.z.boolean().optional(),
|
|
10690
|
+
inferAsyncModules: import_zod2.z.boolean().optional(),
|
|
10691
|
+
providedExports: import_zod2.z.boolean().optional(),
|
|
10692
|
+
dependenciesDiagnostics: import_zod2.z.boolean().optional(),
|
|
10693
|
+
buildChunkGraph: import_zod2.z.boolean().optional(),
|
|
10694
|
+
modulesHashes: import_zod2.z.boolean().optional(),
|
|
10695
|
+
modulesCodegen: import_zod2.z.boolean().optional(),
|
|
10696
|
+
modulesRuntimeRequirements: import_zod2.z.boolean().optional(),
|
|
10697
|
+
chunksRuntimeRequirements: import_zod2.z.boolean().optional(),
|
|
10698
|
+
chunksHashes: import_zod2.z.boolean().optional(),
|
|
10699
|
+
chunksRender: import_zod2.z.boolean().optional(),
|
|
10700
|
+
emitAssets: import_zod2.z.boolean().optional()
|
|
10468
10701
|
});
|
|
10469
|
-
var experiments =
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
|
|
10477
|
-
|
|
10702
|
+
var experiments = import_zod2.z.strictObject({
|
|
10703
|
+
cache: import_zod2.z.boolean().optional().or(experimentCacheOptions),
|
|
10704
|
+
lazyCompilation: import_zod2.z.boolean().optional().or(lazyCompilationOptions),
|
|
10705
|
+
asyncWebAssembly: import_zod2.z.boolean().optional(),
|
|
10706
|
+
outputModule: import_zod2.z.boolean().optional(),
|
|
10707
|
+
topLevelAwait: import_zod2.z.boolean().optional(),
|
|
10708
|
+
css: import_zod2.z.boolean().optional(),
|
|
10709
|
+
layers: import_zod2.z.boolean().optional(),
|
|
10710
|
+
incremental: import_zod2.z.boolean().or(incremental).optional(),
|
|
10711
|
+
futureDefaults: import_zod2.z.boolean().optional(),
|
|
10478
10712
|
rspackFuture: rspackFutureOptions.optional()
|
|
10479
10713
|
});
|
|
10480
|
-
var watch =
|
|
10481
|
-
var watchOptions =
|
|
10482
|
-
aggregateTimeout:
|
|
10483
|
-
followSymlinks:
|
|
10484
|
-
ignored:
|
|
10485
|
-
poll:
|
|
10486
|
-
stdin:
|
|
10714
|
+
var watch = import_zod2.z.boolean();
|
|
10715
|
+
var watchOptions = import_zod2.z.strictObject({
|
|
10716
|
+
aggregateTimeout: import_zod2.z.number().optional(),
|
|
10717
|
+
followSymlinks: import_zod2.z.boolean().optional(),
|
|
10718
|
+
ignored: import_zod2.z.string().array().or(import_zod2.z.instanceof(RegExp)).or(import_zod2.z.string()).optional(),
|
|
10719
|
+
poll: import_zod2.z.number().or(import_zod2.z.boolean()).optional(),
|
|
10720
|
+
stdin: import_zod2.z.boolean().optional()
|
|
10487
10721
|
});
|
|
10488
|
-
var devServer =
|
|
10489
|
-
var ignoreWarnings =
|
|
10490
|
-
|
|
10722
|
+
var devServer = import_zod2.z.custom();
|
|
10723
|
+
var ignoreWarnings = import_zod2.z.instanceof(RegExp).or(
|
|
10724
|
+
import_zod2.z.function().args(import_zod2.z.instanceof(Error), import_zod2.z.custom()).returns(import_zod2.z.boolean())
|
|
10491
10725
|
).array();
|
|
10492
|
-
var profile =
|
|
10493
|
-
var bail =
|
|
10494
|
-
var performance =
|
|
10495
|
-
assetFilter:
|
|
10496
|
-
hints:
|
|
10497
|
-
maxAssetSize:
|
|
10498
|
-
maxEntrypointSize:
|
|
10499
|
-
}).or(
|
|
10500
|
-
var rspackOptions =
|
|
10726
|
+
var profile = import_zod2.z.boolean();
|
|
10727
|
+
var bail = import_zod2.z.boolean();
|
|
10728
|
+
var performance = import_zod2.z.strictObject({
|
|
10729
|
+
assetFilter: import_zod2.z.function().args(import_zod2.z.string()).returns(import_zod2.z.boolean()).optional(),
|
|
10730
|
+
hints: import_zod2.z.enum(["error", "warning"]).or(import_zod2.z.literal(false)).optional(),
|
|
10731
|
+
maxAssetSize: import_zod2.z.number().optional(),
|
|
10732
|
+
maxEntrypointSize: import_zod2.z.number().optional()
|
|
10733
|
+
}).or(import_zod2.z.literal(false));
|
|
10734
|
+
var rspackOptions = import_zod2.z.strictObject({
|
|
10501
10735
|
name: name.optional(),
|
|
10502
10736
|
dependencies: dependencies.optional(),
|
|
10503
10737
|
entry: entry.optional(),
|
|
@@ -10532,7 +10766,7 @@ var rspackOptions = import_zod.z.strictObject({
|
|
|
10532
10766
|
|
|
10533
10767
|
// src/builtin-plugin/EntryPlugin.ts
|
|
10534
10768
|
var EntryPlugin = create2(
|
|
10535
|
-
|
|
10769
|
+
import_binding24.BuiltinPluginName.EntryPlugin,
|
|
10536
10770
|
(context2, entry2, options = "") => {
|
|
10537
10771
|
const entryOptions = typeof options === "string" ? { name: options } : options;
|
|
10538
10772
|
return {
|
|
@@ -10566,7 +10800,7 @@ var DynamicEntryPlugin = class extends RspackBuiltinPlugin {
|
|
|
10566
10800
|
super();
|
|
10567
10801
|
this.context = context2;
|
|
10568
10802
|
this.entry = entry2;
|
|
10569
|
-
this.name =
|
|
10803
|
+
this.name = import_binding25.BuiltinPluginName.DynamicEntryPlugin;
|
|
10570
10804
|
this.affectedHooks = "make";
|
|
10571
10805
|
}
|
|
10572
10806
|
raw(compiler) {
|
|
@@ -10592,21 +10826,21 @@ var DynamicEntryPlugin = class extends RspackBuiltinPlugin {
|
|
|
10592
10826
|
};
|
|
10593
10827
|
|
|
10594
10828
|
// src/builtin-plugin/ElectronTargetPlugin.ts
|
|
10595
|
-
var
|
|
10829
|
+
var import_binding26 = require("@rspack/binding");
|
|
10596
10830
|
var ElectronTargetPlugin = create2(
|
|
10597
|
-
|
|
10831
|
+
import_binding26.BuiltinPluginName.ElectronTargetPlugin,
|
|
10598
10832
|
(context2) => context2 ?? "none"
|
|
10599
10833
|
);
|
|
10600
10834
|
|
|
10601
10835
|
// src/builtin-plugin/EnableChunkLoadingPlugin.ts
|
|
10602
|
-
var
|
|
10836
|
+
var import_binding27 = require("@rspack/binding");
|
|
10603
10837
|
var EnableChunkLoadingPlugin = create2(
|
|
10604
|
-
|
|
10838
|
+
import_binding27.BuiltinPluginName.EnableChunkLoadingPlugin,
|
|
10605
10839
|
(type) => type
|
|
10606
10840
|
);
|
|
10607
10841
|
|
|
10608
10842
|
// src/builtin-plugin/EnableLibraryPlugin.ts
|
|
10609
|
-
var
|
|
10843
|
+
var import_binding28 = require("@rspack/binding");
|
|
10610
10844
|
var enabledTypes = /* @__PURE__ */ new WeakMap();
|
|
10611
10845
|
var getEnabledTypes = (compiler) => {
|
|
10612
10846
|
let set = enabledTypes.get(compiler);
|
|
@@ -10620,7 +10854,7 @@ var EnableLibraryPlugin = class extends RspackBuiltinPlugin {
|
|
|
10620
10854
|
constructor(type) {
|
|
10621
10855
|
super();
|
|
10622
10856
|
this.type = type;
|
|
10623
|
-
this.name =
|
|
10857
|
+
this.name = import_binding28.BuiltinPluginName.EnableLibraryPlugin;
|
|
10624
10858
|
}
|
|
10625
10859
|
static setEnabled(compiler, type) {
|
|
10626
10860
|
getEnabledTypes(compiler).add(type);
|
|
@@ -10642,32 +10876,32 @@ var EnableLibraryPlugin = class extends RspackBuiltinPlugin {
|
|
|
10642
10876
|
};
|
|
10643
10877
|
|
|
10644
10878
|
// src/builtin-plugin/EnableWasmLoadingPlugin.ts
|
|
10645
|
-
var
|
|
10879
|
+
var import_binding29 = require("@rspack/binding");
|
|
10646
10880
|
var EnableWasmLoadingPlugin = create2(
|
|
10647
|
-
|
|
10881
|
+
import_binding29.BuiltinPluginName.EnableWasmLoadingPlugin,
|
|
10648
10882
|
(type) => type
|
|
10649
10883
|
);
|
|
10650
10884
|
|
|
10651
10885
|
// src/builtin-plugin/EnsureChunkConditionsPlugin.ts
|
|
10652
|
-
var
|
|
10886
|
+
var import_binding30 = require("@rspack/binding");
|
|
10653
10887
|
var EnsureChunkConditionsPlugin = create2(
|
|
10654
|
-
|
|
10888
|
+
import_binding30.BuiltinPluginName.EnsureChunkConditionsPlugin,
|
|
10655
10889
|
() => {
|
|
10656
10890
|
}
|
|
10657
10891
|
);
|
|
10658
10892
|
|
|
10659
10893
|
// src/builtin-plugin/EvalDevToolModulePlugin.ts
|
|
10660
|
-
var
|
|
10894
|
+
var import_binding31 = require("@rspack/binding");
|
|
10661
10895
|
var EvalDevToolModulePlugin = create2(
|
|
10662
|
-
|
|
10896
|
+
import_binding31.BuiltinPluginName.EvalDevToolModulePlugin,
|
|
10663
10897
|
(options) => options,
|
|
10664
10898
|
"compilation"
|
|
10665
10899
|
);
|
|
10666
10900
|
|
|
10667
10901
|
// src/builtin-plugin/EvalSourceMapDevToolPlugin.ts
|
|
10668
|
-
var
|
|
10902
|
+
var import_binding32 = require("@rspack/binding");
|
|
10669
10903
|
var EvalSourceMapDevToolPlugin = create2(
|
|
10670
|
-
|
|
10904
|
+
import_binding32.BuiltinPluginName.EvalSourceMapDevToolPlugin,
|
|
10671
10905
|
(options) => {
|
|
10672
10906
|
return {
|
|
10673
10907
|
filename: options.filename || void 0,
|
|
@@ -10683,9 +10917,9 @@ var EvalSourceMapDevToolPlugin = create2(
|
|
|
10683
10917
|
);
|
|
10684
10918
|
|
|
10685
10919
|
// src/builtin-plugin/ExternalsPlugin.ts
|
|
10686
|
-
var
|
|
10920
|
+
var import_binding33 = require("@rspack/binding");
|
|
10687
10921
|
var ExternalsPlugin = create2(
|
|
10688
|
-
|
|
10922
|
+
import_binding33.BuiltinPluginName.ExternalsPlugin,
|
|
10689
10923
|
(type, externals2) => {
|
|
10690
10924
|
return {
|
|
10691
10925
|
type,
|
|
@@ -10739,30 +10973,30 @@ function getRawExternalItemValue(value) {
|
|
|
10739
10973
|
}
|
|
10740
10974
|
|
|
10741
10975
|
// src/builtin-plugin/FileUriPlugin.ts
|
|
10742
|
-
var
|
|
10976
|
+
var import_binding34 = require("@rspack/binding");
|
|
10743
10977
|
var FileUriPlugin = create2(
|
|
10744
|
-
|
|
10978
|
+
import_binding34.BuiltinPluginName.FileUriPlugin,
|
|
10745
10979
|
() => {
|
|
10746
10980
|
},
|
|
10747
10981
|
"compilation"
|
|
10748
10982
|
);
|
|
10749
10983
|
|
|
10750
10984
|
// src/builtin-plugin/FlagDependencyExportsPlugin.ts
|
|
10751
|
-
var
|
|
10985
|
+
var import_binding35 = require("@rspack/binding");
|
|
10752
10986
|
var FlagDependencyExportsPlugin = create2(
|
|
10753
|
-
|
|
10987
|
+
import_binding35.BuiltinPluginName.FlagDependencyExportsPlugin,
|
|
10754
10988
|
() => {
|
|
10755
10989
|
},
|
|
10756
10990
|
"compilation"
|
|
10757
10991
|
);
|
|
10758
10992
|
|
|
10759
10993
|
// src/builtin-plugin/FlagDependencyUsagePlugin.ts
|
|
10760
|
-
var
|
|
10994
|
+
var import_binding36 = require("@rspack/binding");
|
|
10761
10995
|
var FlagDependencyUsagePlugin = class extends RspackBuiltinPlugin {
|
|
10762
10996
|
constructor(global) {
|
|
10763
10997
|
super();
|
|
10764
10998
|
this.global = global;
|
|
10765
|
-
this.name =
|
|
10999
|
+
this.name = import_binding36.BuiltinPluginName.FlagDependencyUsagePlugin;
|
|
10766
11000
|
this.affectedHooks = "compilation";
|
|
10767
11001
|
}
|
|
10768
11002
|
raw(compiler) {
|
|
@@ -10793,11 +11027,11 @@ var FlagDependencyUsagePlugin = class extends RspackBuiltinPlugin {
|
|
|
10793
11027
|
};
|
|
10794
11028
|
|
|
10795
11029
|
// src/builtin-plugin/HotModuleReplacementPlugin.ts
|
|
10796
|
-
var
|
|
11030
|
+
var import_binding37 = require("@rspack/binding");
|
|
10797
11031
|
var HotModuleReplacementPlugin = class extends RspackBuiltinPlugin {
|
|
10798
11032
|
constructor() {
|
|
10799
11033
|
super(...arguments);
|
|
10800
|
-
this.name =
|
|
11034
|
+
this.name = import_binding37.BuiltinPluginName.HotModuleReplacementPlugin;
|
|
10801
11035
|
}
|
|
10802
11036
|
raw(compiler) {
|
|
10803
11037
|
if (compiler.options.output.strictModuleErrorHandling === void 0) {
|
|
@@ -10810,9 +11044,9 @@ var HotModuleReplacementPlugin = class extends RspackBuiltinPlugin {
|
|
|
10810
11044
|
// src/builtin-plugin/HtmlRspackPlugin.ts
|
|
10811
11045
|
var import_node_fs2 = __toESM(require("fs"));
|
|
10812
11046
|
var import_node_path8 = __toESM(require("path"));
|
|
10813
|
-
var
|
|
11047
|
+
var import_binding38 = require("@rspack/binding");
|
|
10814
11048
|
var liteTapable3 = __toESM(require("@rspack/lite-tapable"));
|
|
10815
|
-
var
|
|
11049
|
+
var import_zod3 = require("../compiled/zod/index.js");
|
|
10816
11050
|
|
|
10817
11051
|
// ../../node_modules/.pnpm/zod-validation-error@3.4.0_zod@3.23.8/node_modules/zod-validation-error/dist/index.mjs
|
|
10818
11052
|
var zod2 = __toESM(require("../compiled/zod/index.js"), 1);
|
|
@@ -11063,43 +11297,43 @@ function isValidate(opts, schema) {
|
|
|
11063
11297
|
}
|
|
11064
11298
|
|
|
11065
11299
|
// src/builtin-plugin/HtmlRspackPlugin.ts
|
|
11066
|
-
var templateRenderFunction =
|
|
11067
|
-
|
|
11300
|
+
var templateRenderFunction = import_zod3.z.function().args(import_zod3.z.record(import_zod3.z.string(), import_zod3.z.any())).returns(
|
|
11301
|
+
import_zod3.z.string().or(import_zod3.z.promise(import_zod3.z.string()))
|
|
11068
11302
|
);
|
|
11069
|
-
var templateParamFunction =
|
|
11070
|
-
|
|
11303
|
+
var templateParamFunction = import_zod3.z.function().args(import_zod3.z.record(import_zod3.z.string(), import_zod3.z.any())).returns(
|
|
11304
|
+
import_zod3.z.record(import_zod3.z.string(), import_zod3.z.any()).or(import_zod3.z.promise(import_zod3.z.record(import_zod3.z.string(), import_zod3.z.any())))
|
|
11071
11305
|
);
|
|
11072
|
-
var templateFilenameFunction =
|
|
11073
|
-
var htmlRspackPluginOptions =
|
|
11074
|
-
filename:
|
|
11075
|
-
template:
|
|
11306
|
+
var templateFilenameFunction = import_zod3.z.function().args(import_zod3.z.string()).returns(import_zod3.z.string());
|
|
11307
|
+
var htmlRspackPluginOptions = import_zod3.z.strictObject({
|
|
11308
|
+
filename: import_zod3.z.string().or(templateFilenameFunction).optional(),
|
|
11309
|
+
template: import_zod3.z.string().refine(
|
|
11076
11310
|
(val) => !val.includes("!"),
|
|
11077
11311
|
() => ({
|
|
11078
11312
|
message: "HtmlRspackPlugin does not support template path with loader yet"
|
|
11079
11313
|
})
|
|
11080
11314
|
).optional(),
|
|
11081
|
-
templateContent:
|
|
11082
|
-
templateParameters:
|
|
11083
|
-
inject:
|
|
11084
|
-
publicPath:
|
|
11085
|
-
base:
|
|
11086
|
-
|
|
11087
|
-
href:
|
|
11088
|
-
target:
|
|
11315
|
+
templateContent: import_zod3.z.string().or(templateRenderFunction).optional(),
|
|
11316
|
+
templateParameters: import_zod3.z.record(import_zod3.z.string()).or(import_zod3.z.boolean()).or(templateParamFunction).optional(),
|
|
11317
|
+
inject: import_zod3.z.enum(["head", "body"]).or(import_zod3.z.boolean()).optional(),
|
|
11318
|
+
publicPath: import_zod3.z.string().optional(),
|
|
11319
|
+
base: import_zod3.z.string().or(
|
|
11320
|
+
import_zod3.z.strictObject({
|
|
11321
|
+
href: import_zod3.z.string().optional(),
|
|
11322
|
+
target: import_zod3.z.enum(["_self", "_blank", "_parent", "_top"]).optional()
|
|
11089
11323
|
})
|
|
11090
11324
|
).optional(),
|
|
11091
|
-
scriptLoading:
|
|
11092
|
-
chunks:
|
|
11093
|
-
excludeChunks:
|
|
11094
|
-
sri:
|
|
11095
|
-
minify:
|
|
11096
|
-
title:
|
|
11097
|
-
favicon:
|
|
11098
|
-
meta:
|
|
11099
|
-
hash:
|
|
11325
|
+
scriptLoading: import_zod3.z.enum(["blocking", "defer", "module", "systemjs-module"]).optional(),
|
|
11326
|
+
chunks: import_zod3.z.string().array().optional(),
|
|
11327
|
+
excludeChunks: import_zod3.z.string().array().optional(),
|
|
11328
|
+
sri: import_zod3.z.enum(["sha256", "sha384", "sha512"]).optional(),
|
|
11329
|
+
minify: import_zod3.z.boolean().optional(),
|
|
11330
|
+
title: import_zod3.z.string().optional(),
|
|
11331
|
+
favicon: import_zod3.z.string().optional(),
|
|
11332
|
+
meta: import_zod3.z.record(import_zod3.z.string().or(import_zod3.z.record(import_zod3.z.string()))).optional(),
|
|
11333
|
+
hash: import_zod3.z.boolean().optional()
|
|
11100
11334
|
});
|
|
11101
11335
|
var HtmlRspackPluginImpl = create2(
|
|
11102
|
-
|
|
11336
|
+
import_binding38.BuiltinPluginName.HtmlRspackPlugin,
|
|
11103
11337
|
function(c = {}) {
|
|
11104
11338
|
validate(c, htmlRspackPluginOptions);
|
|
11105
11339
|
const meta = {};
|
|
@@ -11336,9 +11570,9 @@ HtmlRspackPlugin.getHooks = HtmlRspackPlugin.getCompilationHooks = (compilation)
|
|
|
11336
11570
|
HtmlRspackPlugin.version = 5;
|
|
11337
11571
|
|
|
11338
11572
|
// src/builtin-plugin/HttpExternalsRspackPlugin.ts
|
|
11339
|
-
var
|
|
11573
|
+
var import_binding39 = require("@rspack/binding");
|
|
11340
11574
|
var HttpExternalsRspackPlugin = create2(
|
|
11341
|
-
|
|
11575
|
+
import_binding39.BuiltinPluginName.HttpExternalsRspackPlugin,
|
|
11342
11576
|
(css, webAsync) => {
|
|
11343
11577
|
return {
|
|
11344
11578
|
css,
|
|
@@ -11348,19 +11582,19 @@ var HttpExternalsRspackPlugin = create2(
|
|
|
11348
11582
|
);
|
|
11349
11583
|
|
|
11350
11584
|
// src/builtin-plugin/IgnorePlugin.ts
|
|
11351
|
-
var
|
|
11352
|
-
var
|
|
11353
|
-
var IgnorePluginOptions =
|
|
11354
|
-
|
|
11355
|
-
contextRegExp:
|
|
11356
|
-
resourceRegExp:
|
|
11585
|
+
var import_binding40 = require("@rspack/binding");
|
|
11586
|
+
var import_zod4 = require("../compiled/zod/index.js");
|
|
11587
|
+
var IgnorePluginOptions = import_zod4.z.union([
|
|
11588
|
+
import_zod4.z.object({
|
|
11589
|
+
contextRegExp: import_zod4.z.instanceof(RegExp).optional(),
|
|
11590
|
+
resourceRegExp: import_zod4.z.instanceof(RegExp)
|
|
11357
11591
|
}),
|
|
11358
|
-
|
|
11359
|
-
checkResource:
|
|
11592
|
+
import_zod4.z.object({
|
|
11593
|
+
checkResource: import_zod4.z.function(import_zod4.z.tuple([import_zod4.z.string(), import_zod4.z.string()]), import_zod4.z.boolean())
|
|
11360
11594
|
})
|
|
11361
11595
|
]);
|
|
11362
11596
|
var IgnorePlugin = create2(
|
|
11363
|
-
|
|
11597
|
+
import_binding40.BuiltinPluginName.IgnorePlugin,
|
|
11364
11598
|
(options) => {
|
|
11365
11599
|
validate(options, IgnorePluginOptions);
|
|
11366
11600
|
return options;
|
|
@@ -11368,22 +11602,22 @@ var IgnorePlugin = create2(
|
|
|
11368
11602
|
);
|
|
11369
11603
|
|
|
11370
11604
|
// src/builtin-plugin/InferAsyncModulesPlugin.ts
|
|
11371
|
-
var
|
|
11605
|
+
var import_binding41 = require("@rspack/binding");
|
|
11372
11606
|
var InferAsyncModulesPlugin = create2(
|
|
11373
|
-
|
|
11607
|
+
import_binding41.BuiltinPluginName.InferAsyncModulesPlugin,
|
|
11374
11608
|
() => {
|
|
11375
11609
|
},
|
|
11376
11610
|
"compilation"
|
|
11377
11611
|
);
|
|
11378
11612
|
|
|
11379
11613
|
// src/builtin-plugin/JavascriptModulesPlugin.ts
|
|
11380
|
-
var
|
|
11614
|
+
var import_binding42 = require("@rspack/binding");
|
|
11381
11615
|
var liteTapable4 = __toESM(require("@rspack/lite-tapable"));
|
|
11382
11616
|
var compilationHooksMap3 = /* @__PURE__ */ new WeakMap();
|
|
11383
11617
|
var JavascriptModulesPlugin = class extends RspackBuiltinPlugin {
|
|
11384
11618
|
constructor() {
|
|
11385
11619
|
super(...arguments);
|
|
11386
|
-
this.name =
|
|
11620
|
+
this.name = import_binding42.BuiltinPluginName.JavascriptModulesPlugin;
|
|
11387
11621
|
this.affectedHooks = "compilation";
|
|
11388
11622
|
}
|
|
11389
11623
|
raw() {
|
|
@@ -11407,18 +11641,18 @@ var JavascriptModulesPlugin = class extends RspackBuiltinPlugin {
|
|
|
11407
11641
|
};
|
|
11408
11642
|
|
|
11409
11643
|
// src/builtin-plugin/JsLoaderRspackPlugin.ts
|
|
11410
|
-
var
|
|
11644
|
+
var import_binding43 = require("@rspack/binding");
|
|
11411
11645
|
var JsLoaderRspackPlugin = create2(
|
|
11412
|
-
|
|
11646
|
+
import_binding43.BuiltinPluginName.JsLoaderRspackPlugin,
|
|
11413
11647
|
(compiler) => runLoaders.bind(null, compiler),
|
|
11414
11648
|
/* Not Inheretable */
|
|
11415
11649
|
"thisCompilation"
|
|
11416
11650
|
);
|
|
11417
11651
|
|
|
11418
11652
|
// src/builtin-plugin/JsonModulesPlugin.ts
|
|
11419
|
-
var
|
|
11653
|
+
var import_binding44 = require("@rspack/binding");
|
|
11420
11654
|
var JsonModulesPlugin = create2(
|
|
11421
|
-
|
|
11655
|
+
import_binding44.BuiltinPluginName.JsonModulesPlugin,
|
|
11422
11656
|
() => {
|
|
11423
11657
|
},
|
|
11424
11658
|
"compilation"
|
|
@@ -11554,9 +11788,9 @@ function moduleImpl(args) {
|
|
|
11554
11788
|
}
|
|
11555
11789
|
|
|
11556
11790
|
// src/builtin-plugin/lazy-compilation/lazyCompilation.ts
|
|
11557
|
-
var
|
|
11791
|
+
var import_binding45 = require("@rspack/binding");
|
|
11558
11792
|
var BuiltinLazyCompilationPlugin = create2(
|
|
11559
|
-
|
|
11793
|
+
import_binding45.BuiltinPluginName.LazyCompilationPlugin,
|
|
11560
11794
|
(module2, cacheable, entries, imports, test) => ({ module: module2, cacheable, imports, entries, test }),
|
|
11561
11795
|
"thisCompilation"
|
|
11562
11796
|
);
|
|
@@ -11601,21 +11835,21 @@ var LazyCompilationPlugin = class {
|
|
|
11601
11835
|
};
|
|
11602
11836
|
|
|
11603
11837
|
// src/builtin-plugin/LimitChunkCountPlugin.ts
|
|
11604
|
-
var
|
|
11838
|
+
var import_binding46 = require("@rspack/binding");
|
|
11605
11839
|
var LimitChunkCountPlugin = create2(
|
|
11606
|
-
|
|
11840
|
+
import_binding46.BuiltinPluginName.LimitChunkCountPlugin,
|
|
11607
11841
|
(options) => {
|
|
11608
11842
|
return options;
|
|
11609
11843
|
}
|
|
11610
11844
|
);
|
|
11611
11845
|
|
|
11612
11846
|
// src/builtin-plugin/MangleExportsPlugin.ts
|
|
11613
|
-
var
|
|
11847
|
+
var import_binding47 = require("@rspack/binding");
|
|
11614
11848
|
var MangleExportsPlugin = class extends RspackBuiltinPlugin {
|
|
11615
11849
|
constructor(deterministic) {
|
|
11616
11850
|
super();
|
|
11617
11851
|
this.deterministic = deterministic;
|
|
11618
|
-
this.name =
|
|
11852
|
+
this.name = import_binding47.BuiltinPluginName.MangleExportsPlugin;
|
|
11619
11853
|
this.affectedHooks = "compilation";
|
|
11620
11854
|
}
|
|
11621
11855
|
raw(compiler) {
|
|
@@ -11646,27 +11880,27 @@ var MangleExportsPlugin = class extends RspackBuiltinPlugin {
|
|
|
11646
11880
|
};
|
|
11647
11881
|
|
|
11648
11882
|
// src/builtin-plugin/MergeDuplicateChunksPlugin.ts
|
|
11649
|
-
var
|
|
11883
|
+
var import_binding48 = require("@rspack/binding");
|
|
11650
11884
|
var MergeDuplicateChunksPlugin = create2(
|
|
11651
|
-
|
|
11885
|
+
import_binding48.BuiltinPluginName.MergeDuplicateChunksPlugin,
|
|
11652
11886
|
() => {
|
|
11653
11887
|
}
|
|
11654
11888
|
);
|
|
11655
11889
|
|
|
11656
11890
|
// src/builtin-plugin/ModuleChunkFormatPlugin.ts
|
|
11657
|
-
var
|
|
11891
|
+
var import_binding49 = require("@rspack/binding");
|
|
11658
11892
|
var ModuleChunkFormatPlugin = create2(
|
|
11659
|
-
|
|
11893
|
+
import_binding49.BuiltinPluginName.ModuleChunkFormatPlugin,
|
|
11660
11894
|
() => {
|
|
11661
11895
|
}
|
|
11662
11896
|
);
|
|
11663
11897
|
|
|
11664
11898
|
// src/builtin-plugin/ModuleConcatenationPlugin.ts
|
|
11665
|
-
var
|
|
11899
|
+
var import_binding50 = require("@rspack/binding");
|
|
11666
11900
|
var ModuleConcatenationPlugin = class extends RspackBuiltinPlugin {
|
|
11667
11901
|
constructor() {
|
|
11668
11902
|
super(...arguments);
|
|
11669
|
-
this.name =
|
|
11903
|
+
this.name = import_binding50.BuiltinPluginName.ModuleConcatenationPlugin;
|
|
11670
11904
|
this.affectedHooks = "compilation";
|
|
11671
11905
|
}
|
|
11672
11906
|
raw(compiler) {
|
|
@@ -11697,52 +11931,52 @@ var ModuleConcatenationPlugin = class extends RspackBuiltinPlugin {
|
|
|
11697
11931
|
};
|
|
11698
11932
|
|
|
11699
11933
|
// src/builtin-plugin/NamedChunkIdsPlugin.ts
|
|
11700
|
-
var
|
|
11934
|
+
var import_binding51 = require("@rspack/binding");
|
|
11701
11935
|
var NamedChunkIdsPlugin = create2(
|
|
11702
|
-
|
|
11936
|
+
import_binding51.BuiltinPluginName.NamedChunkIdsPlugin,
|
|
11703
11937
|
() => {
|
|
11704
11938
|
},
|
|
11705
11939
|
"compilation"
|
|
11706
11940
|
);
|
|
11707
11941
|
|
|
11708
11942
|
// src/builtin-plugin/NamedModuleIdsPlugin.ts
|
|
11709
|
-
var
|
|
11943
|
+
var import_binding52 = require("@rspack/binding");
|
|
11710
11944
|
var NamedModuleIdsPlugin = create2(
|
|
11711
|
-
|
|
11945
|
+
import_binding52.BuiltinPluginName.NamedModuleIdsPlugin,
|
|
11712
11946
|
() => {
|
|
11713
11947
|
},
|
|
11714
11948
|
"compilation"
|
|
11715
11949
|
);
|
|
11716
11950
|
|
|
11717
11951
|
// src/builtin-plugin/NaturalChunkIdsPlugin.ts
|
|
11718
|
-
var
|
|
11952
|
+
var import_binding53 = require("@rspack/binding");
|
|
11719
11953
|
var NaturalChunkIdsPlugin = create2(
|
|
11720
|
-
|
|
11954
|
+
import_binding53.BuiltinPluginName.NaturalChunkIdsPlugin,
|
|
11721
11955
|
() => {
|
|
11722
11956
|
},
|
|
11723
11957
|
"compilation"
|
|
11724
11958
|
);
|
|
11725
11959
|
|
|
11726
11960
|
// src/builtin-plugin/NaturalModuleIdsPlugin.ts
|
|
11727
|
-
var
|
|
11961
|
+
var import_binding54 = require("@rspack/binding");
|
|
11728
11962
|
var NaturalModuleIdsPlugin = create2(
|
|
11729
|
-
|
|
11963
|
+
import_binding54.BuiltinPluginName.NaturalModuleIdsPlugin,
|
|
11730
11964
|
() => {
|
|
11731
11965
|
},
|
|
11732
11966
|
"compilation"
|
|
11733
11967
|
);
|
|
11734
11968
|
|
|
11735
11969
|
// src/builtin-plugin/NodeTargetPlugin.ts
|
|
11736
|
-
var
|
|
11970
|
+
var import_binding55 = require("@rspack/binding");
|
|
11737
11971
|
var NodeTargetPlugin = create2(
|
|
11738
|
-
|
|
11972
|
+
import_binding55.BuiltinPluginName.NodeTargetPlugin,
|
|
11739
11973
|
() => void 0
|
|
11740
11974
|
);
|
|
11741
11975
|
|
|
11742
11976
|
// src/builtin-plugin/ProgressPlugin.ts
|
|
11743
|
-
var
|
|
11977
|
+
var import_binding56 = require("@rspack/binding");
|
|
11744
11978
|
var ProgressPlugin = create2(
|
|
11745
|
-
|
|
11979
|
+
import_binding56.BuiltinPluginName.ProgressPlugin,
|
|
11746
11980
|
(progress = {}) => {
|
|
11747
11981
|
if (typeof progress === "function") {
|
|
11748
11982
|
return {
|
|
@@ -11756,9 +11990,9 @@ var ProgressPlugin = create2(
|
|
|
11756
11990
|
);
|
|
11757
11991
|
|
|
11758
11992
|
// src/builtin-plugin/ProvidePlugin.ts
|
|
11759
|
-
var
|
|
11993
|
+
var import_binding57 = require("@rspack/binding");
|
|
11760
11994
|
var ProvidePlugin = create2(
|
|
11761
|
-
|
|
11995
|
+
import_binding57.BuiltinPluginName.ProvidePlugin,
|
|
11762
11996
|
(provide) => {
|
|
11763
11997
|
const entries = Object.entries(provide).map(([key, value]) => {
|
|
11764
11998
|
if (typeof value === "string") {
|
|
@@ -11771,53 +12005,53 @@ var ProvidePlugin = create2(
|
|
|
11771
12005
|
);
|
|
11772
12006
|
|
|
11773
12007
|
// src/builtin-plugin/RealContentHashPlugin.ts
|
|
11774
|
-
var
|
|
12008
|
+
var import_binding58 = require("@rspack/binding");
|
|
11775
12009
|
var RealContentHashPlugin = create2(
|
|
11776
|
-
|
|
12010
|
+
import_binding58.BuiltinPluginName.RealContentHashPlugin,
|
|
11777
12011
|
() => {
|
|
11778
12012
|
},
|
|
11779
12013
|
"compilation"
|
|
11780
12014
|
);
|
|
11781
12015
|
|
|
11782
12016
|
// src/builtin-plugin/RemoveEmptyChunksPlugin.ts
|
|
11783
|
-
var
|
|
12017
|
+
var import_binding59 = require("@rspack/binding");
|
|
11784
12018
|
var RemoveEmptyChunksPlugin = create2(
|
|
11785
|
-
|
|
12019
|
+
import_binding59.BuiltinPluginName.RemoveEmptyChunksPlugin,
|
|
11786
12020
|
() => {
|
|
11787
12021
|
},
|
|
11788
12022
|
"compilation"
|
|
11789
12023
|
);
|
|
11790
12024
|
|
|
11791
12025
|
// src/builtin-plugin/RuntimeChunkPlugin.ts
|
|
11792
|
-
var
|
|
12026
|
+
var import_binding60 = require("@rspack/binding");
|
|
11793
12027
|
var RuntimeChunkPlugin = create2(
|
|
11794
|
-
|
|
12028
|
+
import_binding60.BuiltinPluginName.RuntimeChunkPlugin,
|
|
11795
12029
|
(options) => options,
|
|
11796
12030
|
"thisCompilation"
|
|
11797
12031
|
);
|
|
11798
12032
|
|
|
11799
12033
|
// src/builtin-plugin/RuntimePlugin.ts
|
|
11800
|
-
var
|
|
12034
|
+
var import_binding61 = require("@rspack/binding");
|
|
11801
12035
|
var RuntimePlugin = create2(
|
|
11802
|
-
|
|
12036
|
+
import_binding61.BuiltinPluginName.RuntimePlugin,
|
|
11803
12037
|
() => {
|
|
11804
12038
|
},
|
|
11805
12039
|
"compilation"
|
|
11806
12040
|
);
|
|
11807
12041
|
|
|
11808
12042
|
// src/builtin-plugin/SideEffectsFlagPlugin.ts
|
|
11809
|
-
var
|
|
12043
|
+
var import_binding62 = require("@rspack/binding");
|
|
11810
12044
|
var SideEffectsFlagPlugin = create2(
|
|
11811
|
-
|
|
12045
|
+
import_binding62.BuiltinPluginName.SideEffectsFlagPlugin,
|
|
11812
12046
|
() => {
|
|
11813
12047
|
},
|
|
11814
12048
|
"compilation"
|
|
11815
12049
|
);
|
|
11816
12050
|
|
|
11817
12051
|
// src/builtin-plugin/SizeLimitsPlugin.ts
|
|
11818
|
-
var
|
|
12052
|
+
var import_binding63 = require("@rspack/binding");
|
|
11819
12053
|
var SizeLimitsPlugin = create2(
|
|
11820
|
-
|
|
12054
|
+
import_binding63.BuiltinPluginName.SizeLimitsPlugin,
|
|
11821
12055
|
(options) => {
|
|
11822
12056
|
const hints = options.hints === false ? void 0 : options.hints;
|
|
11823
12057
|
return { ...options, hints };
|
|
@@ -11825,7 +12059,7 @@ var SizeLimitsPlugin = create2(
|
|
|
11825
12059
|
);
|
|
11826
12060
|
|
|
11827
12061
|
// src/builtin-plugin/SourceMapDevToolPlugin.ts
|
|
11828
|
-
var
|
|
12062
|
+
var import_binding64 = require("@rspack/binding");
|
|
11829
12063
|
|
|
11830
12064
|
// src/lib/ModuleFilenameHelpers.ts
|
|
11831
12065
|
var ModuleFilenameHelpers_exports = {};
|
|
@@ -11868,7 +12102,7 @@ var matchObject = (obj, str) => {
|
|
|
11868
12102
|
|
|
11869
12103
|
// src/builtin-plugin/SourceMapDevToolPlugin.ts
|
|
11870
12104
|
var SourceMapDevToolPlugin = create2(
|
|
11871
|
-
|
|
12105
|
+
import_binding64.BuiltinPluginName.SourceMapDevToolPlugin,
|
|
11872
12106
|
(options) => {
|
|
11873
12107
|
const { test, include, exclude, ...rest } = options;
|
|
11874
12108
|
const rawOptions = rest;
|
|
@@ -11882,7 +12116,7 @@ var SourceMapDevToolPlugin = create2(
|
|
|
11882
12116
|
|
|
11883
12117
|
// src/builtin-plugin/SplitChunksPlugin.ts
|
|
11884
12118
|
var import_node_assert5 = __toESM(require("assert"));
|
|
11885
|
-
var
|
|
12119
|
+
var import_binding65 = require("@rspack/binding");
|
|
11886
12120
|
|
|
11887
12121
|
// src/util/SplitChunkSize.ts
|
|
11888
12122
|
var JsSplitChunkSizes = class {
|
|
@@ -11905,7 +12139,7 @@ var SplitChunksPlugin = class extends RspackBuiltinPlugin {
|
|
|
11905
12139
|
constructor(options) {
|
|
11906
12140
|
super();
|
|
11907
12141
|
this.options = options;
|
|
11908
|
-
this.name =
|
|
12142
|
+
this.name = import_binding65.BuiltinPluginName.SplitChunksPlugin;
|
|
11909
12143
|
this.affectedHooks = "thisCompilation";
|
|
11910
12144
|
}
|
|
11911
12145
|
raw(compiler) {
|
|
@@ -12011,12 +12245,12 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
12011
12245
|
}
|
|
12012
12246
|
|
|
12013
12247
|
// src/builtin-plugin/LightningCssMinimizerRspackPlugin.ts
|
|
12014
|
-
var
|
|
12248
|
+
var import_binding66 = require("@rspack/binding");
|
|
12015
12249
|
var LightningCssMinimizerRspackPlugin = create2(
|
|
12016
|
-
|
|
12250
|
+
import_binding66.BuiltinPluginName.LightningCssMinimizerRspackPlugin,
|
|
12017
12251
|
(options) => {
|
|
12018
12252
|
var _a, _b, _c;
|
|
12019
|
-
const { include, exclude, draft, nonStandard, pseudoClasses } = (options == null ? void 0 : options.minimizerOptions) ?? {};
|
|
12253
|
+
const { include, exclude, draft, nonStandard, pseudoClasses, drafts } = (options == null ? void 0 : options.minimizerOptions) ?? {};
|
|
12020
12254
|
const targets = ((_a = options == null ? void 0 : options.minimizerOptions) == null ? void 0 : _a.targets) ?? "fully supports es6";
|
|
12021
12255
|
return {
|
|
12022
12256
|
test: options == null ? void 0 : options.test,
|
|
@@ -12030,6 +12264,7 @@ var LightningCssMinimizerRspackPlugin = create2(
|
|
|
12030
12264
|
exclude: exclude ? toFeatures(exclude) : void 0,
|
|
12031
12265
|
targets: typeof targets === "string" ? [targets] : targets,
|
|
12032
12266
|
draft: draft ? { customMedia: draft.customMedia ?? false } : void 0,
|
|
12267
|
+
drafts: drafts ? { customMedia: drafts.customMedia ?? false } : void 0,
|
|
12033
12268
|
nonStandard: nonStandard ? {
|
|
12034
12269
|
deepSelectorCombinator: nonStandard.deepSelectorCombinator ?? false
|
|
12035
12270
|
} : void 0,
|
|
@@ -12040,16 +12275,16 @@ var LightningCssMinimizerRspackPlugin = create2(
|
|
|
12040
12275
|
);
|
|
12041
12276
|
|
|
12042
12277
|
// src/builtin-plugin/RemoveDuplicateModulesPlugin.ts
|
|
12043
|
-
var
|
|
12278
|
+
var import_binding67 = require("@rspack/binding");
|
|
12044
12279
|
var RemoveDuplicateModulesPlugin = create2(
|
|
12045
|
-
|
|
12280
|
+
import_binding67.BuiltinPluginName.RemoveDuplicateModulesPlugin,
|
|
12046
12281
|
() => {
|
|
12047
12282
|
return {};
|
|
12048
12283
|
}
|
|
12049
12284
|
);
|
|
12050
12285
|
|
|
12051
12286
|
// src/builtin-plugin/SwcJsMinimizerPlugin.ts
|
|
12052
|
-
var
|
|
12287
|
+
var import_binding68 = require("@rspack/binding");
|
|
12053
12288
|
function isObject2(value) {
|
|
12054
12289
|
const type = typeof value;
|
|
12055
12290
|
return value != null && (type === "object" || type === "function");
|
|
@@ -12092,7 +12327,7 @@ function getRawExtractCommentsOptions(extractComments) {
|
|
|
12092
12327
|
return void 0;
|
|
12093
12328
|
}
|
|
12094
12329
|
var SwcJsMinimizerRspackPlugin = create2(
|
|
12095
|
-
|
|
12330
|
+
import_binding68.BuiltinPluginName.SwcJsMinimizerRspackPlugin,
|
|
12096
12331
|
(options) => {
|
|
12097
12332
|
var _a, _b, _c, _d, _e;
|
|
12098
12333
|
let compress = ((_a = options == null ? void 0 : options.minimizerOptions) == null ? void 0 : _a.compress) ?? true;
|
|
@@ -12131,23 +12366,23 @@ var SwcJsMinimizerRspackPlugin = create2(
|
|
|
12131
12366
|
);
|
|
12132
12367
|
|
|
12133
12368
|
// src/builtin-plugin/WarnCaseSensitiveModulesPlugin.ts
|
|
12134
|
-
var
|
|
12369
|
+
var import_binding69 = require("@rspack/binding");
|
|
12135
12370
|
var WarnCaseSensitiveModulesPlugin = create2(
|
|
12136
|
-
|
|
12371
|
+
import_binding69.BuiltinPluginName.WarnCaseSensitiveModulesPlugin,
|
|
12137
12372
|
() => {
|
|
12138
12373
|
},
|
|
12139
12374
|
"compilation"
|
|
12140
12375
|
);
|
|
12141
12376
|
|
|
12142
12377
|
// src/builtin-plugin/WebWorkerTemplatePlugin.ts
|
|
12143
|
-
var
|
|
12378
|
+
var import_binding70 = require("@rspack/binding");
|
|
12144
12379
|
var WebWorkerTemplatePlugin = create2(
|
|
12145
|
-
|
|
12380
|
+
import_binding70.BuiltinPluginName.WebWorkerTemplatePlugin,
|
|
12146
12381
|
() => void 0
|
|
12147
12382
|
);
|
|
12148
12383
|
|
|
12149
12384
|
// src/builtin-plugin/WorkerPlugin.ts
|
|
12150
|
-
var
|
|
12385
|
+
var import_binding71 = require("@rspack/binding");
|
|
12151
12386
|
var WorkerPlugin = class extends RspackBuiltinPlugin {
|
|
12152
12387
|
constructor(chunkLoading2, wasmLoading2, module2, workerPublicPath2) {
|
|
12153
12388
|
super();
|
|
@@ -12155,7 +12390,7 @@ var WorkerPlugin = class extends RspackBuiltinPlugin {
|
|
|
12155
12390
|
this.wasmLoading = wasmLoading2;
|
|
12156
12391
|
this.module = module2;
|
|
12157
12392
|
this.workerPublicPath = workerPublicPath2;
|
|
12158
|
-
this.name =
|
|
12393
|
+
this.name = import_binding71.BuiltinPluginName.WorkerPlugin;
|
|
12159
12394
|
}
|
|
12160
12395
|
raw(compiler) {
|
|
12161
12396
|
if (this.chunkLoading) {
|
|
@@ -12169,25 +12404,25 @@ var WorkerPlugin = class extends RspackBuiltinPlugin {
|
|
|
12169
12404
|
};
|
|
12170
12405
|
|
|
12171
12406
|
// src/builtin-plugin/FetchCompileAsyncWasmPlugin.ts
|
|
12172
|
-
var
|
|
12407
|
+
var import_binding72 = require("@rspack/binding");
|
|
12173
12408
|
var FetchCompileAsyncWasmPlugin = create2(
|
|
12174
|
-
|
|
12409
|
+
import_binding72.BuiltinPluginName.FetchCompileAsyncWasmPlugin,
|
|
12175
12410
|
() => {
|
|
12176
12411
|
},
|
|
12177
12412
|
"thisCompilation"
|
|
12178
12413
|
);
|
|
12179
12414
|
|
|
12180
12415
|
// src/builtin-plugin/NoEmitOnErrorsPlugin.ts
|
|
12181
|
-
var
|
|
12416
|
+
var import_binding73 = require("@rspack/binding");
|
|
12182
12417
|
var NoEmitOnErrorsPlugin = create2(
|
|
12183
|
-
|
|
12418
|
+
import_binding73.BuiltinPluginName.NoEmitOnErrorsPlugin,
|
|
12184
12419
|
() => void 0
|
|
12185
12420
|
);
|
|
12186
12421
|
|
|
12187
12422
|
// src/builtin-plugin/ContextReplacementPlugin.ts
|
|
12188
|
-
var
|
|
12423
|
+
var import_binding74 = require("@rspack/binding");
|
|
12189
12424
|
var ContextReplacementPlugin = create2(
|
|
12190
|
-
|
|
12425
|
+
import_binding74.BuiltinPluginName.ContextReplacementPlugin,
|
|
12191
12426
|
(resourceRegExp, newContentResource, newContentRecursive, newContentRegExp) => {
|
|
12192
12427
|
const rawOptions = {
|
|
12193
12428
|
resourceRegExp
|
|
@@ -12216,19 +12451,56 @@ var ContextReplacementPlugin = create2(
|
|
|
12216
12451
|
}
|
|
12217
12452
|
);
|
|
12218
12453
|
|
|
12219
|
-
// src/
|
|
12220
|
-
var
|
|
12221
|
-
var
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12454
|
+
// src/builtin-plugin/LibManifestPlugin.ts
|
|
12455
|
+
var import_binding75 = require("@rspack/binding");
|
|
12456
|
+
var LibManifestPlugin = create2(
|
|
12457
|
+
import_binding75.BuiltinPluginName.LibManifestPlugin,
|
|
12458
|
+
(options) => {
|
|
12459
|
+
const { context: context2, entryOnly, format: format3, name: name2, path: path10, type } = options;
|
|
12460
|
+
return {
|
|
12461
|
+
context: context2,
|
|
12462
|
+
entryOnly,
|
|
12463
|
+
format: format3,
|
|
12464
|
+
name: name2,
|
|
12465
|
+
path: path10,
|
|
12466
|
+
type
|
|
12226
12467
|
};
|
|
12227
12468
|
}
|
|
12228
|
-
|
|
12469
|
+
);
|
|
12229
12470
|
|
|
12230
|
-
// src/
|
|
12231
|
-
var
|
|
12471
|
+
// src/builtin-plugin/DllEntryPlugin.ts
|
|
12472
|
+
var import_binding76 = require("@rspack/binding");
|
|
12473
|
+
var DllEntryPlugin = create2(
|
|
12474
|
+
import_binding76.BuiltinPluginName.DllEntryPlugin,
|
|
12475
|
+
(context2, entries, options) => {
|
|
12476
|
+
return {
|
|
12477
|
+
context: context2,
|
|
12478
|
+
entries,
|
|
12479
|
+
name: options.name
|
|
12480
|
+
};
|
|
12481
|
+
}
|
|
12482
|
+
);
|
|
12483
|
+
|
|
12484
|
+
// src/builtin-plugin/DllReferenceAgencyPlugin.ts
|
|
12485
|
+
var import_binding77 = require("@rspack/binding");
|
|
12486
|
+
var DllReferenceAgencyPlugin = create2(
|
|
12487
|
+
import_binding77.BuiltinPluginName.DllReferenceAgencyPlugin,
|
|
12488
|
+
(options) => options
|
|
12489
|
+
);
|
|
12490
|
+
|
|
12491
|
+
// src/ContextModuleFactory.ts
|
|
12492
|
+
var liteTapable5 = __toESM(require("@rspack/lite-tapable"));
|
|
12493
|
+
var ContextModuleFactory = class {
|
|
12494
|
+
constructor() {
|
|
12495
|
+
this.hooks = {
|
|
12496
|
+
beforeResolve: new liteTapable5.AsyncSeriesWaterfallHook(["resolveData"]),
|
|
12497
|
+
afterResolve: new liteTapable5.AsyncSeriesWaterfallHook(["resolveData"])
|
|
12498
|
+
};
|
|
12499
|
+
}
|
|
12500
|
+
};
|
|
12501
|
+
|
|
12502
|
+
// src/FileSystem.ts
|
|
12503
|
+
var import_node_util4 = __toESM(require("util"));
|
|
12232
12504
|
|
|
12233
12505
|
// src/util/fs.ts
|
|
12234
12506
|
var import_node_assert6 = __toESM(require("assert"));
|
|
@@ -12937,6 +13209,11 @@ var Compiler = class _Compiler {
|
|
|
12937
13209
|
this.watchMode = false;
|
|
12938
13210
|
new JsLoaderRspackPlugin(this).apply(this);
|
|
12939
13211
|
new ExecuteModulePlugin().apply(this);
|
|
13212
|
+
this.hooks.shutdown.tap("rspack:cleanup", () => {
|
|
13213
|
+
if (!this.running) {
|
|
13214
|
+
this.#instance = void 0;
|
|
13215
|
+
}
|
|
13216
|
+
});
|
|
12940
13217
|
}
|
|
12941
13218
|
get recordsInputPath() {
|
|
12942
13219
|
return unsupported("Compiler.recordsInputPath");
|
|
@@ -13371,465 +13648,797 @@ var Compiler = class _Compiler {
|
|
|
13371
13648
|
this.#ruleSet.builtinReferences.entries()
|
|
13372
13649
|
);
|
|
13373
13650
|
const instanceBinding = require("@rspack/binding");
|
|
13651
|
+
const that = new WeakRef(this);
|
|
13374
13652
|
this.#registers = {
|
|
13375
13653
|
registerCompilerThisCompilationTaps: this.#createHookRegisterTaps(
|
|
13376
13654
|
binding2.RegisterJsTapKind.CompilerThisCompilation,
|
|
13377
|
-
|
|
13378
|
-
(
|
|
13379
|
-
|
|
13380
|
-
|
|
13655
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13656
|
+
function() {
|
|
13657
|
+
return that.deref().hooks.thisCompilation;
|
|
13658
|
+
},
|
|
13659
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13660
|
+
function(queried) {
|
|
13661
|
+
return function(native) {
|
|
13662
|
+
that.deref().#createCompilation(native);
|
|
13663
|
+
return queried.call(
|
|
13664
|
+
that.deref().#compilation,
|
|
13665
|
+
that.deref().#compilationParams
|
|
13666
|
+
);
|
|
13667
|
+
};
|
|
13381
13668
|
}
|
|
13382
13669
|
),
|
|
13383
13670
|
registerCompilerCompilationTaps: this.#createHookRegisterTaps(
|
|
13384
13671
|
binding2.RegisterJsTapKind.CompilerCompilation,
|
|
13385
|
-
|
|
13386
|
-
(
|
|
13672
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13673
|
+
function() {
|
|
13674
|
+
return that.deref().hooks.compilation;
|
|
13675
|
+
},
|
|
13676
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13677
|
+
function(queried) {
|
|
13678
|
+
return function() {
|
|
13679
|
+
return queried.call(
|
|
13680
|
+
that.deref().#compilation,
|
|
13681
|
+
that.deref().#compilationParams
|
|
13682
|
+
);
|
|
13683
|
+
};
|
|
13684
|
+
}
|
|
13387
13685
|
),
|
|
13388
13686
|
registerCompilerMakeTaps: this.#createHookRegisterTaps(
|
|
13389
13687
|
binding2.RegisterJsTapKind.CompilerMake,
|
|
13390
|
-
|
|
13391
|
-
(
|
|
13688
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13689
|
+
function() {
|
|
13690
|
+
return that.deref().hooks.make;
|
|
13691
|
+
},
|
|
13692
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13693
|
+
function(queried) {
|
|
13694
|
+
return async function() {
|
|
13695
|
+
return await queried.promise(that.deref().#compilation);
|
|
13696
|
+
};
|
|
13697
|
+
}
|
|
13392
13698
|
),
|
|
13393
13699
|
registerCompilerFinishMakeTaps: this.#createHookRegisterTaps(
|
|
13394
13700
|
binding2.RegisterJsTapKind.CompilerFinishMake,
|
|
13395
|
-
|
|
13396
|
-
(
|
|
13701
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13702
|
+
function() {
|
|
13703
|
+
return that.deref().hooks.finishMake;
|
|
13704
|
+
},
|
|
13705
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13706
|
+
function(queried) {
|
|
13707
|
+
return async function() {
|
|
13708
|
+
return await queried.promise(that.deref().#compilation);
|
|
13709
|
+
};
|
|
13710
|
+
}
|
|
13397
13711
|
),
|
|
13398
13712
|
registerCompilerShouldEmitTaps: this.#createHookRegisterTaps(
|
|
13399
13713
|
binding2.RegisterJsTapKind.CompilerShouldEmit,
|
|
13400
|
-
|
|
13401
|
-
(
|
|
13714
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13715
|
+
function() {
|
|
13716
|
+
return that.deref().hooks.shouldEmit;
|
|
13717
|
+
},
|
|
13718
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13719
|
+
function(queried) {
|
|
13720
|
+
return function() {
|
|
13721
|
+
return queried.call(that.deref().#compilation);
|
|
13722
|
+
};
|
|
13723
|
+
}
|
|
13402
13724
|
),
|
|
13403
13725
|
registerCompilerEmitTaps: this.#createHookRegisterTaps(
|
|
13404
13726
|
binding2.RegisterJsTapKind.CompilerEmit,
|
|
13405
|
-
|
|
13406
|
-
(
|
|
13727
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13728
|
+
function() {
|
|
13729
|
+
return that.deref().hooks.emit;
|
|
13730
|
+
},
|
|
13731
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13732
|
+
function(queried) {
|
|
13733
|
+
return async function() {
|
|
13734
|
+
return await queried.promise(that.deref().#compilation);
|
|
13735
|
+
};
|
|
13736
|
+
}
|
|
13407
13737
|
),
|
|
13408
13738
|
registerCompilerAfterEmitTaps: this.#createHookRegisterTaps(
|
|
13409
13739
|
binding2.RegisterJsTapKind.CompilerAfterEmit,
|
|
13410
|
-
|
|
13411
|
-
(
|
|
13740
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13741
|
+
function() {
|
|
13742
|
+
return that.deref().hooks.afterEmit;
|
|
13743
|
+
},
|
|
13744
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13745
|
+
function(queried) {
|
|
13746
|
+
return async function() {
|
|
13747
|
+
return await queried.promise(that.deref().#compilation);
|
|
13748
|
+
};
|
|
13749
|
+
}
|
|
13412
13750
|
),
|
|
13413
13751
|
registerCompilerAssetEmittedTaps: this.#createHookRegisterTaps(
|
|
13414
13752
|
binding2.RegisterJsTapKind.CompilerAssetEmitted,
|
|
13415
|
-
|
|
13416
|
-
(
|
|
13417
|
-
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
13421
|
-
return
|
|
13422
|
-
|
|
13753
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13754
|
+
function() {
|
|
13755
|
+
return that.deref().hooks.assetEmitted;
|
|
13756
|
+
},
|
|
13757
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13758
|
+
function(queried) {
|
|
13759
|
+
return async function({
|
|
13760
|
+
filename: filename2,
|
|
13423
13761
|
targetPath,
|
|
13424
|
-
outputPath
|
|
13425
|
-
|
|
13426
|
-
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13430
|
-
|
|
13431
|
-
|
|
13432
|
-
|
|
13433
|
-
|
|
13762
|
+
outputPath
|
|
13763
|
+
}) {
|
|
13764
|
+
return queried.promise(filename2, {
|
|
13765
|
+
compilation: that.deref().#compilation,
|
|
13766
|
+
targetPath,
|
|
13767
|
+
outputPath,
|
|
13768
|
+
get source() {
|
|
13769
|
+
var _a;
|
|
13770
|
+
return (_a = that.deref().#compilation.getAsset(filename2)) == null ? void 0 : _a.source;
|
|
13771
|
+
},
|
|
13772
|
+
get content() {
|
|
13773
|
+
var _a;
|
|
13774
|
+
return (_a = this.source) == null ? void 0 : _a.buffer();
|
|
13775
|
+
}
|
|
13776
|
+
});
|
|
13777
|
+
};
|
|
13434
13778
|
}
|
|
13435
13779
|
),
|
|
13436
13780
|
registerCompilationAdditionalTreeRuntimeRequirements: this.#createHookRegisterTaps(
|
|
13437
13781
|
binding2.RegisterJsTapKind.CompilationAdditionalTreeRuntimeRequirements,
|
|
13438
|
-
|
|
13439
|
-
(
|
|
13440
|
-
|
|
13441
|
-
|
|
13442
|
-
|
|
13443
|
-
|
|
13444
|
-
|
|
13445
|
-
|
|
13446
|
-
|
|
13447
|
-
)
|
|
13448
|
-
|
|
13449
|
-
|
|
13782
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13783
|
+
function() {
|
|
13784
|
+
return that.deref().#compilation.hooks.additionalTreeRuntimeRequirements;
|
|
13785
|
+
},
|
|
13786
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13787
|
+
function(queried) {
|
|
13788
|
+
return function({
|
|
13789
|
+
chunk,
|
|
13790
|
+
runtimeRequirements
|
|
13791
|
+
}) {
|
|
13792
|
+
const set = __from_binding_runtime_globals(runtimeRequirements);
|
|
13793
|
+
queried.call(
|
|
13794
|
+
Chunk.__from_binding(chunk, that.deref().#compilation),
|
|
13795
|
+
set
|
|
13796
|
+
);
|
|
13797
|
+
return {
|
|
13798
|
+
runtimeRequirements: __to_binding_runtime_globals(set)
|
|
13799
|
+
};
|
|
13450
13800
|
};
|
|
13451
13801
|
}
|
|
13452
13802
|
),
|
|
13453
13803
|
registerCompilationRuntimeRequirementInTree: this.#createHookMapRegisterTaps(
|
|
13454
13804
|
binding2.RegisterJsTapKind.CompilationRuntimeRequirementInTree,
|
|
13455
|
-
|
|
13456
|
-
(
|
|
13457
|
-
|
|
13458
|
-
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13462
|
-
|
|
13463
|
-
|
|
13464
|
-
}
|
|
13465
|
-
|
|
13466
|
-
|
|
13805
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13806
|
+
function() {
|
|
13807
|
+
return that.deref().#compilation.hooks.runtimeRequirementInTree;
|
|
13808
|
+
},
|
|
13809
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13810
|
+
function(queried) {
|
|
13811
|
+
return function({
|
|
13812
|
+
chunk: rawChunk,
|
|
13813
|
+
runtimeRequirements
|
|
13814
|
+
}) {
|
|
13815
|
+
const set = __from_binding_runtime_globals(runtimeRequirements);
|
|
13816
|
+
const chunk = Chunk.__from_binding(
|
|
13817
|
+
rawChunk,
|
|
13818
|
+
that.deref().#compilation
|
|
13819
|
+
);
|
|
13820
|
+
for (const r of set) {
|
|
13821
|
+
queried.for(r).call(chunk, set);
|
|
13822
|
+
}
|
|
13823
|
+
return {
|
|
13824
|
+
runtimeRequirements: __to_binding_runtime_globals(set)
|
|
13825
|
+
};
|
|
13467
13826
|
};
|
|
13468
13827
|
}
|
|
13469
13828
|
),
|
|
13470
13829
|
registerCompilationRuntimeModuleTaps: this.#createHookRegisterTaps(
|
|
13471
13830
|
binding2.RegisterJsTapKind.CompilationRuntimeModule,
|
|
13472
|
-
|
|
13473
|
-
(
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13831
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13832
|
+
function() {
|
|
13833
|
+
return that.deref().#compilation.hooks.runtimeModule;
|
|
13834
|
+
},
|
|
13835
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13836
|
+
function(queried) {
|
|
13837
|
+
return function({ module: module2, chunk }) {
|
|
13838
|
+
var _a, _b;
|
|
13839
|
+
const originSource = (_a = module2.source) == null ? void 0 : _a.source;
|
|
13840
|
+
queried.call(
|
|
13841
|
+
module2,
|
|
13842
|
+
Chunk.__from_binding(chunk, that.deref().#compilation)
|
|
13843
|
+
);
|
|
13844
|
+
const newSource = (_b = module2.source) == null ? void 0 : _b.source;
|
|
13845
|
+
if (newSource && newSource !== originSource) {
|
|
13846
|
+
return module2;
|
|
13847
|
+
}
|
|
13848
|
+
return;
|
|
13849
|
+
};
|
|
13485
13850
|
}
|
|
13486
13851
|
),
|
|
13487
13852
|
registerCompilationBuildModuleTaps: this.#createHookRegisterTaps(
|
|
13488
13853
|
binding2.RegisterJsTapKind.CompilationBuildModule,
|
|
13489
|
-
|
|
13490
|
-
(
|
|
13854
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13855
|
+
function() {
|
|
13856
|
+
return that.deref().#compilation.hooks.buildModule;
|
|
13857
|
+
},
|
|
13858
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13859
|
+
function(queried) {
|
|
13860
|
+
return function(m) {
|
|
13861
|
+
return queried.call(
|
|
13862
|
+
Module.__from_binding(m, that.deref().#compilation)
|
|
13863
|
+
);
|
|
13864
|
+
};
|
|
13865
|
+
}
|
|
13491
13866
|
),
|
|
13492
13867
|
registerCompilationStillValidModuleTaps: this.#createHookRegisterTaps(
|
|
13493
13868
|
binding2.RegisterJsTapKind.CompilationStillValidModule,
|
|
13494
|
-
|
|
13495
|
-
(
|
|
13869
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13870
|
+
function() {
|
|
13871
|
+
return that.deref().#compilation.hooks.stillValidModule;
|
|
13872
|
+
},
|
|
13873
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13874
|
+
function(queried) {
|
|
13875
|
+
return function(m) {
|
|
13876
|
+
return queried.call(
|
|
13877
|
+
Module.__from_binding(m, that.deref().#compilation)
|
|
13878
|
+
);
|
|
13879
|
+
};
|
|
13880
|
+
}
|
|
13496
13881
|
),
|
|
13497
13882
|
registerCompilationSucceedModuleTaps: this.#createHookRegisterTaps(
|
|
13498
13883
|
binding2.RegisterJsTapKind.CompilationSucceedModule,
|
|
13499
|
-
|
|
13500
|
-
(
|
|
13884
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13885
|
+
function() {
|
|
13886
|
+
return that.deref().#compilation.hooks.succeedModule;
|
|
13887
|
+
},
|
|
13888
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13889
|
+
function(queried) {
|
|
13890
|
+
return function(m) {
|
|
13891
|
+
return queried.call(
|
|
13892
|
+
Module.__from_binding(m, that.deref().#compilation)
|
|
13893
|
+
);
|
|
13894
|
+
};
|
|
13895
|
+
}
|
|
13501
13896
|
),
|
|
13502
13897
|
registerCompilationExecuteModuleTaps: this.#createHookRegisterTaps(
|
|
13503
13898
|
binding2.RegisterJsTapKind.CompilationExecuteModule,
|
|
13504
|
-
|
|
13505
|
-
(
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13512
|
-
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13899
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13900
|
+
function() {
|
|
13901
|
+
return that.deref().#compilation.hooks.executeModule;
|
|
13902
|
+
},
|
|
13903
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13904
|
+
function(queried) {
|
|
13905
|
+
return function({
|
|
13906
|
+
entry: entry2,
|
|
13907
|
+
id,
|
|
13908
|
+
codegenResults,
|
|
13909
|
+
runtimeModules
|
|
13910
|
+
}) {
|
|
13911
|
+
const __webpack_require__ = (id2) => {
|
|
13912
|
+
const cached = moduleCache[id2];
|
|
13913
|
+
if (cached !== void 0) {
|
|
13914
|
+
if (cached.error) throw cached.error;
|
|
13915
|
+
return cached.exports;
|
|
13916
|
+
}
|
|
13917
|
+
const execOptions = {
|
|
13520
13918
|
id: id2,
|
|
13521
|
-
|
|
13522
|
-
|
|
13523
|
-
|
|
13524
|
-
|
|
13525
|
-
|
|
13919
|
+
module: {
|
|
13920
|
+
id: id2,
|
|
13921
|
+
exports: {},
|
|
13922
|
+
loaded: false,
|
|
13923
|
+
error: void 0
|
|
13924
|
+
},
|
|
13925
|
+
require: __webpack_require__
|
|
13926
|
+
};
|
|
13927
|
+
for (const handler of interceptModuleExecution) {
|
|
13928
|
+
handler(execOptions);
|
|
13929
|
+
}
|
|
13930
|
+
const result2 = codegenResults.map[id2]["build time"];
|
|
13931
|
+
const moduleObject = execOptions.module;
|
|
13932
|
+
if (id2) moduleCache[id2] = moduleObject;
|
|
13933
|
+
tryRunOrWebpackError(
|
|
13934
|
+
() => queried.call(
|
|
13935
|
+
{
|
|
13936
|
+
codeGenerationResult: new CodeGenerationResult(result2),
|
|
13937
|
+
moduleObject
|
|
13938
|
+
},
|
|
13939
|
+
{ __webpack_require__ }
|
|
13940
|
+
),
|
|
13941
|
+
"Compilation.hooks.executeModule"
|
|
13942
|
+
);
|
|
13943
|
+
moduleObject.loaded = true;
|
|
13944
|
+
return moduleObject.exports;
|
|
13526
13945
|
};
|
|
13527
|
-
|
|
13528
|
-
|
|
13946
|
+
const moduleCache = __webpack_require__[RuntimeGlobals.moduleCache.replace(
|
|
13947
|
+
`${RuntimeGlobals.require}.`,
|
|
13948
|
+
""
|
|
13949
|
+
)] = {};
|
|
13950
|
+
const interceptModuleExecution = __webpack_require__[RuntimeGlobals.interceptModuleExecution.replace(
|
|
13951
|
+
`${RuntimeGlobals.require}.`,
|
|
13952
|
+
""
|
|
13953
|
+
)] = [];
|
|
13954
|
+
for (const runtimeModule of runtimeModules) {
|
|
13955
|
+
__webpack_require__(runtimeModule);
|
|
13529
13956
|
}
|
|
13530
|
-
const
|
|
13531
|
-
|
|
13532
|
-
if (id2) moduleCache[id2] = moduleObject;
|
|
13533
|
-
tryRunOrWebpackError(
|
|
13534
|
-
() => queried.call(
|
|
13535
|
-
{
|
|
13536
|
-
codeGenerationResult: new CodeGenerationResult(result2),
|
|
13537
|
-
moduleObject
|
|
13538
|
-
},
|
|
13539
|
-
{ __webpack_require__ }
|
|
13540
|
-
),
|
|
13541
|
-
"Compilation.hooks.executeModule"
|
|
13542
|
-
);
|
|
13543
|
-
moduleObject.loaded = true;
|
|
13544
|
-
return moduleObject.exports;
|
|
13957
|
+
const executeResult = __webpack_require__(entry2);
|
|
13958
|
+
that.deref().#moduleExecutionResultsMap.set(id, executeResult);
|
|
13545
13959
|
};
|
|
13546
|
-
const moduleCache = __webpack_require__[RuntimeGlobals.moduleCache.replace(
|
|
13547
|
-
`${RuntimeGlobals.require}.`,
|
|
13548
|
-
""
|
|
13549
|
-
)] = {};
|
|
13550
|
-
const interceptModuleExecution = __webpack_require__[RuntimeGlobals.interceptModuleExecution.replace(
|
|
13551
|
-
`${RuntimeGlobals.require}.`,
|
|
13552
|
-
""
|
|
13553
|
-
)] = [];
|
|
13554
|
-
for (const runtimeModule of runtimeModules) {
|
|
13555
|
-
__webpack_require__(runtimeModule);
|
|
13556
|
-
}
|
|
13557
|
-
const executeResult = __webpack_require__(entry2);
|
|
13558
|
-
this.#moduleExecutionResultsMap.set(id, executeResult);
|
|
13559
13960
|
}
|
|
13560
13961
|
),
|
|
13561
13962
|
registerCompilationFinishModulesTaps: this.#createHookRegisterTaps(
|
|
13562
13963
|
binding2.RegisterJsTapKind.CompilationFinishModules,
|
|
13563
|
-
|
|
13564
|
-
(
|
|
13964
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13965
|
+
function() {
|
|
13966
|
+
return that.deref().#compilation.hooks.finishModules;
|
|
13967
|
+
},
|
|
13968
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13969
|
+
function(queried) {
|
|
13970
|
+
return async function() {
|
|
13971
|
+
return await queried.promise(that.deref().#compilation.modules);
|
|
13972
|
+
};
|
|
13973
|
+
}
|
|
13565
13974
|
),
|
|
13566
13975
|
registerCompilationOptimizeModulesTaps: this.#createHookRegisterTaps(
|
|
13567
13976
|
binding2.RegisterJsTapKind.CompilationOptimizeModules,
|
|
13568
|
-
|
|
13569
|
-
(
|
|
13977
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13978
|
+
function() {
|
|
13979
|
+
return that.deref().#compilation.hooks.optimizeModules;
|
|
13980
|
+
},
|
|
13981
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13982
|
+
function(queried) {
|
|
13983
|
+
return function() {
|
|
13984
|
+
return queried.call(that.deref().#compilation.modules.values());
|
|
13985
|
+
};
|
|
13986
|
+
}
|
|
13570
13987
|
),
|
|
13571
13988
|
registerCompilationAfterOptimizeModulesTaps: this.#createHookRegisterTaps(
|
|
13572
13989
|
binding2.RegisterJsTapKind.CompilationAfterOptimizeModules,
|
|
13573
|
-
|
|
13574
|
-
(
|
|
13575
|
-
|
|
13990
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13991
|
+
function() {
|
|
13992
|
+
return that.deref().#compilation.hooks.afterOptimizeModules;
|
|
13993
|
+
},
|
|
13994
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13995
|
+
function(queried) {
|
|
13996
|
+
return function() {
|
|
13997
|
+
queried.call(that.deref().#compilation.modules.values());
|
|
13998
|
+
};
|
|
13576
13999
|
}
|
|
13577
14000
|
),
|
|
13578
14001
|
registerCompilationOptimizeTreeTaps: this.#createHookRegisterTaps(
|
|
13579
14002
|
binding2.RegisterJsTapKind.CompilationOptimizeTree,
|
|
13580
|
-
|
|
13581
|
-
(
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
14003
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14004
|
+
function() {
|
|
14005
|
+
return that.deref().#compilation.hooks.optimizeTree;
|
|
14006
|
+
},
|
|
14007
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14008
|
+
function(queried) {
|
|
14009
|
+
return async function() {
|
|
14010
|
+
return await queried.promise(
|
|
14011
|
+
that.deref().#compilation.chunks,
|
|
14012
|
+
that.deref().#compilation.modules
|
|
14013
|
+
);
|
|
14014
|
+
};
|
|
14015
|
+
}
|
|
13585
14016
|
),
|
|
13586
14017
|
registerCompilationOptimizeChunkModulesTaps: this.#createHookRegisterTaps(
|
|
13587
14018
|
binding2.RegisterJsTapKind.CompilationOptimizeChunkModules,
|
|
13588
|
-
|
|
13589
|
-
(
|
|
13590
|
-
|
|
13591
|
-
|
|
13592
|
-
|
|
14019
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14020
|
+
function() {
|
|
14021
|
+
return that.deref().#compilation.hooks.optimizeChunkModules;
|
|
14022
|
+
},
|
|
14023
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14024
|
+
function(queried) {
|
|
14025
|
+
return async function() {
|
|
14026
|
+
return await queried.promise(
|
|
14027
|
+
that.deref().#compilation.chunks,
|
|
14028
|
+
that.deref().#compilation.modules
|
|
14029
|
+
);
|
|
14030
|
+
};
|
|
14031
|
+
}
|
|
13593
14032
|
),
|
|
13594
14033
|
registerCompilationChunkHashTaps: this.#createHookRegisterTaps(
|
|
13595
14034
|
binding2.RegisterJsTapKind.CompilationChunkHash,
|
|
13596
|
-
|
|
13597
|
-
(
|
|
13598
|
-
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
|
|
14035
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14036
|
+
function() {
|
|
14037
|
+
return that.deref().#compilation.hooks.chunkHash;
|
|
14038
|
+
},
|
|
14039
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14040
|
+
function(queried) {
|
|
14041
|
+
return function(chunk) {
|
|
14042
|
+
if (!that.deref().options.output.hashFunction) {
|
|
14043
|
+
throw new Error("'output.hashFunction' cannot be undefined");
|
|
14044
|
+
}
|
|
14045
|
+
const hash = createHash(that.deref().options.output.hashFunction);
|
|
14046
|
+
queried.call(
|
|
14047
|
+
Chunk.__from_binding(chunk, that.deref().#compilation),
|
|
14048
|
+
hash
|
|
14049
|
+
);
|
|
14050
|
+
const digestResult = hash.digest(
|
|
14051
|
+
that.deref().options.output.hashDigest
|
|
14052
|
+
);
|
|
14053
|
+
return Buffer.from(digestResult);
|
|
14054
|
+
};
|
|
13605
14055
|
}
|
|
13606
14056
|
),
|
|
13607
14057
|
registerCompilationChunkAssetTaps: this.#createHookRegisterTaps(
|
|
13608
14058
|
binding2.RegisterJsTapKind.CompilationChunkAsset,
|
|
13609
|
-
|
|
13610
|
-
(
|
|
13611
|
-
|
|
13612
|
-
|
|
13613
|
-
|
|
14059
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14060
|
+
function() {
|
|
14061
|
+
return that.deref().#compilation.hooks.chunkAsset;
|
|
14062
|
+
},
|
|
14063
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14064
|
+
function(queried) {
|
|
14065
|
+
return function({ chunk, filename: filename2 }) {
|
|
14066
|
+
return queried.call(
|
|
14067
|
+
Chunk.__from_binding(chunk, that.deref().#compilation),
|
|
14068
|
+
filename2
|
|
14069
|
+
);
|
|
14070
|
+
};
|
|
14071
|
+
}
|
|
13614
14072
|
),
|
|
13615
14073
|
registerCompilationProcessAssetsTaps: this.#createHookRegisterTaps(
|
|
13616
14074
|
binding2.RegisterJsTapKind.CompilationProcessAssets,
|
|
13617
|
-
|
|
13618
|
-
(
|
|
14075
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14076
|
+
function() {
|
|
14077
|
+
return that.deref().#compilation.hooks.processAssets;
|
|
14078
|
+
},
|
|
14079
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14080
|
+
function(queried) {
|
|
14081
|
+
return async function() {
|
|
14082
|
+
return await queried.promise(that.deref().#compilation.assets);
|
|
14083
|
+
};
|
|
14084
|
+
}
|
|
13619
14085
|
),
|
|
13620
14086
|
registerCompilationAfterProcessAssetsTaps: this.#createHookRegisterTaps(
|
|
13621
14087
|
binding2.RegisterJsTapKind.CompilationAfterProcessAssets,
|
|
13622
|
-
|
|
13623
|
-
(
|
|
14088
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14089
|
+
function() {
|
|
14090
|
+
return that.deref().#compilation.hooks.afterProcessAssets;
|
|
14091
|
+
},
|
|
14092
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14093
|
+
function(queried) {
|
|
14094
|
+
return function() {
|
|
14095
|
+
return queried.call(that.deref().#compilation.assets);
|
|
14096
|
+
};
|
|
14097
|
+
}
|
|
13624
14098
|
),
|
|
13625
14099
|
registerCompilationSealTaps: this.#createHookRegisterTaps(
|
|
13626
14100
|
binding2.RegisterJsTapKind.CompilationSeal,
|
|
13627
|
-
|
|
13628
|
-
(
|
|
14101
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14102
|
+
function() {
|
|
14103
|
+
return that.deref().#compilation.hooks.seal;
|
|
14104
|
+
},
|
|
14105
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14106
|
+
function(queried) {
|
|
14107
|
+
return function() {
|
|
14108
|
+
return queried.call();
|
|
14109
|
+
};
|
|
14110
|
+
}
|
|
13629
14111
|
),
|
|
13630
14112
|
registerCompilationAfterSealTaps: this.#createHookRegisterTaps(
|
|
13631
14113
|
binding2.RegisterJsTapKind.CompilationAfterSeal,
|
|
13632
|
-
|
|
13633
|
-
(
|
|
14114
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14115
|
+
function() {
|
|
14116
|
+
return that.deref().#compilation.hooks.afterSeal;
|
|
14117
|
+
},
|
|
14118
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14119
|
+
function(queried) {
|
|
14120
|
+
return async function() {
|
|
14121
|
+
return await queried.promise();
|
|
14122
|
+
};
|
|
14123
|
+
}
|
|
13634
14124
|
),
|
|
13635
14125
|
registerNormalModuleFactoryBeforeResolveTaps: this.#createHookRegisterTaps(
|
|
13636
14126
|
binding2.RegisterJsTapKind.NormalModuleFactoryBeforeResolve,
|
|
13637
|
-
|
|
13638
|
-
(
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
14127
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14128
|
+
function() {
|
|
14129
|
+
return that.deref().#compilationParams.normalModuleFactory.hooks.beforeResolve;
|
|
14130
|
+
},
|
|
14131
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14132
|
+
function(queried) {
|
|
14133
|
+
return async function(resolveData) {
|
|
14134
|
+
const normalizedResolveData = {
|
|
14135
|
+
contextInfo: {
|
|
14136
|
+
issuer: resolveData.issuer
|
|
14137
|
+
},
|
|
14138
|
+
request: resolveData.request,
|
|
14139
|
+
context: resolveData.context,
|
|
14140
|
+
fileDependencies: [],
|
|
14141
|
+
missingDependencies: [],
|
|
14142
|
+
contextDependencies: []
|
|
14143
|
+
};
|
|
14144
|
+
const ret = await queried.promise(normalizedResolveData);
|
|
14145
|
+
resolveData.request = normalizedResolveData.request;
|
|
14146
|
+
resolveData.context = normalizedResolveData.context;
|
|
14147
|
+
return [ret, resolveData];
|
|
13648
14148
|
};
|
|
13649
|
-
const ret = await queried.promise(normalizedResolveData);
|
|
13650
|
-
resolveData.request = normalizedResolveData.request;
|
|
13651
|
-
resolveData.context = normalizedResolveData.context;
|
|
13652
|
-
return [ret, resolveData];
|
|
13653
14149
|
}
|
|
13654
14150
|
),
|
|
13655
14151
|
registerNormalModuleFactoryFactorizeTaps: this.#createHookRegisterTaps(
|
|
13656
14152
|
binding2.RegisterJsTapKind.NormalModuleFactoryFactorize,
|
|
13657
|
-
|
|
13658
|
-
(
|
|
13659
|
-
|
|
13660
|
-
|
|
13661
|
-
|
|
13662
|
-
|
|
13663
|
-
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
14153
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14154
|
+
function() {
|
|
14155
|
+
return that.deref().#compilationParams.normalModuleFactory.hooks.factorize;
|
|
14156
|
+
},
|
|
14157
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14158
|
+
function(queried) {
|
|
14159
|
+
return async function(resolveData) {
|
|
14160
|
+
const normalizedResolveData = {
|
|
14161
|
+
contextInfo: {
|
|
14162
|
+
issuer: resolveData.issuer
|
|
14163
|
+
},
|
|
14164
|
+
request: resolveData.request,
|
|
14165
|
+
context: resolveData.context,
|
|
14166
|
+
fileDependencies: [],
|
|
14167
|
+
missingDependencies: [],
|
|
14168
|
+
contextDependencies: []
|
|
14169
|
+
};
|
|
14170
|
+
await queried.promise(normalizedResolveData);
|
|
14171
|
+
resolveData.request = normalizedResolveData.request;
|
|
14172
|
+
resolveData.context = normalizedResolveData.context;
|
|
14173
|
+
return resolveData;
|
|
13668
14174
|
};
|
|
13669
|
-
await queried.promise(normalizedResolveData);
|
|
13670
|
-
resolveData.request = normalizedResolveData.request;
|
|
13671
|
-
resolveData.context = normalizedResolveData.context;
|
|
13672
|
-
return resolveData;
|
|
13673
14175
|
}
|
|
13674
14176
|
),
|
|
13675
14177
|
registerNormalModuleFactoryResolveTaps: this.#createHookRegisterTaps(
|
|
13676
14178
|
binding2.RegisterJsTapKind.NormalModuleFactoryResolve,
|
|
13677
|
-
|
|
13678
|
-
(
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
|
|
13686
|
-
|
|
13687
|
-
|
|
14179
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14180
|
+
function() {
|
|
14181
|
+
return that.deref().#compilationParams.normalModuleFactory.hooks.resolve;
|
|
14182
|
+
},
|
|
14183
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14184
|
+
function(queried) {
|
|
14185
|
+
return async function(resolveData) {
|
|
14186
|
+
const normalizedResolveData = {
|
|
14187
|
+
contextInfo: {
|
|
14188
|
+
issuer: resolveData.issuer
|
|
14189
|
+
},
|
|
14190
|
+
request: resolveData.request,
|
|
14191
|
+
context: resolveData.context,
|
|
14192
|
+
fileDependencies: [],
|
|
14193
|
+
missingDependencies: [],
|
|
14194
|
+
contextDependencies: []
|
|
14195
|
+
};
|
|
14196
|
+
await queried.promise(normalizedResolveData);
|
|
14197
|
+
resolveData.request = normalizedResolveData.request;
|
|
14198
|
+
resolveData.context = normalizedResolveData.context;
|
|
14199
|
+
return resolveData;
|
|
13688
14200
|
};
|
|
13689
|
-
await queried.promise(normalizedResolveData);
|
|
13690
|
-
resolveData.request = normalizedResolveData.request;
|
|
13691
|
-
resolveData.context = normalizedResolveData.context;
|
|
13692
|
-
return resolveData;
|
|
13693
14201
|
}
|
|
13694
14202
|
),
|
|
13695
14203
|
registerNormalModuleFactoryResolveForSchemeTaps: this.#createHookMapRegisterTaps(
|
|
13696
14204
|
binding2.RegisterJsTapKind.NormalModuleFactoryResolveForScheme,
|
|
13697
|
-
|
|
13698
|
-
(
|
|
13699
|
-
|
|
13700
|
-
|
|
14205
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14206
|
+
function() {
|
|
14207
|
+
return that.deref().#compilationParams.normalModuleFactory.hooks.resolveForScheme;
|
|
14208
|
+
},
|
|
14209
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14210
|
+
function(queried) {
|
|
14211
|
+
return async function(args) {
|
|
14212
|
+
const ret = await queried.for(args.scheme).promise(args.resourceData);
|
|
14213
|
+
return [ret, args.resourceData];
|
|
14214
|
+
};
|
|
13701
14215
|
}
|
|
13702
14216
|
),
|
|
13703
14217
|
registerNormalModuleFactoryAfterResolveTaps: this.#createHookRegisterTaps(
|
|
13704
14218
|
binding2.RegisterJsTapKind.NormalModuleFactoryAfterResolve,
|
|
13705
|
-
|
|
13706
|
-
(
|
|
13707
|
-
|
|
13708
|
-
|
|
13709
|
-
|
|
13710
|
-
|
|
13711
|
-
|
|
13712
|
-
|
|
13713
|
-
|
|
13714
|
-
|
|
13715
|
-
|
|
13716
|
-
|
|
14219
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14220
|
+
function() {
|
|
14221
|
+
return that.deref().#compilationParams.normalModuleFactory.hooks.afterResolve;
|
|
14222
|
+
},
|
|
14223
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14224
|
+
function(queried) {
|
|
14225
|
+
return async function(arg) {
|
|
14226
|
+
const data = {
|
|
14227
|
+
contextInfo: {
|
|
14228
|
+
issuer: arg.issuer
|
|
14229
|
+
},
|
|
14230
|
+
request: arg.request,
|
|
14231
|
+
context: arg.context,
|
|
14232
|
+
fileDependencies: arg.fileDependencies,
|
|
14233
|
+
missingDependencies: arg.missingDependencies,
|
|
14234
|
+
contextDependencies: arg.contextDependencies,
|
|
14235
|
+
createData: arg.createData
|
|
14236
|
+
};
|
|
14237
|
+
const ret = await queried.promise(data);
|
|
14238
|
+
return [ret, data.createData];
|
|
13717
14239
|
};
|
|
13718
|
-
const ret = await queried.promise(data);
|
|
13719
|
-
return [ret, data.createData];
|
|
13720
14240
|
}
|
|
13721
14241
|
),
|
|
13722
14242
|
registerNormalModuleFactoryCreateModuleTaps: this.#createHookRegisterTaps(
|
|
13723
14243
|
binding2.RegisterJsTapKind.NormalModuleFactoryCreateModule,
|
|
13724
|
-
|
|
13725
|
-
(
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
|
|
14244
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14245
|
+
function() {
|
|
14246
|
+
return that.deref().#compilationParams.normalModuleFactory.hooks.createModule;
|
|
14247
|
+
},
|
|
14248
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14249
|
+
function(queried) {
|
|
14250
|
+
return async function(args) {
|
|
14251
|
+
const data = {
|
|
14252
|
+
...args,
|
|
14253
|
+
settings: {}
|
|
14254
|
+
};
|
|
14255
|
+
await queried.promise(data, {});
|
|
13729
14256
|
};
|
|
13730
|
-
await queried.promise(data, {});
|
|
13731
14257
|
}
|
|
13732
14258
|
),
|
|
13733
14259
|
registerContextModuleFactoryBeforeResolveTaps: this.#createHookRegisterTaps(
|
|
13734
14260
|
binding2.RegisterJsTapKind.ContextModuleFactoryBeforeResolve,
|
|
13735
|
-
|
|
13736
|
-
(
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
return
|
|
14261
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14262
|
+
function() {
|
|
14263
|
+
return that.deref().#compilationParams.contextModuleFactory.hooks.beforeResolve;
|
|
14264
|
+
},
|
|
14265
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14266
|
+
function(queried) {
|
|
14267
|
+
return async function(bindingData) {
|
|
14268
|
+
const data = bindingData ? ContextModuleFactoryBeforeResolveData.__from_binding(
|
|
14269
|
+
bindingData
|
|
14270
|
+
) : false;
|
|
14271
|
+
const result2 = await queried.promise(data);
|
|
14272
|
+
return result2 ? ContextModuleFactoryBeforeResolveData.__to_binding(result2) : false;
|
|
14273
|
+
};
|
|
13742
14274
|
}
|
|
13743
14275
|
),
|
|
13744
14276
|
registerContextModuleFactoryAfterResolveTaps: this.#createHookRegisterTaps(
|
|
13745
14277
|
binding2.RegisterJsTapKind.ContextModuleFactoryAfterResolve,
|
|
13746
|
-
|
|
13747
|
-
(
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
return
|
|
14278
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14279
|
+
function() {
|
|
14280
|
+
return that.deref().#compilationParams.contextModuleFactory.hooks.afterResolve;
|
|
14281
|
+
},
|
|
14282
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14283
|
+
function(queried) {
|
|
14284
|
+
return async function(bindingData) {
|
|
14285
|
+
const data = bindingData ? ContextModuleFactoryAfterResolveData.__from_binding(
|
|
14286
|
+
bindingData
|
|
14287
|
+
) : false;
|
|
14288
|
+
const result2 = await queried.promise(data);
|
|
14289
|
+
return result2 ? ContextModuleFactoryAfterResolveData.__to_binding(result2) : false;
|
|
14290
|
+
};
|
|
13753
14291
|
}
|
|
13754
14292
|
),
|
|
13755
14293
|
registerJavascriptModulesChunkHashTaps: this.#createHookRegisterTaps(
|
|
13756
14294
|
binding2.RegisterJsTapKind.JavascriptModulesChunkHash,
|
|
13757
|
-
|
|
13758
|
-
(
|
|
13759
|
-
|
|
13760
|
-
|
|
13761
|
-
|
|
13762
|
-
|
|
13763
|
-
|
|
13764
|
-
|
|
13765
|
-
return
|
|
14295
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14296
|
+
function() {
|
|
14297
|
+
return JavascriptModulesPlugin.getCompilationHooks(
|
|
14298
|
+
that.deref().#compilation
|
|
14299
|
+
).chunkHash;
|
|
14300
|
+
},
|
|
14301
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14302
|
+
function(queried) {
|
|
14303
|
+
return function(chunk) {
|
|
14304
|
+
if (!that.deref().options.output.hashFunction) {
|
|
14305
|
+
throw new Error("'output.hashFunction' cannot be undefined");
|
|
14306
|
+
}
|
|
14307
|
+
const hash = createHash(that.deref().options.output.hashFunction);
|
|
14308
|
+
queried.call(
|
|
14309
|
+
Chunk.__from_binding(chunk, that.deref().#compilation),
|
|
14310
|
+
hash
|
|
14311
|
+
);
|
|
14312
|
+
const digestResult = hash.digest(
|
|
14313
|
+
that.deref().options.output.hashDigest
|
|
14314
|
+
);
|
|
14315
|
+
return Buffer.from(digestResult);
|
|
14316
|
+
};
|
|
13766
14317
|
}
|
|
13767
14318
|
),
|
|
13768
14319
|
registerHtmlPluginBeforeAssetTagGenerationTaps: this.#createHookRegisterTaps(
|
|
13769
14320
|
binding2.RegisterJsTapKind.HtmlPluginBeforeAssetTagGeneration,
|
|
13770
|
-
|
|
13771
|
-
(
|
|
13772
|
-
return
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
|
|
13776
|
-
|
|
13777
|
-
|
|
14321
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14322
|
+
function() {
|
|
14323
|
+
return HtmlRspackPlugin.getCompilationHooks(
|
|
14324
|
+
that.deref().#compilation
|
|
14325
|
+
).beforeAssetTagGeneration;
|
|
14326
|
+
},
|
|
14327
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14328
|
+
function(queried) {
|
|
14329
|
+
return async function(data) {
|
|
14330
|
+
return await queried.promise({
|
|
14331
|
+
...data,
|
|
14332
|
+
plugin: {
|
|
14333
|
+
options: HtmlRspackPlugin.getCompilationOptions(
|
|
14334
|
+
that.deref().#compilation
|
|
14335
|
+
) || {}
|
|
14336
|
+
}
|
|
14337
|
+
});
|
|
14338
|
+
};
|
|
13778
14339
|
}
|
|
13779
14340
|
),
|
|
13780
14341
|
registerHtmlPluginAlterAssetTagsTaps: this.#createHookRegisterTaps(
|
|
13781
14342
|
binding2.RegisterJsTapKind.HtmlPluginAlterAssetTags,
|
|
13782
|
-
|
|
13783
|
-
(
|
|
13784
|
-
return
|
|
14343
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14344
|
+
function() {
|
|
14345
|
+
return HtmlRspackPlugin.getCompilationHooks(
|
|
14346
|
+
that.deref().#compilation
|
|
14347
|
+
).alterAssetTags;
|
|
14348
|
+
},
|
|
14349
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14350
|
+
function(queried) {
|
|
14351
|
+
return async function(data) {
|
|
14352
|
+
return await queried.promise(data);
|
|
14353
|
+
};
|
|
13785
14354
|
}
|
|
13786
14355
|
),
|
|
13787
14356
|
registerHtmlPluginAlterAssetTagGroupsTaps: this.#createHookRegisterTaps(
|
|
13788
14357
|
binding2.RegisterJsTapKind.HtmlPluginAlterAssetTagGroups,
|
|
13789
|
-
|
|
13790
|
-
(
|
|
13791
|
-
return
|
|
13792
|
-
|
|
13793
|
-
|
|
13794
|
-
|
|
13795
|
-
|
|
13796
|
-
|
|
14358
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14359
|
+
function() {
|
|
14360
|
+
return HtmlRspackPlugin.getCompilationHooks(
|
|
14361
|
+
that.deref().#compilation
|
|
14362
|
+
).alterAssetTagGroups;
|
|
14363
|
+
},
|
|
14364
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14365
|
+
function(queried) {
|
|
14366
|
+
return async function(data) {
|
|
14367
|
+
return await queried.promise({
|
|
14368
|
+
...data,
|
|
14369
|
+
plugin: {
|
|
14370
|
+
options: HtmlRspackPlugin.getCompilationOptions(
|
|
14371
|
+
that.deref().#compilation
|
|
14372
|
+
) || {}
|
|
14373
|
+
}
|
|
14374
|
+
});
|
|
14375
|
+
};
|
|
13797
14376
|
}
|
|
13798
14377
|
),
|
|
13799
14378
|
registerHtmlPluginAfterTemplateExecutionTaps: this.#createHookRegisterTaps(
|
|
13800
14379
|
binding2.RegisterJsTapKind.HtmlPluginAfterTemplateExecution,
|
|
13801
|
-
|
|
13802
|
-
(
|
|
13803
|
-
return
|
|
13804
|
-
|
|
13805
|
-
|
|
13806
|
-
|
|
13807
|
-
|
|
13808
|
-
|
|
14380
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14381
|
+
function() {
|
|
14382
|
+
return HtmlRspackPlugin.getCompilationHooks(
|
|
14383
|
+
that.deref().#compilation
|
|
14384
|
+
).afterTemplateExecution;
|
|
14385
|
+
},
|
|
14386
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14387
|
+
function(queried) {
|
|
14388
|
+
return async function(data) {
|
|
14389
|
+
return await queried.promise({
|
|
14390
|
+
...data,
|
|
14391
|
+
plugin: {
|
|
14392
|
+
options: HtmlRspackPlugin.getCompilationOptions(
|
|
14393
|
+
that.deref().#compilation
|
|
14394
|
+
) || {}
|
|
14395
|
+
}
|
|
14396
|
+
});
|
|
14397
|
+
};
|
|
13809
14398
|
}
|
|
13810
14399
|
),
|
|
13811
14400
|
registerHtmlPluginBeforeEmitTaps: this.#createHookRegisterTaps(
|
|
13812
14401
|
binding2.RegisterJsTapKind.HtmlPluginBeforeEmit,
|
|
13813
|
-
|
|
13814
|
-
(
|
|
13815
|
-
return
|
|
13816
|
-
|
|
13817
|
-
|
|
13818
|
-
|
|
13819
|
-
|
|
13820
|
-
|
|
14402
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14403
|
+
function() {
|
|
14404
|
+
return HtmlRspackPlugin.getCompilationHooks(
|
|
14405
|
+
that.deref().#compilation
|
|
14406
|
+
).beforeEmit;
|
|
14407
|
+
},
|
|
14408
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14409
|
+
function(queried) {
|
|
14410
|
+
return async function(data) {
|
|
14411
|
+
return await queried.promise({
|
|
14412
|
+
...data,
|
|
14413
|
+
plugin: {
|
|
14414
|
+
options: HtmlRspackPlugin.getCompilationOptions(
|
|
14415
|
+
that.deref().#compilation
|
|
14416
|
+
) || {}
|
|
14417
|
+
}
|
|
14418
|
+
});
|
|
14419
|
+
};
|
|
13821
14420
|
}
|
|
13822
14421
|
),
|
|
13823
14422
|
registerHtmlPluginAfterEmitTaps: this.#createHookRegisterTaps(
|
|
13824
14423
|
binding2.RegisterJsTapKind.HtmlPluginAfterEmit,
|
|
13825
|
-
|
|
13826
|
-
(
|
|
13827
|
-
return
|
|
13828
|
-
|
|
13829
|
-
|
|
13830
|
-
|
|
13831
|
-
|
|
13832
|
-
|
|
14424
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14425
|
+
function() {
|
|
14426
|
+
return HtmlRspackPlugin.getCompilationHooks(
|
|
14427
|
+
that.deref().#compilation
|
|
14428
|
+
).afterEmit;
|
|
14429
|
+
},
|
|
14430
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14431
|
+
function(queried) {
|
|
14432
|
+
return async function(data) {
|
|
14433
|
+
return await queried.promise({
|
|
14434
|
+
...data,
|
|
14435
|
+
plugin: {
|
|
14436
|
+
options: HtmlRspackPlugin.getCompilationOptions(
|
|
14437
|
+
that.deref().#compilation
|
|
14438
|
+
) || {}
|
|
14439
|
+
}
|
|
14440
|
+
});
|
|
14441
|
+
};
|
|
13833
14442
|
}
|
|
13834
14443
|
)
|
|
13835
14444
|
};
|
|
@@ -13878,7 +14487,9 @@ var Compiler = class _Compiler {
|
|
|
13878
14487
|
}
|
|
13879
14488
|
}
|
|
13880
14489
|
#createHookRegisterTaps(registerKind, getHook, createTap) {
|
|
14490
|
+
const that = new WeakRef(this);
|
|
13881
14491
|
const getTaps = (stages) => {
|
|
14492
|
+
const compiler = that.deref();
|
|
13882
14493
|
const hook = getHook();
|
|
13883
14494
|
if (!hook.isUsed()) return [];
|
|
13884
14495
|
const breakpoints = [
|
|
@@ -13898,7 +14509,7 @@ var Compiler = class _Compiler {
|
|
|
13898
14509
|
stage: liteTapable7.safeStage(from + 1)
|
|
13899
14510
|
});
|
|
13900
14511
|
}
|
|
13901
|
-
|
|
14512
|
+
compiler.#decorateJsTaps(jsTaps);
|
|
13902
14513
|
return jsTaps;
|
|
13903
14514
|
};
|
|
13904
14515
|
getTaps.registerKind = registerKind;
|
|
@@ -13906,7 +14517,9 @@ var Compiler = class _Compiler {
|
|
|
13906
14517
|
return getTaps;
|
|
13907
14518
|
}
|
|
13908
14519
|
#createHookMapRegisterTaps(registerKind, getHookMap, createTap) {
|
|
14520
|
+
const that = new WeakRef(this);
|
|
13909
14521
|
const getTaps = (stages) => {
|
|
14522
|
+
const compiler = that.deref();
|
|
13910
14523
|
const map = getHookMap();
|
|
13911
14524
|
if (!map.isUsed()) return [];
|
|
13912
14525
|
const breakpoints = [
|
|
@@ -13926,7 +14539,7 @@ var Compiler = class _Compiler {
|
|
|
13926
14539
|
stage: liteTapable7.safeStage(from + 1)
|
|
13927
14540
|
});
|
|
13928
14541
|
}
|
|
13929
|
-
|
|
14542
|
+
compiler.#decorateJsTaps(jsTaps);
|
|
13930
14543
|
return jsTaps;
|
|
13931
14544
|
};
|
|
13932
14545
|
getTaps.registerKind = registerKind;
|
|
@@ -17755,6 +18368,203 @@ var RspackOptionsApply = class {
|
|
|
17755
18368
|
}
|
|
17756
18369
|
};
|
|
17757
18370
|
|
|
18371
|
+
// src/lib/DllPlugin.ts
|
|
18372
|
+
var import_zod5 = __toESM(require("../compiled/zod/index.js"));
|
|
18373
|
+
|
|
18374
|
+
// src/builtin-plugin/FlagAllModulesAsUsedPlugin.ts
|
|
18375
|
+
var import_binding78 = require("@rspack/binding");
|
|
18376
|
+
var FlagAllModulesAsUsedPlugin = create2(
|
|
18377
|
+
import_binding78.BuiltinPluginName.FlagAllModulesAsUsedPlugin,
|
|
18378
|
+
(explanation) => {
|
|
18379
|
+
return {
|
|
18380
|
+
explanation
|
|
18381
|
+
};
|
|
18382
|
+
}
|
|
18383
|
+
);
|
|
18384
|
+
|
|
18385
|
+
// src/lib/DllPlugin.ts
|
|
18386
|
+
var dllPluginOptions = import_zod5.default.object({
|
|
18387
|
+
context: import_zod5.default.string().optional(),
|
|
18388
|
+
entryOnly: import_zod5.default.boolean().optional(),
|
|
18389
|
+
format: import_zod5.default.boolean().optional(),
|
|
18390
|
+
name: import_zod5.default.string().optional(),
|
|
18391
|
+
path: import_zod5.default.string(),
|
|
18392
|
+
type: import_zod5.default.string().optional()
|
|
18393
|
+
});
|
|
18394
|
+
var DllPlugin = class _DllPlugin {
|
|
18395
|
+
constructor(options) {
|
|
18396
|
+
validate(options, dllPluginOptions);
|
|
18397
|
+
this.options = {
|
|
18398
|
+
...options,
|
|
18399
|
+
entryOnly: options.entryOnly !== false
|
|
18400
|
+
};
|
|
18401
|
+
}
|
|
18402
|
+
apply(compiler) {
|
|
18403
|
+
compiler.hooks.entryOption.tap(_DllPlugin.name, (context2, entry2) => {
|
|
18404
|
+
if (typeof entry2 === "function") {
|
|
18405
|
+
throw new Error(
|
|
18406
|
+
"DllPlugin doesn't support dynamic entry (function) yet"
|
|
18407
|
+
);
|
|
18408
|
+
}
|
|
18409
|
+
for (const name2 of Object.keys(entry2)) {
|
|
18410
|
+
const options = {
|
|
18411
|
+
name: name2
|
|
18412
|
+
};
|
|
18413
|
+
const entries = entry2[name2].import || [];
|
|
18414
|
+
new DllEntryPlugin(context2, entries, options).apply(compiler);
|
|
18415
|
+
}
|
|
18416
|
+
return true;
|
|
18417
|
+
});
|
|
18418
|
+
new LibManifestPlugin(this.options).apply(compiler);
|
|
18419
|
+
if (!this.options.entryOnly) {
|
|
18420
|
+
new FlagAllModulesAsUsedPlugin("DllPlugin").apply(compiler);
|
|
18421
|
+
}
|
|
18422
|
+
}
|
|
18423
|
+
};
|
|
18424
|
+
|
|
18425
|
+
// src/lib/DllReferencePlugin.ts
|
|
18426
|
+
var import_zod6 = __toESM(require("../compiled/zod/index.js"));
|
|
18427
|
+
var dllReferencePluginOptionsContentItem = import_zod6.default.object({
|
|
18428
|
+
buildMeta: import_zod6.default.custom().optional(),
|
|
18429
|
+
exports: import_zod6.default.array(import_zod6.default.string()).or(import_zod6.default.literal(true)).optional(),
|
|
18430
|
+
id: import_zod6.default.string().optional()
|
|
18431
|
+
});
|
|
18432
|
+
var dllReferencePluginOptionsContent = import_zod6.default.record(
|
|
18433
|
+
dllReferencePluginOptionsContentItem
|
|
18434
|
+
);
|
|
18435
|
+
var dllReferencePluginOptionsSourceType = import_zod6.default.enum([
|
|
18436
|
+
"var",
|
|
18437
|
+
"assign",
|
|
18438
|
+
"this",
|
|
18439
|
+
"window",
|
|
18440
|
+
"global",
|
|
18441
|
+
"commonjs",
|
|
18442
|
+
"commonjs2",
|
|
18443
|
+
"commonjs-module",
|
|
18444
|
+
"amd",
|
|
18445
|
+
"amd-require",
|
|
18446
|
+
"umd",
|
|
18447
|
+
"umd2",
|
|
18448
|
+
"jsonp",
|
|
18449
|
+
"system"
|
|
18450
|
+
]);
|
|
18451
|
+
var dllReferencePluginOptionsManifest = import_zod6.default.object({
|
|
18452
|
+
content: dllReferencePluginOptionsContent,
|
|
18453
|
+
name: import_zod6.default.string().optional(),
|
|
18454
|
+
type: dllReferencePluginOptionsSourceType.optional()
|
|
18455
|
+
});
|
|
18456
|
+
var dllReferencePluginOptions = import_zod6.default.union([
|
|
18457
|
+
import_zod6.default.object({
|
|
18458
|
+
context: import_zod6.default.string().optional(),
|
|
18459
|
+
extensions: import_zod6.default.array(import_zod6.default.string()).optional(),
|
|
18460
|
+
manifest: import_zod6.default.string().or(dllReferencePluginOptionsManifest),
|
|
18461
|
+
name: import_zod6.default.string().optional(),
|
|
18462
|
+
scope: import_zod6.default.string().optional(),
|
|
18463
|
+
sourceType: dllReferencePluginOptionsSourceType.optional(),
|
|
18464
|
+
type: import_zod6.default.enum(["require", "object"]).optional()
|
|
18465
|
+
}),
|
|
18466
|
+
import_zod6.default.object({
|
|
18467
|
+
content: dllReferencePluginOptionsContent,
|
|
18468
|
+
context: import_zod6.default.string().optional(),
|
|
18469
|
+
extensions: import_zod6.default.array(import_zod6.default.string()).optional(),
|
|
18470
|
+
name: import_zod6.default.string(),
|
|
18471
|
+
scope: import_zod6.default.string().optional(),
|
|
18472
|
+
sourceType: dllReferencePluginOptionsSourceType.optional(),
|
|
18473
|
+
type: import_zod6.default.enum(["require", "object"]).optional()
|
|
18474
|
+
})
|
|
18475
|
+
]);
|
|
18476
|
+
var DllReferencePlugin = class _DllReferencePlugin {
|
|
18477
|
+
constructor(options) {
|
|
18478
|
+
validate(options, dllReferencePluginOptions);
|
|
18479
|
+
this.options = options;
|
|
18480
|
+
this.errors = /* @__PURE__ */ new WeakMap();
|
|
18481
|
+
}
|
|
18482
|
+
apply(compiler) {
|
|
18483
|
+
compiler.hooks.beforeCompile.tapPromise(
|
|
18484
|
+
_DllReferencePlugin.name,
|
|
18485
|
+
async (params) => {
|
|
18486
|
+
const manifest = await new Promise((resolve2, reject) => {
|
|
18487
|
+
var _a;
|
|
18488
|
+
if ("manifest" in this.options) {
|
|
18489
|
+
const manifest2 = this.options.manifest;
|
|
18490
|
+
if (typeof manifest2 === "string") {
|
|
18491
|
+
const manifestParameter = manifest2;
|
|
18492
|
+
(_a = compiler.inputFileSystem) == null ? void 0 : _a.readFile(
|
|
18493
|
+
manifestParameter,
|
|
18494
|
+
"utf8",
|
|
18495
|
+
(err, result2) => {
|
|
18496
|
+
if (err) return reject(err);
|
|
18497
|
+
if (!result2)
|
|
18498
|
+
return reject(
|
|
18499
|
+
new DllManifestError(
|
|
18500
|
+
manifestParameter,
|
|
18501
|
+
`Can't read anything from ${manifestParameter}`
|
|
18502
|
+
)
|
|
18503
|
+
);
|
|
18504
|
+
try {
|
|
18505
|
+
const manifest3 = JSON.parse(result2);
|
|
18506
|
+
resolve2(manifest3);
|
|
18507
|
+
} catch (parseError) {
|
|
18508
|
+
const manifestPath = makePathsRelative(
|
|
18509
|
+
compiler.context,
|
|
18510
|
+
manifestParameter,
|
|
18511
|
+
compiler.root
|
|
18512
|
+
);
|
|
18513
|
+
this.errors.set(
|
|
18514
|
+
params,
|
|
18515
|
+
new DllManifestError(
|
|
18516
|
+
manifestPath,
|
|
18517
|
+
parseError.message
|
|
18518
|
+
)
|
|
18519
|
+
);
|
|
18520
|
+
}
|
|
18521
|
+
}
|
|
18522
|
+
);
|
|
18523
|
+
} else {
|
|
18524
|
+
resolve2(manifest2);
|
|
18525
|
+
}
|
|
18526
|
+
} else {
|
|
18527
|
+
resolve2(void 0);
|
|
18528
|
+
}
|
|
18529
|
+
});
|
|
18530
|
+
if (!this.errors.has(params)) {
|
|
18531
|
+
new DllReferenceAgencyPlugin({
|
|
18532
|
+
...this.options,
|
|
18533
|
+
type: this.options.type || "require",
|
|
18534
|
+
extensions: this.options.extensions || [
|
|
18535
|
+
"",
|
|
18536
|
+
".js",
|
|
18537
|
+
".json",
|
|
18538
|
+
".wasm"
|
|
18539
|
+
],
|
|
18540
|
+
manifest
|
|
18541
|
+
}).apply(compiler);
|
|
18542
|
+
}
|
|
18543
|
+
}
|
|
18544
|
+
);
|
|
18545
|
+
compiler.hooks.compilation.tap(
|
|
18546
|
+
_DllReferencePlugin.name,
|
|
18547
|
+
(compilation, params) => {
|
|
18548
|
+
if ("manifest" in this.options && typeof this.options.manifest === "string") {
|
|
18549
|
+
const error = this.errors.get(params);
|
|
18550
|
+
if (error) {
|
|
18551
|
+
compilation.errors.push(error);
|
|
18552
|
+
}
|
|
18553
|
+
compilation.fileDependencies.add(this.options.manifest);
|
|
18554
|
+
}
|
|
18555
|
+
}
|
|
18556
|
+
);
|
|
18557
|
+
}
|
|
18558
|
+
};
|
|
18559
|
+
var DllManifestError = class extends WebpackError_default {
|
|
18560
|
+
constructor(filename2, message) {
|
|
18561
|
+
super();
|
|
18562
|
+
this.name = "DllManifestError";
|
|
18563
|
+
this.message = `Dll manifest ${filename2}
|
|
18564
|
+
${message}`;
|
|
18565
|
+
}
|
|
18566
|
+
};
|
|
18567
|
+
|
|
17758
18568
|
// src/lib/EnvironmentPlugin.ts
|
|
17759
18569
|
var EnvironmentPlugin = class {
|
|
17760
18570
|
constructor(...keys) {
|
|
@@ -18453,9 +19263,9 @@ var NodeTemplatePlugin = class {
|
|
|
18453
19263
|
};
|
|
18454
19264
|
|
|
18455
19265
|
// src/container/ModuleFederationRuntimePlugin.ts
|
|
18456
|
-
var
|
|
19266
|
+
var import_binding79 = require("@rspack/binding");
|
|
18457
19267
|
var ModuleFederationRuntimePlugin = create2(
|
|
18458
|
-
|
|
19268
|
+
import_binding79.BuiltinPluginName.ModuleFederationRuntimePlugin,
|
|
18459
19269
|
() => {
|
|
18460
19270
|
}
|
|
18461
19271
|
);
|
|
@@ -18651,10 +19461,10 @@ function getDefaultEntryRuntime(paths, options, compiler) {
|
|
|
18651
19461
|
}
|
|
18652
19462
|
|
|
18653
19463
|
// src/sharing/ConsumeSharedPlugin.ts
|
|
18654
|
-
var
|
|
19464
|
+
var import_binding81 = require("@rspack/binding");
|
|
18655
19465
|
|
|
18656
19466
|
// src/sharing/ShareRuntimePlugin.ts
|
|
18657
|
-
var
|
|
19467
|
+
var import_binding80 = require("@rspack/binding");
|
|
18658
19468
|
var compilerSet = /* @__PURE__ */ new WeakSet();
|
|
18659
19469
|
function isSingleton(compiler) {
|
|
18660
19470
|
return compilerSet.has(compiler);
|
|
@@ -18666,7 +19476,7 @@ var ShareRuntimePlugin = class extends RspackBuiltinPlugin {
|
|
|
18666
19476
|
constructor(enhanced = false) {
|
|
18667
19477
|
super();
|
|
18668
19478
|
this.enhanced = enhanced;
|
|
18669
|
-
this.name =
|
|
19479
|
+
this.name = import_binding80.BuiltinPluginName.ShareRuntimePlugin;
|
|
18670
19480
|
}
|
|
18671
19481
|
raw(compiler) {
|
|
18672
19482
|
if (isSingleton(compiler)) return;
|
|
@@ -18685,7 +19495,7 @@ function isRequiredVersion(str) {
|
|
|
18685
19495
|
var ConsumeSharedPlugin = class extends RspackBuiltinPlugin {
|
|
18686
19496
|
constructor(options) {
|
|
18687
19497
|
super();
|
|
18688
|
-
this.name =
|
|
19498
|
+
this.name = import_binding81.BuiltinPluginName.ConsumeSharedPlugin;
|
|
18689
19499
|
this._options = {
|
|
18690
19500
|
consumes: parseOptions(
|
|
18691
19501
|
options.consumes,
|
|
@@ -18748,11 +19558,11 @@ var ConsumeSharedPlugin = class extends RspackBuiltinPlugin {
|
|
|
18748
19558
|
};
|
|
18749
19559
|
|
|
18750
19560
|
// src/sharing/ProvideSharedPlugin.ts
|
|
18751
|
-
var
|
|
19561
|
+
var import_binding82 = require("@rspack/binding");
|
|
18752
19562
|
var ProvideSharedPlugin = class extends RspackBuiltinPlugin {
|
|
18753
19563
|
constructor(options) {
|
|
18754
19564
|
super();
|
|
18755
|
-
this.name =
|
|
19565
|
+
this.name = import_binding82.BuiltinPluginName.ProvideSharedPlugin;
|
|
18756
19566
|
this._provides = parseOptions(
|
|
18757
19567
|
options.provides,
|
|
18758
19568
|
(item) => {
|
|
@@ -18857,11 +19667,11 @@ var SharePlugin = class {
|
|
|
18857
19667
|
};
|
|
18858
19668
|
|
|
18859
19669
|
// src/container/ContainerPlugin.ts
|
|
18860
|
-
var
|
|
19670
|
+
var import_binding83 = require("@rspack/binding");
|
|
18861
19671
|
var ContainerPlugin = class extends RspackBuiltinPlugin {
|
|
18862
19672
|
constructor(options) {
|
|
18863
19673
|
super();
|
|
18864
|
-
this.name =
|
|
19674
|
+
this.name = import_binding83.BuiltinPluginName.ContainerPlugin;
|
|
18865
19675
|
this._options = {
|
|
18866
19676
|
name: options.name,
|
|
18867
19677
|
shareScope: options.shareScope || "default",
|
|
@@ -18905,11 +19715,11 @@ var ContainerPlugin = class extends RspackBuiltinPlugin {
|
|
|
18905
19715
|
};
|
|
18906
19716
|
|
|
18907
19717
|
// src/container/ContainerReferencePlugin.ts
|
|
18908
|
-
var
|
|
19718
|
+
var import_binding84 = require("@rspack/binding");
|
|
18909
19719
|
var ContainerReferencePlugin = class extends RspackBuiltinPlugin {
|
|
18910
19720
|
constructor(options) {
|
|
18911
19721
|
super();
|
|
18912
|
-
this.name =
|
|
19722
|
+
this.name = import_binding84.BuiltinPluginName.ContainerReferencePlugin;
|
|
18913
19723
|
this._options = {
|
|
18914
19724
|
remoteType: options.remoteType,
|
|
18915
19725
|
remotes: parseOptions(
|
|
@@ -18994,7 +19804,7 @@ var ModuleFederationPluginV1 = class {
|
|
|
18994
19804
|
};
|
|
18995
19805
|
|
|
18996
19806
|
// src/exports.ts
|
|
18997
|
-
var
|
|
19807
|
+
var import_binding85 = require("@rspack/binding");
|
|
18998
19808
|
var rspackVersion = import_package.version;
|
|
18999
19809
|
var version = import_package.webpackVersion;
|
|
19000
19810
|
var WebpackError2 = Error;
|
|
@@ -19040,8 +19850,8 @@ var sharing = {
|
|
|
19040
19850
|
};
|
|
19041
19851
|
var experiments2 = {
|
|
19042
19852
|
globalTrace: {
|
|
19043
|
-
register:
|
|
19044
|
-
cleanup:
|
|
19853
|
+
register: import_binding85.registerGlobalTrace,
|
|
19854
|
+
cleanup: import_binding85.cleanupGlobalTrace
|
|
19045
19855
|
},
|
|
19046
19856
|
RemoveDuplicateModulesPlugin
|
|
19047
19857
|
};
|
|
@@ -19162,6 +19972,8 @@ module.exports = rspack;
|
|
|
19162
19972
|
CopyRspackPlugin,
|
|
19163
19973
|
CssExtractRspackPlugin,
|
|
19164
19974
|
DefinePlugin,
|
|
19975
|
+
DllPlugin,
|
|
19976
|
+
DllReferencePlugin,
|
|
19165
19977
|
DynamicEntryPlugin,
|
|
19166
19978
|
EntryOptionPlugin,
|
|
19167
19979
|
EntryPlugin,
|