@rspack/core 1.1.1 → 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/LightningCssMinimizerRspackPlugin.d.ts +5 -0
- package/dist/config/normalization.d.ts +2 -1
- package/dist/config/types.d.ts +48 -7
- package/dist/config/zod.d.ts +187 -56
- package/dist/index.js +276 -224
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -813,7 +813,7 @@ __export(exports_exports, {
|
|
|
813
813
|
var import_package = require("../package.json");
|
|
814
814
|
|
|
815
815
|
// src/Compilation.ts
|
|
816
|
-
var
|
|
816
|
+
var import_binding6 = require("@rspack/binding");
|
|
817
817
|
var liteTapable = __toESM(require("@rspack/lite-tapable"));
|
|
818
818
|
|
|
819
819
|
// src/Chunk.ts
|
|
@@ -1081,24 +1081,15 @@ var Chunk = class _Chunk {
|
|
|
1081
1081
|
__internal__innerUkey() {
|
|
1082
1082
|
return this.#inner.__inner_ukey;
|
|
1083
1083
|
}
|
|
1084
|
-
__internal_to_path_data_chunk() {
|
|
1085
|
-
return {
|
|
1086
|
-
id: this.id,
|
|
1087
|
-
name: this.name,
|
|
1088
|
-
hash: this.hash,
|
|
1089
|
-
contentHash: this.contentHash
|
|
1090
|
-
};
|
|
1091
|
-
}
|
|
1092
1084
|
};
|
|
1093
1085
|
|
|
1094
1086
|
// src/ChunkGraph.ts
|
|
1095
|
-
var
|
|
1087
|
+
var import_binding4 = require("@rspack/binding");
|
|
1096
1088
|
|
|
1097
1089
|
// src/Module.ts
|
|
1098
|
-
var
|
|
1090
|
+
var import_binding3 = require("@rspack/binding");
|
|
1099
1091
|
|
|
1100
1092
|
// src/Dependency.ts
|
|
1101
|
-
var import_binding3 = require("@rspack/binding");
|
|
1102
1093
|
var Dependency = class _Dependency {
|
|
1103
1094
|
static __from_binding(binding3) {
|
|
1104
1095
|
return new _Dependency(binding3);
|
|
@@ -1129,9 +1120,7 @@ var Dependency = class _Dependency {
|
|
|
1129
1120
|
return binding3.critical;
|
|
1130
1121
|
},
|
|
1131
1122
|
set(val) {
|
|
1132
|
-
|
|
1133
|
-
binding3.critical = val;
|
|
1134
|
-
}
|
|
1123
|
+
binding3.critical = val;
|
|
1135
1124
|
}
|
|
1136
1125
|
}
|
|
1137
1126
|
});
|
|
@@ -1396,7 +1385,7 @@ var Module = class _Module {
|
|
|
1396
1385
|
modules: {
|
|
1397
1386
|
enumerable: true,
|
|
1398
1387
|
get() {
|
|
1399
|
-
if (module2 instanceof
|
|
1388
|
+
if (module2 instanceof import_binding3.JsModule) {
|
|
1400
1389
|
return module2.modules ? module2.modules.map((m) => _Module.__from_binding(m)) : void 0;
|
|
1401
1390
|
}
|
|
1402
1391
|
return void 0;
|
|
@@ -1484,14 +1473,14 @@ var ChunkGraph = class {
|
|
|
1484
1473
|
this.compilation = compilation;
|
|
1485
1474
|
}
|
|
1486
1475
|
getChunkModules(chunk) {
|
|
1487
|
-
return (0,
|
|
1476
|
+
return (0, import_binding4.__chunk_graph_inner_get_chunk_modules)(
|
|
1488
1477
|
chunk.__internal__innerUkey(),
|
|
1489
1478
|
this.compilation.__internal_getInner()
|
|
1490
1479
|
).map((m) => Module.__from_binding(m, this.compilation));
|
|
1491
1480
|
}
|
|
1492
1481
|
getChunkModulesIterable(chunk) {
|
|
1493
1482
|
return new Set(
|
|
1494
|
-
(0,
|
|
1483
|
+
(0, import_binding4.__chunk_graph_inner_get_chunk_modules)(
|
|
1495
1484
|
chunk.__internal__innerUkey(),
|
|
1496
1485
|
this.compilation.__internal_getInner()
|
|
1497
1486
|
).map((m) => Module.__from_binding(m, this.compilation))
|
|
@@ -1499,7 +1488,7 @@ var ChunkGraph = class {
|
|
|
1499
1488
|
}
|
|
1500
1489
|
getChunkEntryModulesIterable(chunk) {
|
|
1501
1490
|
return new Set(
|
|
1502
|
-
(0,
|
|
1491
|
+
(0, import_binding4.__chunk_graph_inner_get_chunk_entry_modules)(
|
|
1503
1492
|
chunk.__internal__innerUkey(),
|
|
1504
1493
|
this.compilation.__internal_getInner()
|
|
1505
1494
|
).map((m) => Module.__from_binding(m, this.compilation))
|
|
@@ -1507,7 +1496,7 @@ var ChunkGraph = class {
|
|
|
1507
1496
|
}
|
|
1508
1497
|
getChunkEntryDependentChunksIterable(chunk) {
|
|
1509
1498
|
return new Set(
|
|
1510
|
-
(0,
|
|
1499
|
+
(0, import_binding4.__chunk_graph_inner_get_chunk_entry_dependent_chunks_iterable)(
|
|
1511
1500
|
chunk.__internal__innerUkey(),
|
|
1512
1501
|
this.compilation.__internal_getInner()
|
|
1513
1502
|
).map(
|
|
@@ -1517,7 +1506,7 @@ var ChunkGraph = class {
|
|
|
1517
1506
|
}
|
|
1518
1507
|
getChunkModulesIterableBySourceType(chunk, sourceType) {
|
|
1519
1508
|
return new Set(
|
|
1520
|
-
(0,
|
|
1509
|
+
(0, import_binding4.__chunk_graph_inner_get_chunk_modules_iterable_by_source_type)(
|
|
1521
1510
|
chunk.__internal__innerUkey(),
|
|
1522
1511
|
sourceType,
|
|
1523
1512
|
this.compilation.__internal_getInner()
|
|
@@ -1527,7 +1516,7 @@ var ChunkGraph = class {
|
|
|
1527
1516
|
};
|
|
1528
1517
|
|
|
1529
1518
|
// src/Entrypoint.ts
|
|
1530
|
-
var
|
|
1519
|
+
var import_binding5 = require("@rspack/binding");
|
|
1531
1520
|
var Entrypoint = class _Entrypoint extends ChunkGroup {
|
|
1532
1521
|
static __from_binding(chunk, compilation) {
|
|
1533
1522
|
return new _Entrypoint(chunk, compilation);
|
|
@@ -1536,7 +1525,7 @@ var Entrypoint = class _Entrypoint extends ChunkGroup {
|
|
|
1536
1525
|
super(inner, compilation);
|
|
1537
1526
|
}
|
|
1538
1527
|
getRuntimeChunk() {
|
|
1539
|
-
const c = (0,
|
|
1528
|
+
const c = (0, import_binding5.__entrypoint_inner_get_runtime_chunk)(
|
|
1540
1529
|
this.__internal__innerUkey(),
|
|
1541
1530
|
this.__internal__innerCompilation()
|
|
1542
1531
|
);
|
|
@@ -3171,7 +3160,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3171
3160
|
for (let i = 0; i < errs.length; i++) {
|
|
3172
3161
|
const error = errs[i];
|
|
3173
3162
|
inner.pushDiagnostic(
|
|
3174
|
-
JsRspackDiagnostic.__to_binding(error,
|
|
3163
|
+
JsRspackDiagnostic.__to_binding(error, import_binding6.JsRspackSeverity.Error)
|
|
3175
3164
|
);
|
|
3176
3165
|
}
|
|
3177
3166
|
return Reflect.apply(target2, thisArg, errs);
|
|
@@ -3197,7 +3186,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3197
3186
|
const errList = errs.map((error) => {
|
|
3198
3187
|
return JsRspackDiagnostic.__to_binding(
|
|
3199
3188
|
error,
|
|
3200
|
-
|
|
3189
|
+
import_binding6.JsRspackSeverity.Error
|
|
3201
3190
|
);
|
|
3202
3191
|
});
|
|
3203
3192
|
inner.spliceDiagnostic(0, 0, errList);
|
|
@@ -3210,7 +3199,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3210
3199
|
const errList = errors2.map((error) => {
|
|
3211
3200
|
return JsRspackDiagnostic.__to_binding(
|
|
3212
3201
|
error,
|
|
3213
|
-
|
|
3202
|
+
import_binding6.JsRspackSeverity.Error
|
|
3214
3203
|
);
|
|
3215
3204
|
});
|
|
3216
3205
|
inner.spliceDiagnostic(startIdx, startIdx + delCount, errList);
|
|
@@ -3237,7 +3226,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3237
3226
|
0,
|
|
3238
3227
|
length,
|
|
3239
3228
|
errors.map((error) => {
|
|
3240
|
-
return JsRspackDiagnostic.__to_binding(error,
|
|
3229
|
+
return JsRspackDiagnostic.__to_binding(error, import_binding6.JsRspackSeverity.Error);
|
|
3241
3230
|
})
|
|
3242
3231
|
);
|
|
3243
3232
|
}
|
|
@@ -3254,7 +3243,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3254
3243
|
thisArg,
|
|
3255
3244
|
processWarningsHook.call(warns).map((warn) => {
|
|
3256
3245
|
inner.pushDiagnostic(
|
|
3257
|
-
JsRspackDiagnostic.__to_binding(warn,
|
|
3246
|
+
JsRspackDiagnostic.__to_binding(warn, import_binding6.JsRspackSeverity.Warn)
|
|
3258
3247
|
);
|
|
3259
3248
|
return warn;
|
|
3260
3249
|
})
|
|
@@ -3285,7 +3274,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3285
3274
|
warnings2.map((warn) => {
|
|
3286
3275
|
return JsRspackDiagnostic.__to_binding(
|
|
3287
3276
|
warn,
|
|
3288
|
-
|
|
3277
|
+
import_binding6.JsRspackSeverity.Warn
|
|
3289
3278
|
);
|
|
3290
3279
|
})
|
|
3291
3280
|
);
|
|
@@ -3297,7 +3286,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3297
3286
|
handler(target2, thisArg, [startIdx, delCount, ...warns]) {
|
|
3298
3287
|
warns = processWarningsHook.call(warns);
|
|
3299
3288
|
const warnList = warns.map((warn) => {
|
|
3300
|
-
return JsRspackDiagnostic.__to_binding(warn,
|
|
3289
|
+
return JsRspackDiagnostic.__to_binding(warn, import_binding6.JsRspackSeverity.Warn);
|
|
3301
3290
|
});
|
|
3302
3291
|
inner.spliceDiagnostic(startIdx, startIdx + delCount, warnList);
|
|
3303
3292
|
return Reflect.apply(target2, thisArg, [
|
|
@@ -3323,33 +3312,41 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3323
3312
|
0,
|
|
3324
3313
|
length,
|
|
3325
3314
|
warnings.map((warning) => {
|
|
3326
|
-
return JsRspackDiagnostic.__to_binding(warning,
|
|
3315
|
+
return JsRspackDiagnostic.__to_binding(warning, import_binding6.JsRspackSeverity.Warn);
|
|
3327
3316
|
})
|
|
3328
3317
|
);
|
|
3329
3318
|
}
|
|
3330
3319
|
getPath(filename2, data = {}) {
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
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);
|
|
3335
3326
|
}
|
|
3336
3327
|
getPathWithInfo(filename2, data = {}) {
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
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);
|
|
3341
3334
|
}
|
|
3342
3335
|
getAssetPath(filename2, data = {}) {
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
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);
|
|
3347
3342
|
}
|
|
3348
3343
|
getAssetPathWithInfo(filename2, data = {}) {
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
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);
|
|
3353
3350
|
}
|
|
3354
3351
|
getLogger(name2) {
|
|
3355
3352
|
if (!name2) {
|
|
@@ -5090,40 +5087,40 @@ function create2(name2, resolve2, affectedHooks) {
|
|
|
5090
5087
|
}
|
|
5091
5088
|
|
|
5092
5089
|
// src/builtin-plugin/APIPlugin.ts
|
|
5093
|
-
var
|
|
5094
|
-
var APIPlugin = create2(
|
|
5090
|
+
var import_binding7 = require("@rspack/binding");
|
|
5091
|
+
var APIPlugin = create2(import_binding7.BuiltinPluginName.APIPlugin, () => {
|
|
5095
5092
|
});
|
|
5096
5093
|
|
|
5097
5094
|
// src/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.ts
|
|
5098
|
-
var
|
|
5095
|
+
var import_binding8 = require("@rspack/binding");
|
|
5099
5096
|
var ArrayPushCallbackChunkFormatPlugin = create2(
|
|
5100
|
-
|
|
5097
|
+
import_binding8.BuiltinPluginName.ArrayPushCallbackChunkFormatPlugin,
|
|
5101
5098
|
() => {
|
|
5102
5099
|
}
|
|
5103
5100
|
);
|
|
5104
5101
|
|
|
5105
5102
|
// src/builtin-plugin/AssetModulesPlugin.ts
|
|
5106
|
-
var
|
|
5103
|
+
var import_binding9 = require("@rspack/binding");
|
|
5107
5104
|
var AssetModulesPlugin = create2(
|
|
5108
|
-
|
|
5105
|
+
import_binding9.BuiltinPluginName.AssetModulesPlugin,
|
|
5109
5106
|
() => {
|
|
5110
5107
|
},
|
|
5111
5108
|
"compilation"
|
|
5112
5109
|
);
|
|
5113
5110
|
|
|
5114
5111
|
// src/builtin-plugin/AsyncWebAssemblyModulesPlugin.ts
|
|
5115
|
-
var
|
|
5112
|
+
var import_binding10 = require("@rspack/binding");
|
|
5116
5113
|
var AsyncWebAssemblyModulesPlugin = create2(
|
|
5117
|
-
|
|
5114
|
+
import_binding10.BuiltinPluginName.AsyncWebAssemblyModulesPlugin,
|
|
5118
5115
|
() => {
|
|
5119
5116
|
},
|
|
5120
5117
|
"compilation"
|
|
5121
5118
|
);
|
|
5122
5119
|
|
|
5123
5120
|
// src/builtin-plugin/BannerPlugin.ts
|
|
5124
|
-
var
|
|
5121
|
+
var import_binding11 = require("@rspack/binding");
|
|
5125
5122
|
var BannerPlugin = create2(
|
|
5126
|
-
|
|
5123
|
+
import_binding11.BuiltinPluginName.BannerPlugin,
|
|
5127
5124
|
(args) => {
|
|
5128
5125
|
if (typeof args === "string" || typeof args === "function") {
|
|
5129
5126
|
return {
|
|
@@ -5144,9 +5141,9 @@ var BannerPlugin = create2(
|
|
|
5144
5141
|
);
|
|
5145
5142
|
|
|
5146
5143
|
// src/builtin-plugin/BundlerInfoRspackPlugin.ts
|
|
5147
|
-
var
|
|
5144
|
+
var import_binding12 = require("@rspack/binding");
|
|
5148
5145
|
var BundlerInfoRspackPlugin = create2(
|
|
5149
|
-
|
|
5146
|
+
import_binding12.BuiltinPluginName.BundlerInfoRspackPlugin,
|
|
5150
5147
|
(options) => {
|
|
5151
5148
|
return {
|
|
5152
5149
|
version: options.version || "unknown",
|
|
@@ -5157,25 +5154,25 @@ var BundlerInfoRspackPlugin = create2(
|
|
|
5157
5154
|
);
|
|
5158
5155
|
|
|
5159
5156
|
// src/builtin-plugin/ChunkPrefetchPreloadPlugin.ts
|
|
5160
|
-
var
|
|
5157
|
+
var import_binding13 = require("@rspack/binding");
|
|
5161
5158
|
var ChunkPrefetchPreloadPlugin = create2(
|
|
5162
|
-
|
|
5159
|
+
import_binding13.BuiltinPluginName.ChunkPrefetchPreloadPlugin,
|
|
5163
5160
|
() => {
|
|
5164
5161
|
}
|
|
5165
5162
|
);
|
|
5166
5163
|
|
|
5167
5164
|
// src/builtin-plugin/CommonJsChunkFormatPlugin.ts
|
|
5168
|
-
var
|
|
5165
|
+
var import_binding14 = require("@rspack/binding");
|
|
5169
5166
|
var CommonJsChunkFormatPlugin = create2(
|
|
5170
|
-
|
|
5167
|
+
import_binding14.BuiltinPluginName.CommonJsChunkFormatPlugin,
|
|
5171
5168
|
() => {
|
|
5172
5169
|
}
|
|
5173
5170
|
);
|
|
5174
5171
|
|
|
5175
5172
|
// src/builtin-plugin/CopyRspackPlugin.ts
|
|
5176
|
-
var
|
|
5173
|
+
var import_binding15 = require("@rspack/binding");
|
|
5177
5174
|
var CopyRspackPlugin = create2(
|
|
5178
|
-
|
|
5175
|
+
import_binding15.BuiltinPluginName.CopyRspackPlugin,
|
|
5179
5176
|
(copy) => {
|
|
5180
5177
|
const ret = {
|
|
5181
5178
|
patterns: []
|
|
@@ -5195,7 +5192,7 @@ var CopyRspackPlugin = create2(
|
|
|
5195
5192
|
);
|
|
5196
5193
|
|
|
5197
5194
|
// src/builtin-plugin/css-extract/index.ts
|
|
5198
|
-
var
|
|
5195
|
+
var import_binding16 = require("@rspack/binding");
|
|
5199
5196
|
var import_node_path3 = require("path");
|
|
5200
5197
|
|
|
5201
5198
|
// src/builtin-plugin/css-extract/loader.ts
|
|
@@ -5231,7 +5228,7 @@ var CssExtractRspackPlugin = class {
|
|
|
5231
5228
|
this.options.pathinfo = true;
|
|
5232
5229
|
}
|
|
5233
5230
|
compiler.__internal__registerBuiltinPlugin({
|
|
5234
|
-
name:
|
|
5231
|
+
name: import_binding16.BuiltinPluginName.CssExtractRspackPlugin,
|
|
5235
5232
|
options: this.normalizeOptions(this.options)
|
|
5236
5233
|
});
|
|
5237
5234
|
}
|
|
@@ -5289,27 +5286,27 @@ CssExtractRspackPlugin.pluginName = PLUGIN_NAME;
|
|
|
5289
5286
|
CssExtractRspackPlugin.loader = LOADER_PATH;
|
|
5290
5287
|
|
|
5291
5288
|
// src/builtin-plugin/CssModulesPlugin.ts
|
|
5292
|
-
var
|
|
5289
|
+
var import_binding17 = require("@rspack/binding");
|
|
5293
5290
|
var CssModulesPlugin = create2(
|
|
5294
|
-
|
|
5291
|
+
import_binding17.BuiltinPluginName.CssModulesPlugin,
|
|
5295
5292
|
() => {
|
|
5296
5293
|
},
|
|
5297
5294
|
"compilation"
|
|
5298
5295
|
);
|
|
5299
5296
|
|
|
5300
5297
|
// src/builtin-plugin/DataUriPlugin.ts
|
|
5301
|
-
var
|
|
5298
|
+
var import_binding18 = require("@rspack/binding");
|
|
5302
5299
|
var DataUriPlugin = create2(
|
|
5303
|
-
|
|
5300
|
+
import_binding18.BuiltinPluginName.DataUriPlugin,
|
|
5304
5301
|
() => {
|
|
5305
5302
|
},
|
|
5306
5303
|
"compilation"
|
|
5307
5304
|
);
|
|
5308
5305
|
|
|
5309
5306
|
// src/builtin-plugin/DefinePlugin.ts
|
|
5310
|
-
var
|
|
5307
|
+
var import_binding19 = require("@rspack/binding");
|
|
5311
5308
|
var DefinePlugin = create2(
|
|
5312
|
-
|
|
5309
|
+
import_binding19.BuiltinPluginName.DefinePlugin,
|
|
5313
5310
|
function(define) {
|
|
5314
5311
|
var _a;
|
|
5315
5312
|
const supportsBigIntLiteral = ((_a = this.options.output.environment) == null ? void 0 : _a.bigIntLiteral) ?? false;
|
|
@@ -5353,25 +5350,25 @@ var normalizeValue = (define, supportsBigIntLiteral) => {
|
|
|
5353
5350
|
};
|
|
5354
5351
|
|
|
5355
5352
|
// src/builtin-plugin/DeterministicChunkIdsPlugin.ts
|
|
5356
|
-
var
|
|
5353
|
+
var import_binding20 = require("@rspack/binding");
|
|
5357
5354
|
var DeterministicChunkIdsPlugin = create2(
|
|
5358
|
-
|
|
5355
|
+
import_binding20.BuiltinPluginName.DeterministicChunkIdsPlugin,
|
|
5359
5356
|
() => {
|
|
5360
5357
|
},
|
|
5361
5358
|
"compilation"
|
|
5362
5359
|
);
|
|
5363
5360
|
|
|
5364
5361
|
// src/builtin-plugin/DeterministicModuleIdsPlugin.ts
|
|
5365
|
-
var
|
|
5362
|
+
var import_binding21 = require("@rspack/binding");
|
|
5366
5363
|
var DeterministicModuleIdsPlugin = create2(
|
|
5367
|
-
|
|
5364
|
+
import_binding21.BuiltinPluginName.DeterministicModuleIdsPlugin,
|
|
5368
5365
|
() => {
|
|
5369
5366
|
},
|
|
5370
5367
|
"compilation"
|
|
5371
5368
|
);
|
|
5372
5369
|
|
|
5373
5370
|
// src/builtin-plugin/DynamicEntryPlugin.ts
|
|
5374
|
-
var
|
|
5371
|
+
var import_binding25 = require("@rspack/binding");
|
|
5375
5372
|
|
|
5376
5373
|
// src/lib/EntryOptionPlugin.ts
|
|
5377
5374
|
var import_node_assert = __toESM(require("assert"));
|
|
@@ -5444,11 +5441,11 @@ var EntryOptionPlugin = class _EntryOptionPlugin {
|
|
|
5444
5441
|
var EntryOptionPlugin_default = EntryOptionPlugin;
|
|
5445
5442
|
|
|
5446
5443
|
// src/builtin-plugin/EntryPlugin.ts
|
|
5447
|
-
var
|
|
5444
|
+
var import_binding24 = require("@rspack/binding");
|
|
5448
5445
|
|
|
5449
5446
|
// src/config/adapter.ts
|
|
5450
5447
|
var import_node_assert3 = __toESM(require("assert"));
|
|
5451
|
-
var
|
|
5448
|
+
var import_binding23 = require("@rspack/binding");
|
|
5452
5449
|
|
|
5453
5450
|
// src/util/identifier.ts
|
|
5454
5451
|
var import_node_path4 = __toESM(require("path"));
|
|
@@ -5756,7 +5753,7 @@ function toFeatures(featureOptions) {
|
|
|
5756
5753
|
var import_node_querystring = __toESM(require("querystring"));
|
|
5757
5754
|
var import_node_assert2 = __toESM(require("assert"));
|
|
5758
5755
|
var import_node_util3 = require("util");
|
|
5759
|
-
var
|
|
5756
|
+
var import_binding22 = require("@rspack/binding");
|
|
5760
5757
|
var import_webpack_sources2 = require("../compiled/webpack-sources/index.js");
|
|
5761
5758
|
|
|
5762
5759
|
// src/NormalModule.ts
|
|
@@ -6351,7 +6348,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6351
6348
|
error.moduleIdentifier = this._module.identifier();
|
|
6352
6349
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
6353
6350
|
error,
|
|
6354
|
-
severity:
|
|
6351
|
+
severity: import_binding22.JsRspackSeverity.Error
|
|
6355
6352
|
});
|
|
6356
6353
|
};
|
|
6357
6354
|
loaderContext.emitWarning = function emitWarning(warn) {
|
|
@@ -6367,7 +6364,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6367
6364
|
warning.moduleIdentifier = this._module.identifier();
|
|
6368
6365
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
6369
6366
|
error: warning,
|
|
6370
|
-
severity:
|
|
6367
|
+
severity: import_binding22.JsRspackSeverity.Warn
|
|
6371
6368
|
});
|
|
6372
6369
|
};
|
|
6373
6370
|
loaderContext.emitFile = function emitFile(name2, content, sourceMap, assetInfo) {
|
|
@@ -6408,7 +6405,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6408
6405
|
moduleIdentifier: context2._module.moduleIdentifier
|
|
6409
6406
|
});
|
|
6410
6407
|
compiler._lastCompilation.__internal__pushDiagnostic(
|
|
6411
|
-
(0,
|
|
6408
|
+
(0, import_binding22.formatDiagnostic)(d)
|
|
6412
6409
|
);
|
|
6413
6410
|
}
|
|
6414
6411
|
};
|
|
@@ -6498,7 +6495,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6498
6495
|
});
|
|
6499
6496
|
try {
|
|
6500
6497
|
switch (loaderState) {
|
|
6501
|
-
case
|
|
6498
|
+
case import_binding22.JsLoaderState.Pitching: {
|
|
6502
6499
|
while (loaderContext.loaderIndex < loaderContext.loaders.length) {
|
|
6503
6500
|
const currentLoaderObject = loaderContext.loaders[loaderContext.loaderIndex];
|
|
6504
6501
|
if (currentLoaderObject.shouldYield()) break;
|
|
@@ -6526,7 +6523,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6526
6523
|
}
|
|
6527
6524
|
break;
|
|
6528
6525
|
}
|
|
6529
|
-
case
|
|
6526
|
+
case import_binding22.JsLoaderState.Normal: {
|
|
6530
6527
|
let content = context2.content;
|
|
6531
6528
|
let sourceMap = JsSourceMap.__from_binding(context2.sourceMap);
|
|
6532
6529
|
let additionalData = context2.additionalData;
|
|
@@ -7039,31 +7036,31 @@ var getRawModuleRule = (rule, path10, options, upperType) => {
|
|
|
7039
7036
|
function getRawRuleSetCondition(condition) {
|
|
7040
7037
|
if (typeof condition === "string") {
|
|
7041
7038
|
return {
|
|
7042
|
-
type:
|
|
7039
|
+
type: import_binding23.RawRuleSetConditionType.string,
|
|
7043
7040
|
string: condition
|
|
7044
7041
|
};
|
|
7045
7042
|
}
|
|
7046
7043
|
if (condition instanceof RegExp) {
|
|
7047
7044
|
return {
|
|
7048
|
-
type:
|
|
7045
|
+
type: import_binding23.RawRuleSetConditionType.regexp,
|
|
7049
7046
|
regexp: condition
|
|
7050
7047
|
};
|
|
7051
7048
|
}
|
|
7052
7049
|
if (typeof condition === "function") {
|
|
7053
7050
|
return {
|
|
7054
|
-
type:
|
|
7051
|
+
type: import_binding23.RawRuleSetConditionType.func,
|
|
7055
7052
|
func: condition
|
|
7056
7053
|
};
|
|
7057
7054
|
}
|
|
7058
7055
|
if (Array.isArray(condition)) {
|
|
7059
7056
|
return {
|
|
7060
|
-
type:
|
|
7057
|
+
type: import_binding23.RawRuleSetConditionType.array,
|
|
7061
7058
|
array: condition.map((i) => getRawRuleSetCondition(i))
|
|
7062
7059
|
};
|
|
7063
7060
|
}
|
|
7064
7061
|
if (typeof condition === "object" && condition !== null) {
|
|
7065
7062
|
return {
|
|
7066
|
-
type:
|
|
7063
|
+
type: import_binding23.RawRuleSetConditionType.logical,
|
|
7067
7064
|
logical: [getRawRuleSetLogicalConditions(condition)]
|
|
7068
7065
|
};
|
|
7069
7066
|
}
|
|
@@ -7298,31 +7295,54 @@ function getRawSnapshotOptions(_snapshot) {
|
|
|
7298
7295
|
return {};
|
|
7299
7296
|
}
|
|
7300
7297
|
function getRawExperiments(experiments3) {
|
|
7301
|
-
const { topLevelAwait, layers, incremental: incremental2, rspackFuture } = experiments3;
|
|
7298
|
+
const { topLevelAwait, layers, incremental: incremental2, rspackFuture, cache } = experiments3;
|
|
7302
7299
|
(0, import_node_assert3.default)(
|
|
7303
7300
|
!isNil(topLevelAwait) && !isNil(rspackFuture) && !isNil(layers) && !isNil(incremental2)
|
|
7304
7301
|
);
|
|
7305
7302
|
return {
|
|
7306
7303
|
layers,
|
|
7307
7304
|
topLevelAwait,
|
|
7305
|
+
cache: getRawExperimentCache(cache),
|
|
7308
7306
|
incremental: getRawIncremental(incremental2),
|
|
7309
7307
|
rspackFuture: getRawRspackFutureOptions(rspackFuture)
|
|
7310
7308
|
};
|
|
7311
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
|
+
}
|
|
7312
7329
|
function getRawIncremental(incremental2) {
|
|
7313
7330
|
if (incremental2 === false) {
|
|
7314
7331
|
return void 0;
|
|
7315
7332
|
}
|
|
7316
7333
|
return {
|
|
7317
7334
|
make: incremental2.make,
|
|
7318
|
-
emitAssets: incremental2.emitAssets,
|
|
7319
7335
|
inferAsyncModules: incremental2.inferAsyncModules,
|
|
7320
7336
|
providedExports: incremental2.providedExports,
|
|
7321
7337
|
dependenciesDiagnostics: incremental2.dependenciesDiagnostics,
|
|
7338
|
+
buildChunkGraph: incremental2.buildChunkGraph,
|
|
7322
7339
|
modulesHashes: incremental2.modulesHashes,
|
|
7323
7340
|
modulesCodegen: incremental2.modulesCodegen,
|
|
7324
7341
|
modulesRuntimeRequirements: incremental2.modulesRuntimeRequirements,
|
|
7325
|
-
|
|
7342
|
+
chunksRuntimeRequirements: incremental2.chunksRuntimeRequirements,
|
|
7343
|
+
chunksHashes: incremental2.chunksHashes,
|
|
7344
|
+
chunksRender: incremental2.chunksRender,
|
|
7345
|
+
emitAssets: incremental2.emitAssets
|
|
7326
7346
|
};
|
|
7327
7347
|
}
|
|
7328
7348
|
function getRawRspackFutureOptions(future) {
|
|
@@ -8517,6 +8537,7 @@ var applyInfrastructureLoggingDefaults = (infrastructureLogging2) => {
|
|
|
8517
8537
|
D(infrastructureLogging2, "appendOnly", !tty);
|
|
8518
8538
|
};
|
|
8519
8539
|
var applyExperimentsDefaults = (experiments3, { production }) => {
|
|
8540
|
+
F(experiments3, "cache", () => !production);
|
|
8520
8541
|
D(experiments3, "futureDefaults", false);
|
|
8521
8542
|
D(experiments3, "lazyCompilation", false);
|
|
8522
8543
|
D(experiments3, "asyncWebAssembly", experiments3.futureDefaults);
|
|
@@ -8533,6 +8554,9 @@ var applyExperimentsDefaults = (experiments3, { production }) => {
|
|
|
8533
8554
|
D(experiments3.incremental, "modulesHashes", false);
|
|
8534
8555
|
D(experiments3.incremental, "modulesCodegen", false);
|
|
8535
8556
|
D(experiments3.incremental, "modulesRuntimeRequirements", false);
|
|
8557
|
+
D(experiments3.incremental, "chunksRuntimeRequirements", false);
|
|
8558
|
+
D(experiments3.incremental, "chunksHashes", false);
|
|
8559
|
+
D(experiments3.incremental, "chunksRender", false);
|
|
8536
8560
|
D(experiments3.incremental, "emitAssets", true);
|
|
8537
8561
|
}
|
|
8538
8562
|
D(experiments3, "rspackFuture", {});
|
|
@@ -9478,6 +9502,7 @@ var getNormalizedRspackOptions = (config2) => {
|
|
|
9478
9502
|
plugins: nestedArray(config2.plugins, (p) => [...p]),
|
|
9479
9503
|
experiments: nestedConfig(config2.experiments, (experiments3) => ({
|
|
9480
9504
|
...experiments3,
|
|
9505
|
+
cache: experiments3.cache,
|
|
9481
9506
|
lazyCompilation: optionalNestedConfig(
|
|
9482
9507
|
experiments3.lazyCompilation,
|
|
9483
9508
|
(options) => options === true ? {} : options
|
|
@@ -9486,14 +9511,17 @@ var getNormalizedRspackOptions = (config2) => {
|
|
|
9486
9511
|
experiments3.incremental,
|
|
9487
9512
|
(options) => options === true ? {
|
|
9488
9513
|
make: true,
|
|
9489
|
-
emitAssets: true,
|
|
9490
9514
|
dependenciesDiagnostics: true,
|
|
9491
9515
|
inferAsyncModules: true,
|
|
9492
9516
|
providedExports: true,
|
|
9517
|
+
buildChunkGraph: true,
|
|
9493
9518
|
modulesHashes: true,
|
|
9494
9519
|
modulesCodegen: true,
|
|
9495
9520
|
modulesRuntimeRequirements: true,
|
|
9496
|
-
|
|
9521
|
+
chunksRuntimeRequirements: true,
|
|
9522
|
+
chunksHashes: true,
|
|
9523
|
+
chunksRender: true,
|
|
9524
|
+
emitAssets: true
|
|
9497
9525
|
} : options
|
|
9498
9526
|
)
|
|
9499
9527
|
})),
|
|
@@ -10307,7 +10335,8 @@ var externalsType = import_zod2.z.enum([
|
|
|
10307
10335
|
"import",
|
|
10308
10336
|
"module-import",
|
|
10309
10337
|
"script",
|
|
10310
|
-
"node-commonjs"
|
|
10338
|
+
"node-commonjs",
|
|
10339
|
+
"commonjs-import"
|
|
10311
10340
|
]);
|
|
10312
10341
|
var ZodExternalObjectValue = new ZodRspackCrossChecker({
|
|
10313
10342
|
patterns: [
|
|
@@ -10630,6 +10659,22 @@ var listenOptions = import_zod2.z.object({
|
|
|
10630
10659
|
writableAll: import_zod2.z.boolean().optional(),
|
|
10631
10660
|
ipv6Only: import_zod2.z.boolean().optional()
|
|
10632
10661
|
});
|
|
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
|
+
);
|
|
10633
10678
|
var lazyCompilationOptions = import_zod2.z.object({
|
|
10634
10679
|
backend: import_zod2.z.object({
|
|
10635
10680
|
client: import_zod2.z.string().optional(),
|
|
@@ -10642,16 +10687,20 @@ var lazyCompilationOptions = import_zod2.z.object({
|
|
|
10642
10687
|
});
|
|
10643
10688
|
var incremental = import_zod2.z.strictObject({
|
|
10644
10689
|
make: import_zod2.z.boolean().optional(),
|
|
10645
|
-
emitAssets: import_zod2.z.boolean().optional(),
|
|
10646
10690
|
inferAsyncModules: import_zod2.z.boolean().optional(),
|
|
10647
10691
|
providedExports: import_zod2.z.boolean().optional(),
|
|
10648
10692
|
dependenciesDiagnostics: import_zod2.z.boolean().optional(),
|
|
10693
|
+
buildChunkGraph: import_zod2.z.boolean().optional(),
|
|
10649
10694
|
modulesHashes: import_zod2.z.boolean().optional(),
|
|
10650
10695
|
modulesCodegen: import_zod2.z.boolean().optional(),
|
|
10651
10696
|
modulesRuntimeRequirements: import_zod2.z.boolean().optional(),
|
|
10652
|
-
|
|
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()
|
|
10653
10701
|
});
|
|
10654
10702
|
var experiments = import_zod2.z.strictObject({
|
|
10703
|
+
cache: import_zod2.z.boolean().optional().or(experimentCacheOptions),
|
|
10655
10704
|
lazyCompilation: import_zod2.z.boolean().optional().or(lazyCompilationOptions),
|
|
10656
10705
|
asyncWebAssembly: import_zod2.z.boolean().optional(),
|
|
10657
10706
|
outputModule: import_zod2.z.boolean().optional(),
|
|
@@ -10717,7 +10766,7 @@ var rspackOptions = import_zod2.z.strictObject({
|
|
|
10717
10766
|
|
|
10718
10767
|
// src/builtin-plugin/EntryPlugin.ts
|
|
10719
10768
|
var EntryPlugin = create2(
|
|
10720
|
-
|
|
10769
|
+
import_binding24.BuiltinPluginName.EntryPlugin,
|
|
10721
10770
|
(context2, entry2, options = "") => {
|
|
10722
10771
|
const entryOptions = typeof options === "string" ? { name: options } : options;
|
|
10723
10772
|
return {
|
|
@@ -10751,7 +10800,7 @@ var DynamicEntryPlugin = class extends RspackBuiltinPlugin {
|
|
|
10751
10800
|
super();
|
|
10752
10801
|
this.context = context2;
|
|
10753
10802
|
this.entry = entry2;
|
|
10754
|
-
this.name =
|
|
10803
|
+
this.name = import_binding25.BuiltinPluginName.DynamicEntryPlugin;
|
|
10755
10804
|
this.affectedHooks = "make";
|
|
10756
10805
|
}
|
|
10757
10806
|
raw(compiler) {
|
|
@@ -10777,21 +10826,21 @@ var DynamicEntryPlugin = class extends RspackBuiltinPlugin {
|
|
|
10777
10826
|
};
|
|
10778
10827
|
|
|
10779
10828
|
// src/builtin-plugin/ElectronTargetPlugin.ts
|
|
10780
|
-
var
|
|
10829
|
+
var import_binding26 = require("@rspack/binding");
|
|
10781
10830
|
var ElectronTargetPlugin = create2(
|
|
10782
|
-
|
|
10831
|
+
import_binding26.BuiltinPluginName.ElectronTargetPlugin,
|
|
10783
10832
|
(context2) => context2 ?? "none"
|
|
10784
10833
|
);
|
|
10785
10834
|
|
|
10786
10835
|
// src/builtin-plugin/EnableChunkLoadingPlugin.ts
|
|
10787
|
-
var
|
|
10836
|
+
var import_binding27 = require("@rspack/binding");
|
|
10788
10837
|
var EnableChunkLoadingPlugin = create2(
|
|
10789
|
-
|
|
10838
|
+
import_binding27.BuiltinPluginName.EnableChunkLoadingPlugin,
|
|
10790
10839
|
(type) => type
|
|
10791
10840
|
);
|
|
10792
10841
|
|
|
10793
10842
|
// src/builtin-plugin/EnableLibraryPlugin.ts
|
|
10794
|
-
var
|
|
10843
|
+
var import_binding28 = require("@rspack/binding");
|
|
10795
10844
|
var enabledTypes = /* @__PURE__ */ new WeakMap();
|
|
10796
10845
|
var getEnabledTypes = (compiler) => {
|
|
10797
10846
|
let set = enabledTypes.get(compiler);
|
|
@@ -10805,7 +10854,7 @@ var EnableLibraryPlugin = class extends RspackBuiltinPlugin {
|
|
|
10805
10854
|
constructor(type) {
|
|
10806
10855
|
super();
|
|
10807
10856
|
this.type = type;
|
|
10808
|
-
this.name =
|
|
10857
|
+
this.name = import_binding28.BuiltinPluginName.EnableLibraryPlugin;
|
|
10809
10858
|
}
|
|
10810
10859
|
static setEnabled(compiler, type) {
|
|
10811
10860
|
getEnabledTypes(compiler).add(type);
|
|
@@ -10827,32 +10876,32 @@ var EnableLibraryPlugin = class extends RspackBuiltinPlugin {
|
|
|
10827
10876
|
};
|
|
10828
10877
|
|
|
10829
10878
|
// src/builtin-plugin/EnableWasmLoadingPlugin.ts
|
|
10830
|
-
var
|
|
10879
|
+
var import_binding29 = require("@rspack/binding");
|
|
10831
10880
|
var EnableWasmLoadingPlugin = create2(
|
|
10832
|
-
|
|
10881
|
+
import_binding29.BuiltinPluginName.EnableWasmLoadingPlugin,
|
|
10833
10882
|
(type) => type
|
|
10834
10883
|
);
|
|
10835
10884
|
|
|
10836
10885
|
// src/builtin-plugin/EnsureChunkConditionsPlugin.ts
|
|
10837
|
-
var
|
|
10886
|
+
var import_binding30 = require("@rspack/binding");
|
|
10838
10887
|
var EnsureChunkConditionsPlugin = create2(
|
|
10839
|
-
|
|
10888
|
+
import_binding30.BuiltinPluginName.EnsureChunkConditionsPlugin,
|
|
10840
10889
|
() => {
|
|
10841
10890
|
}
|
|
10842
10891
|
);
|
|
10843
10892
|
|
|
10844
10893
|
// src/builtin-plugin/EvalDevToolModulePlugin.ts
|
|
10845
|
-
var
|
|
10894
|
+
var import_binding31 = require("@rspack/binding");
|
|
10846
10895
|
var EvalDevToolModulePlugin = create2(
|
|
10847
|
-
|
|
10896
|
+
import_binding31.BuiltinPluginName.EvalDevToolModulePlugin,
|
|
10848
10897
|
(options) => options,
|
|
10849
10898
|
"compilation"
|
|
10850
10899
|
);
|
|
10851
10900
|
|
|
10852
10901
|
// src/builtin-plugin/EvalSourceMapDevToolPlugin.ts
|
|
10853
|
-
var
|
|
10902
|
+
var import_binding32 = require("@rspack/binding");
|
|
10854
10903
|
var EvalSourceMapDevToolPlugin = create2(
|
|
10855
|
-
|
|
10904
|
+
import_binding32.BuiltinPluginName.EvalSourceMapDevToolPlugin,
|
|
10856
10905
|
(options) => {
|
|
10857
10906
|
return {
|
|
10858
10907
|
filename: options.filename || void 0,
|
|
@@ -10868,9 +10917,9 @@ var EvalSourceMapDevToolPlugin = create2(
|
|
|
10868
10917
|
);
|
|
10869
10918
|
|
|
10870
10919
|
// src/builtin-plugin/ExternalsPlugin.ts
|
|
10871
|
-
var
|
|
10920
|
+
var import_binding33 = require("@rspack/binding");
|
|
10872
10921
|
var ExternalsPlugin = create2(
|
|
10873
|
-
|
|
10922
|
+
import_binding33.BuiltinPluginName.ExternalsPlugin,
|
|
10874
10923
|
(type, externals2) => {
|
|
10875
10924
|
return {
|
|
10876
10925
|
type,
|
|
@@ -10924,30 +10973,30 @@ function getRawExternalItemValue(value) {
|
|
|
10924
10973
|
}
|
|
10925
10974
|
|
|
10926
10975
|
// src/builtin-plugin/FileUriPlugin.ts
|
|
10927
|
-
var
|
|
10976
|
+
var import_binding34 = require("@rspack/binding");
|
|
10928
10977
|
var FileUriPlugin = create2(
|
|
10929
|
-
|
|
10978
|
+
import_binding34.BuiltinPluginName.FileUriPlugin,
|
|
10930
10979
|
() => {
|
|
10931
10980
|
},
|
|
10932
10981
|
"compilation"
|
|
10933
10982
|
);
|
|
10934
10983
|
|
|
10935
10984
|
// src/builtin-plugin/FlagDependencyExportsPlugin.ts
|
|
10936
|
-
var
|
|
10985
|
+
var import_binding35 = require("@rspack/binding");
|
|
10937
10986
|
var FlagDependencyExportsPlugin = create2(
|
|
10938
|
-
|
|
10987
|
+
import_binding35.BuiltinPluginName.FlagDependencyExportsPlugin,
|
|
10939
10988
|
() => {
|
|
10940
10989
|
},
|
|
10941
10990
|
"compilation"
|
|
10942
10991
|
);
|
|
10943
10992
|
|
|
10944
10993
|
// src/builtin-plugin/FlagDependencyUsagePlugin.ts
|
|
10945
|
-
var
|
|
10994
|
+
var import_binding36 = require("@rspack/binding");
|
|
10946
10995
|
var FlagDependencyUsagePlugin = class extends RspackBuiltinPlugin {
|
|
10947
10996
|
constructor(global) {
|
|
10948
10997
|
super();
|
|
10949
10998
|
this.global = global;
|
|
10950
|
-
this.name =
|
|
10999
|
+
this.name = import_binding36.BuiltinPluginName.FlagDependencyUsagePlugin;
|
|
10951
11000
|
this.affectedHooks = "compilation";
|
|
10952
11001
|
}
|
|
10953
11002
|
raw(compiler) {
|
|
@@ -10978,11 +11027,11 @@ var FlagDependencyUsagePlugin = class extends RspackBuiltinPlugin {
|
|
|
10978
11027
|
};
|
|
10979
11028
|
|
|
10980
11029
|
// src/builtin-plugin/HotModuleReplacementPlugin.ts
|
|
10981
|
-
var
|
|
11030
|
+
var import_binding37 = require("@rspack/binding");
|
|
10982
11031
|
var HotModuleReplacementPlugin = class extends RspackBuiltinPlugin {
|
|
10983
11032
|
constructor() {
|
|
10984
11033
|
super(...arguments);
|
|
10985
|
-
this.name =
|
|
11034
|
+
this.name = import_binding37.BuiltinPluginName.HotModuleReplacementPlugin;
|
|
10986
11035
|
}
|
|
10987
11036
|
raw(compiler) {
|
|
10988
11037
|
if (compiler.options.output.strictModuleErrorHandling === void 0) {
|
|
@@ -10995,7 +11044,7 @@ var HotModuleReplacementPlugin = class extends RspackBuiltinPlugin {
|
|
|
10995
11044
|
// src/builtin-plugin/HtmlRspackPlugin.ts
|
|
10996
11045
|
var import_node_fs2 = __toESM(require("fs"));
|
|
10997
11046
|
var import_node_path8 = __toESM(require("path"));
|
|
10998
|
-
var
|
|
11047
|
+
var import_binding38 = require("@rspack/binding");
|
|
10999
11048
|
var liteTapable3 = __toESM(require("@rspack/lite-tapable"));
|
|
11000
11049
|
var import_zod3 = require("../compiled/zod/index.js");
|
|
11001
11050
|
|
|
@@ -11284,7 +11333,7 @@ var htmlRspackPluginOptions = import_zod3.z.strictObject({
|
|
|
11284
11333
|
hash: import_zod3.z.boolean().optional()
|
|
11285
11334
|
});
|
|
11286
11335
|
var HtmlRspackPluginImpl = create2(
|
|
11287
|
-
|
|
11336
|
+
import_binding38.BuiltinPluginName.HtmlRspackPlugin,
|
|
11288
11337
|
function(c = {}) {
|
|
11289
11338
|
validate(c, htmlRspackPluginOptions);
|
|
11290
11339
|
const meta = {};
|
|
@@ -11521,9 +11570,9 @@ HtmlRspackPlugin.getHooks = HtmlRspackPlugin.getCompilationHooks = (compilation)
|
|
|
11521
11570
|
HtmlRspackPlugin.version = 5;
|
|
11522
11571
|
|
|
11523
11572
|
// src/builtin-plugin/HttpExternalsRspackPlugin.ts
|
|
11524
|
-
var
|
|
11573
|
+
var import_binding39 = require("@rspack/binding");
|
|
11525
11574
|
var HttpExternalsRspackPlugin = create2(
|
|
11526
|
-
|
|
11575
|
+
import_binding39.BuiltinPluginName.HttpExternalsRspackPlugin,
|
|
11527
11576
|
(css, webAsync) => {
|
|
11528
11577
|
return {
|
|
11529
11578
|
css,
|
|
@@ -11533,7 +11582,7 @@ var HttpExternalsRspackPlugin = create2(
|
|
|
11533
11582
|
);
|
|
11534
11583
|
|
|
11535
11584
|
// src/builtin-plugin/IgnorePlugin.ts
|
|
11536
|
-
var
|
|
11585
|
+
var import_binding40 = require("@rspack/binding");
|
|
11537
11586
|
var import_zod4 = require("../compiled/zod/index.js");
|
|
11538
11587
|
var IgnorePluginOptions = import_zod4.z.union([
|
|
11539
11588
|
import_zod4.z.object({
|
|
@@ -11545,7 +11594,7 @@ var IgnorePluginOptions = import_zod4.z.union([
|
|
|
11545
11594
|
})
|
|
11546
11595
|
]);
|
|
11547
11596
|
var IgnorePlugin = create2(
|
|
11548
|
-
|
|
11597
|
+
import_binding40.BuiltinPluginName.IgnorePlugin,
|
|
11549
11598
|
(options) => {
|
|
11550
11599
|
validate(options, IgnorePluginOptions);
|
|
11551
11600
|
return options;
|
|
@@ -11553,22 +11602,22 @@ var IgnorePlugin = create2(
|
|
|
11553
11602
|
);
|
|
11554
11603
|
|
|
11555
11604
|
// src/builtin-plugin/InferAsyncModulesPlugin.ts
|
|
11556
|
-
var
|
|
11605
|
+
var import_binding41 = require("@rspack/binding");
|
|
11557
11606
|
var InferAsyncModulesPlugin = create2(
|
|
11558
|
-
|
|
11607
|
+
import_binding41.BuiltinPluginName.InferAsyncModulesPlugin,
|
|
11559
11608
|
() => {
|
|
11560
11609
|
},
|
|
11561
11610
|
"compilation"
|
|
11562
11611
|
);
|
|
11563
11612
|
|
|
11564
11613
|
// src/builtin-plugin/JavascriptModulesPlugin.ts
|
|
11565
|
-
var
|
|
11614
|
+
var import_binding42 = require("@rspack/binding");
|
|
11566
11615
|
var liteTapable4 = __toESM(require("@rspack/lite-tapable"));
|
|
11567
11616
|
var compilationHooksMap3 = /* @__PURE__ */ new WeakMap();
|
|
11568
11617
|
var JavascriptModulesPlugin = class extends RspackBuiltinPlugin {
|
|
11569
11618
|
constructor() {
|
|
11570
11619
|
super(...arguments);
|
|
11571
|
-
this.name =
|
|
11620
|
+
this.name = import_binding42.BuiltinPluginName.JavascriptModulesPlugin;
|
|
11572
11621
|
this.affectedHooks = "compilation";
|
|
11573
11622
|
}
|
|
11574
11623
|
raw() {
|
|
@@ -11592,18 +11641,18 @@ var JavascriptModulesPlugin = class extends RspackBuiltinPlugin {
|
|
|
11592
11641
|
};
|
|
11593
11642
|
|
|
11594
11643
|
// src/builtin-plugin/JsLoaderRspackPlugin.ts
|
|
11595
|
-
var
|
|
11644
|
+
var import_binding43 = require("@rspack/binding");
|
|
11596
11645
|
var JsLoaderRspackPlugin = create2(
|
|
11597
|
-
|
|
11646
|
+
import_binding43.BuiltinPluginName.JsLoaderRspackPlugin,
|
|
11598
11647
|
(compiler) => runLoaders.bind(null, compiler),
|
|
11599
11648
|
/* Not Inheretable */
|
|
11600
11649
|
"thisCompilation"
|
|
11601
11650
|
);
|
|
11602
11651
|
|
|
11603
11652
|
// src/builtin-plugin/JsonModulesPlugin.ts
|
|
11604
|
-
var
|
|
11653
|
+
var import_binding44 = require("@rspack/binding");
|
|
11605
11654
|
var JsonModulesPlugin = create2(
|
|
11606
|
-
|
|
11655
|
+
import_binding44.BuiltinPluginName.JsonModulesPlugin,
|
|
11607
11656
|
() => {
|
|
11608
11657
|
},
|
|
11609
11658
|
"compilation"
|
|
@@ -11739,9 +11788,9 @@ function moduleImpl(args) {
|
|
|
11739
11788
|
}
|
|
11740
11789
|
|
|
11741
11790
|
// src/builtin-plugin/lazy-compilation/lazyCompilation.ts
|
|
11742
|
-
var
|
|
11791
|
+
var import_binding45 = require("@rspack/binding");
|
|
11743
11792
|
var BuiltinLazyCompilationPlugin = create2(
|
|
11744
|
-
|
|
11793
|
+
import_binding45.BuiltinPluginName.LazyCompilationPlugin,
|
|
11745
11794
|
(module2, cacheable, entries, imports, test) => ({ module: module2, cacheable, imports, entries, test }),
|
|
11746
11795
|
"thisCompilation"
|
|
11747
11796
|
);
|
|
@@ -11786,21 +11835,21 @@ var LazyCompilationPlugin = class {
|
|
|
11786
11835
|
};
|
|
11787
11836
|
|
|
11788
11837
|
// src/builtin-plugin/LimitChunkCountPlugin.ts
|
|
11789
|
-
var
|
|
11838
|
+
var import_binding46 = require("@rspack/binding");
|
|
11790
11839
|
var LimitChunkCountPlugin = create2(
|
|
11791
|
-
|
|
11840
|
+
import_binding46.BuiltinPluginName.LimitChunkCountPlugin,
|
|
11792
11841
|
(options) => {
|
|
11793
11842
|
return options;
|
|
11794
11843
|
}
|
|
11795
11844
|
);
|
|
11796
11845
|
|
|
11797
11846
|
// src/builtin-plugin/MangleExportsPlugin.ts
|
|
11798
|
-
var
|
|
11847
|
+
var import_binding47 = require("@rspack/binding");
|
|
11799
11848
|
var MangleExportsPlugin = class extends RspackBuiltinPlugin {
|
|
11800
11849
|
constructor(deterministic) {
|
|
11801
11850
|
super();
|
|
11802
11851
|
this.deterministic = deterministic;
|
|
11803
|
-
this.name =
|
|
11852
|
+
this.name = import_binding47.BuiltinPluginName.MangleExportsPlugin;
|
|
11804
11853
|
this.affectedHooks = "compilation";
|
|
11805
11854
|
}
|
|
11806
11855
|
raw(compiler) {
|
|
@@ -11831,27 +11880,27 @@ var MangleExportsPlugin = class extends RspackBuiltinPlugin {
|
|
|
11831
11880
|
};
|
|
11832
11881
|
|
|
11833
11882
|
// src/builtin-plugin/MergeDuplicateChunksPlugin.ts
|
|
11834
|
-
var
|
|
11883
|
+
var import_binding48 = require("@rspack/binding");
|
|
11835
11884
|
var MergeDuplicateChunksPlugin = create2(
|
|
11836
|
-
|
|
11885
|
+
import_binding48.BuiltinPluginName.MergeDuplicateChunksPlugin,
|
|
11837
11886
|
() => {
|
|
11838
11887
|
}
|
|
11839
11888
|
);
|
|
11840
11889
|
|
|
11841
11890
|
// src/builtin-plugin/ModuleChunkFormatPlugin.ts
|
|
11842
|
-
var
|
|
11891
|
+
var import_binding49 = require("@rspack/binding");
|
|
11843
11892
|
var ModuleChunkFormatPlugin = create2(
|
|
11844
|
-
|
|
11893
|
+
import_binding49.BuiltinPluginName.ModuleChunkFormatPlugin,
|
|
11845
11894
|
() => {
|
|
11846
11895
|
}
|
|
11847
11896
|
);
|
|
11848
11897
|
|
|
11849
11898
|
// src/builtin-plugin/ModuleConcatenationPlugin.ts
|
|
11850
|
-
var
|
|
11899
|
+
var import_binding50 = require("@rspack/binding");
|
|
11851
11900
|
var ModuleConcatenationPlugin = class extends RspackBuiltinPlugin {
|
|
11852
11901
|
constructor() {
|
|
11853
11902
|
super(...arguments);
|
|
11854
|
-
this.name =
|
|
11903
|
+
this.name = import_binding50.BuiltinPluginName.ModuleConcatenationPlugin;
|
|
11855
11904
|
this.affectedHooks = "compilation";
|
|
11856
11905
|
}
|
|
11857
11906
|
raw(compiler) {
|
|
@@ -11882,52 +11931,52 @@ var ModuleConcatenationPlugin = class extends RspackBuiltinPlugin {
|
|
|
11882
11931
|
};
|
|
11883
11932
|
|
|
11884
11933
|
// src/builtin-plugin/NamedChunkIdsPlugin.ts
|
|
11885
|
-
var
|
|
11934
|
+
var import_binding51 = require("@rspack/binding");
|
|
11886
11935
|
var NamedChunkIdsPlugin = create2(
|
|
11887
|
-
|
|
11936
|
+
import_binding51.BuiltinPluginName.NamedChunkIdsPlugin,
|
|
11888
11937
|
() => {
|
|
11889
11938
|
},
|
|
11890
11939
|
"compilation"
|
|
11891
11940
|
);
|
|
11892
11941
|
|
|
11893
11942
|
// src/builtin-plugin/NamedModuleIdsPlugin.ts
|
|
11894
|
-
var
|
|
11943
|
+
var import_binding52 = require("@rspack/binding");
|
|
11895
11944
|
var NamedModuleIdsPlugin = create2(
|
|
11896
|
-
|
|
11945
|
+
import_binding52.BuiltinPluginName.NamedModuleIdsPlugin,
|
|
11897
11946
|
() => {
|
|
11898
11947
|
},
|
|
11899
11948
|
"compilation"
|
|
11900
11949
|
);
|
|
11901
11950
|
|
|
11902
11951
|
// src/builtin-plugin/NaturalChunkIdsPlugin.ts
|
|
11903
|
-
var
|
|
11952
|
+
var import_binding53 = require("@rspack/binding");
|
|
11904
11953
|
var NaturalChunkIdsPlugin = create2(
|
|
11905
|
-
|
|
11954
|
+
import_binding53.BuiltinPluginName.NaturalChunkIdsPlugin,
|
|
11906
11955
|
() => {
|
|
11907
11956
|
},
|
|
11908
11957
|
"compilation"
|
|
11909
11958
|
);
|
|
11910
11959
|
|
|
11911
11960
|
// src/builtin-plugin/NaturalModuleIdsPlugin.ts
|
|
11912
|
-
var
|
|
11961
|
+
var import_binding54 = require("@rspack/binding");
|
|
11913
11962
|
var NaturalModuleIdsPlugin = create2(
|
|
11914
|
-
|
|
11963
|
+
import_binding54.BuiltinPluginName.NaturalModuleIdsPlugin,
|
|
11915
11964
|
() => {
|
|
11916
11965
|
},
|
|
11917
11966
|
"compilation"
|
|
11918
11967
|
);
|
|
11919
11968
|
|
|
11920
11969
|
// src/builtin-plugin/NodeTargetPlugin.ts
|
|
11921
|
-
var
|
|
11970
|
+
var import_binding55 = require("@rspack/binding");
|
|
11922
11971
|
var NodeTargetPlugin = create2(
|
|
11923
|
-
|
|
11972
|
+
import_binding55.BuiltinPluginName.NodeTargetPlugin,
|
|
11924
11973
|
() => void 0
|
|
11925
11974
|
);
|
|
11926
11975
|
|
|
11927
11976
|
// src/builtin-plugin/ProgressPlugin.ts
|
|
11928
|
-
var
|
|
11977
|
+
var import_binding56 = require("@rspack/binding");
|
|
11929
11978
|
var ProgressPlugin = create2(
|
|
11930
|
-
|
|
11979
|
+
import_binding56.BuiltinPluginName.ProgressPlugin,
|
|
11931
11980
|
(progress = {}) => {
|
|
11932
11981
|
if (typeof progress === "function") {
|
|
11933
11982
|
return {
|
|
@@ -11941,9 +11990,9 @@ var ProgressPlugin = create2(
|
|
|
11941
11990
|
);
|
|
11942
11991
|
|
|
11943
11992
|
// src/builtin-plugin/ProvidePlugin.ts
|
|
11944
|
-
var
|
|
11993
|
+
var import_binding57 = require("@rspack/binding");
|
|
11945
11994
|
var ProvidePlugin = create2(
|
|
11946
|
-
|
|
11995
|
+
import_binding57.BuiltinPluginName.ProvidePlugin,
|
|
11947
11996
|
(provide) => {
|
|
11948
11997
|
const entries = Object.entries(provide).map(([key, value]) => {
|
|
11949
11998
|
if (typeof value === "string") {
|
|
@@ -11956,53 +12005,53 @@ var ProvidePlugin = create2(
|
|
|
11956
12005
|
);
|
|
11957
12006
|
|
|
11958
12007
|
// src/builtin-plugin/RealContentHashPlugin.ts
|
|
11959
|
-
var
|
|
12008
|
+
var import_binding58 = require("@rspack/binding");
|
|
11960
12009
|
var RealContentHashPlugin = create2(
|
|
11961
|
-
|
|
12010
|
+
import_binding58.BuiltinPluginName.RealContentHashPlugin,
|
|
11962
12011
|
() => {
|
|
11963
12012
|
},
|
|
11964
12013
|
"compilation"
|
|
11965
12014
|
);
|
|
11966
12015
|
|
|
11967
12016
|
// src/builtin-plugin/RemoveEmptyChunksPlugin.ts
|
|
11968
|
-
var
|
|
12017
|
+
var import_binding59 = require("@rspack/binding");
|
|
11969
12018
|
var RemoveEmptyChunksPlugin = create2(
|
|
11970
|
-
|
|
12019
|
+
import_binding59.BuiltinPluginName.RemoveEmptyChunksPlugin,
|
|
11971
12020
|
() => {
|
|
11972
12021
|
},
|
|
11973
12022
|
"compilation"
|
|
11974
12023
|
);
|
|
11975
12024
|
|
|
11976
12025
|
// src/builtin-plugin/RuntimeChunkPlugin.ts
|
|
11977
|
-
var
|
|
12026
|
+
var import_binding60 = require("@rspack/binding");
|
|
11978
12027
|
var RuntimeChunkPlugin = create2(
|
|
11979
|
-
|
|
12028
|
+
import_binding60.BuiltinPluginName.RuntimeChunkPlugin,
|
|
11980
12029
|
(options) => options,
|
|
11981
12030
|
"thisCompilation"
|
|
11982
12031
|
);
|
|
11983
12032
|
|
|
11984
12033
|
// src/builtin-plugin/RuntimePlugin.ts
|
|
11985
|
-
var
|
|
12034
|
+
var import_binding61 = require("@rspack/binding");
|
|
11986
12035
|
var RuntimePlugin = create2(
|
|
11987
|
-
|
|
12036
|
+
import_binding61.BuiltinPluginName.RuntimePlugin,
|
|
11988
12037
|
() => {
|
|
11989
12038
|
},
|
|
11990
12039
|
"compilation"
|
|
11991
12040
|
);
|
|
11992
12041
|
|
|
11993
12042
|
// src/builtin-plugin/SideEffectsFlagPlugin.ts
|
|
11994
|
-
var
|
|
12043
|
+
var import_binding62 = require("@rspack/binding");
|
|
11995
12044
|
var SideEffectsFlagPlugin = create2(
|
|
11996
|
-
|
|
12045
|
+
import_binding62.BuiltinPluginName.SideEffectsFlagPlugin,
|
|
11997
12046
|
() => {
|
|
11998
12047
|
},
|
|
11999
12048
|
"compilation"
|
|
12000
12049
|
);
|
|
12001
12050
|
|
|
12002
12051
|
// src/builtin-plugin/SizeLimitsPlugin.ts
|
|
12003
|
-
var
|
|
12052
|
+
var import_binding63 = require("@rspack/binding");
|
|
12004
12053
|
var SizeLimitsPlugin = create2(
|
|
12005
|
-
|
|
12054
|
+
import_binding63.BuiltinPluginName.SizeLimitsPlugin,
|
|
12006
12055
|
(options) => {
|
|
12007
12056
|
const hints = options.hints === false ? void 0 : options.hints;
|
|
12008
12057
|
return { ...options, hints };
|
|
@@ -12010,7 +12059,7 @@ var SizeLimitsPlugin = create2(
|
|
|
12010
12059
|
);
|
|
12011
12060
|
|
|
12012
12061
|
// src/builtin-plugin/SourceMapDevToolPlugin.ts
|
|
12013
|
-
var
|
|
12062
|
+
var import_binding64 = require("@rspack/binding");
|
|
12014
12063
|
|
|
12015
12064
|
// src/lib/ModuleFilenameHelpers.ts
|
|
12016
12065
|
var ModuleFilenameHelpers_exports = {};
|
|
@@ -12053,7 +12102,7 @@ var matchObject = (obj, str) => {
|
|
|
12053
12102
|
|
|
12054
12103
|
// src/builtin-plugin/SourceMapDevToolPlugin.ts
|
|
12055
12104
|
var SourceMapDevToolPlugin = create2(
|
|
12056
|
-
|
|
12105
|
+
import_binding64.BuiltinPluginName.SourceMapDevToolPlugin,
|
|
12057
12106
|
(options) => {
|
|
12058
12107
|
const { test, include, exclude, ...rest } = options;
|
|
12059
12108
|
const rawOptions = rest;
|
|
@@ -12067,7 +12116,7 @@ var SourceMapDevToolPlugin = create2(
|
|
|
12067
12116
|
|
|
12068
12117
|
// src/builtin-plugin/SplitChunksPlugin.ts
|
|
12069
12118
|
var import_node_assert5 = __toESM(require("assert"));
|
|
12070
|
-
var
|
|
12119
|
+
var import_binding65 = require("@rspack/binding");
|
|
12071
12120
|
|
|
12072
12121
|
// src/util/SplitChunkSize.ts
|
|
12073
12122
|
var JsSplitChunkSizes = class {
|
|
@@ -12090,7 +12139,7 @@ var SplitChunksPlugin = class extends RspackBuiltinPlugin {
|
|
|
12090
12139
|
constructor(options) {
|
|
12091
12140
|
super();
|
|
12092
12141
|
this.options = options;
|
|
12093
|
-
this.name =
|
|
12142
|
+
this.name = import_binding65.BuiltinPluginName.SplitChunksPlugin;
|
|
12094
12143
|
this.affectedHooks = "thisCompilation";
|
|
12095
12144
|
}
|
|
12096
12145
|
raw(compiler) {
|
|
@@ -12196,12 +12245,12 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
12196
12245
|
}
|
|
12197
12246
|
|
|
12198
12247
|
// src/builtin-plugin/LightningCssMinimizerRspackPlugin.ts
|
|
12199
|
-
var
|
|
12248
|
+
var import_binding66 = require("@rspack/binding");
|
|
12200
12249
|
var LightningCssMinimizerRspackPlugin = create2(
|
|
12201
|
-
|
|
12250
|
+
import_binding66.BuiltinPluginName.LightningCssMinimizerRspackPlugin,
|
|
12202
12251
|
(options) => {
|
|
12203
12252
|
var _a, _b, _c;
|
|
12204
|
-
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) ?? {};
|
|
12205
12254
|
const targets = ((_a = options == null ? void 0 : options.minimizerOptions) == null ? void 0 : _a.targets) ?? "fully supports es6";
|
|
12206
12255
|
return {
|
|
12207
12256
|
test: options == null ? void 0 : options.test,
|
|
@@ -12215,6 +12264,7 @@ var LightningCssMinimizerRspackPlugin = create2(
|
|
|
12215
12264
|
exclude: exclude ? toFeatures(exclude) : void 0,
|
|
12216
12265
|
targets: typeof targets === "string" ? [targets] : targets,
|
|
12217
12266
|
draft: draft ? { customMedia: draft.customMedia ?? false } : void 0,
|
|
12267
|
+
drafts: drafts ? { customMedia: drafts.customMedia ?? false } : void 0,
|
|
12218
12268
|
nonStandard: nonStandard ? {
|
|
12219
12269
|
deepSelectorCombinator: nonStandard.deepSelectorCombinator ?? false
|
|
12220
12270
|
} : void 0,
|
|
@@ -12225,16 +12275,16 @@ var LightningCssMinimizerRspackPlugin = create2(
|
|
|
12225
12275
|
);
|
|
12226
12276
|
|
|
12227
12277
|
// src/builtin-plugin/RemoveDuplicateModulesPlugin.ts
|
|
12228
|
-
var
|
|
12278
|
+
var import_binding67 = require("@rspack/binding");
|
|
12229
12279
|
var RemoveDuplicateModulesPlugin = create2(
|
|
12230
|
-
|
|
12280
|
+
import_binding67.BuiltinPluginName.RemoveDuplicateModulesPlugin,
|
|
12231
12281
|
() => {
|
|
12232
12282
|
return {};
|
|
12233
12283
|
}
|
|
12234
12284
|
);
|
|
12235
12285
|
|
|
12236
12286
|
// src/builtin-plugin/SwcJsMinimizerPlugin.ts
|
|
12237
|
-
var
|
|
12287
|
+
var import_binding68 = require("@rspack/binding");
|
|
12238
12288
|
function isObject2(value) {
|
|
12239
12289
|
const type = typeof value;
|
|
12240
12290
|
return value != null && (type === "object" || type === "function");
|
|
@@ -12277,7 +12327,7 @@ function getRawExtractCommentsOptions(extractComments) {
|
|
|
12277
12327
|
return void 0;
|
|
12278
12328
|
}
|
|
12279
12329
|
var SwcJsMinimizerRspackPlugin = create2(
|
|
12280
|
-
|
|
12330
|
+
import_binding68.BuiltinPluginName.SwcJsMinimizerRspackPlugin,
|
|
12281
12331
|
(options) => {
|
|
12282
12332
|
var _a, _b, _c, _d, _e;
|
|
12283
12333
|
let compress = ((_a = options == null ? void 0 : options.minimizerOptions) == null ? void 0 : _a.compress) ?? true;
|
|
@@ -12316,23 +12366,23 @@ var SwcJsMinimizerRspackPlugin = create2(
|
|
|
12316
12366
|
);
|
|
12317
12367
|
|
|
12318
12368
|
// src/builtin-plugin/WarnCaseSensitiveModulesPlugin.ts
|
|
12319
|
-
var
|
|
12369
|
+
var import_binding69 = require("@rspack/binding");
|
|
12320
12370
|
var WarnCaseSensitiveModulesPlugin = create2(
|
|
12321
|
-
|
|
12371
|
+
import_binding69.BuiltinPluginName.WarnCaseSensitiveModulesPlugin,
|
|
12322
12372
|
() => {
|
|
12323
12373
|
},
|
|
12324
12374
|
"compilation"
|
|
12325
12375
|
);
|
|
12326
12376
|
|
|
12327
12377
|
// src/builtin-plugin/WebWorkerTemplatePlugin.ts
|
|
12328
|
-
var
|
|
12378
|
+
var import_binding70 = require("@rspack/binding");
|
|
12329
12379
|
var WebWorkerTemplatePlugin = create2(
|
|
12330
|
-
|
|
12380
|
+
import_binding70.BuiltinPluginName.WebWorkerTemplatePlugin,
|
|
12331
12381
|
() => void 0
|
|
12332
12382
|
);
|
|
12333
12383
|
|
|
12334
12384
|
// src/builtin-plugin/WorkerPlugin.ts
|
|
12335
|
-
var
|
|
12385
|
+
var import_binding71 = require("@rspack/binding");
|
|
12336
12386
|
var WorkerPlugin = class extends RspackBuiltinPlugin {
|
|
12337
12387
|
constructor(chunkLoading2, wasmLoading2, module2, workerPublicPath2) {
|
|
12338
12388
|
super();
|
|
@@ -12340,7 +12390,7 @@ var WorkerPlugin = class extends RspackBuiltinPlugin {
|
|
|
12340
12390
|
this.wasmLoading = wasmLoading2;
|
|
12341
12391
|
this.module = module2;
|
|
12342
12392
|
this.workerPublicPath = workerPublicPath2;
|
|
12343
|
-
this.name =
|
|
12393
|
+
this.name = import_binding71.BuiltinPluginName.WorkerPlugin;
|
|
12344
12394
|
}
|
|
12345
12395
|
raw(compiler) {
|
|
12346
12396
|
if (this.chunkLoading) {
|
|
@@ -12354,25 +12404,25 @@ var WorkerPlugin = class extends RspackBuiltinPlugin {
|
|
|
12354
12404
|
};
|
|
12355
12405
|
|
|
12356
12406
|
// src/builtin-plugin/FetchCompileAsyncWasmPlugin.ts
|
|
12357
|
-
var
|
|
12407
|
+
var import_binding72 = require("@rspack/binding");
|
|
12358
12408
|
var FetchCompileAsyncWasmPlugin = create2(
|
|
12359
|
-
|
|
12409
|
+
import_binding72.BuiltinPluginName.FetchCompileAsyncWasmPlugin,
|
|
12360
12410
|
() => {
|
|
12361
12411
|
},
|
|
12362
12412
|
"thisCompilation"
|
|
12363
12413
|
);
|
|
12364
12414
|
|
|
12365
12415
|
// src/builtin-plugin/NoEmitOnErrorsPlugin.ts
|
|
12366
|
-
var
|
|
12416
|
+
var import_binding73 = require("@rspack/binding");
|
|
12367
12417
|
var NoEmitOnErrorsPlugin = create2(
|
|
12368
|
-
|
|
12418
|
+
import_binding73.BuiltinPluginName.NoEmitOnErrorsPlugin,
|
|
12369
12419
|
() => void 0
|
|
12370
12420
|
);
|
|
12371
12421
|
|
|
12372
12422
|
// src/builtin-plugin/ContextReplacementPlugin.ts
|
|
12373
|
-
var
|
|
12423
|
+
var import_binding74 = require("@rspack/binding");
|
|
12374
12424
|
var ContextReplacementPlugin = create2(
|
|
12375
|
-
|
|
12425
|
+
import_binding74.BuiltinPluginName.ContextReplacementPlugin,
|
|
12376
12426
|
(resourceRegExp, newContentResource, newContentRecursive, newContentRegExp) => {
|
|
12377
12427
|
const rawOptions = {
|
|
12378
12428
|
resourceRegExp
|
|
@@ -12402,9 +12452,9 @@ var ContextReplacementPlugin = create2(
|
|
|
12402
12452
|
);
|
|
12403
12453
|
|
|
12404
12454
|
// src/builtin-plugin/LibManifestPlugin.ts
|
|
12405
|
-
var
|
|
12455
|
+
var import_binding75 = require("@rspack/binding");
|
|
12406
12456
|
var LibManifestPlugin = create2(
|
|
12407
|
-
|
|
12457
|
+
import_binding75.BuiltinPluginName.LibManifestPlugin,
|
|
12408
12458
|
(options) => {
|
|
12409
12459
|
const { context: context2, entryOnly, format: format3, name: name2, path: path10, type } = options;
|
|
12410
12460
|
return {
|
|
@@ -12419,9 +12469,9 @@ var LibManifestPlugin = create2(
|
|
|
12419
12469
|
);
|
|
12420
12470
|
|
|
12421
12471
|
// src/builtin-plugin/DllEntryPlugin.ts
|
|
12422
|
-
var
|
|
12472
|
+
var import_binding76 = require("@rspack/binding");
|
|
12423
12473
|
var DllEntryPlugin = create2(
|
|
12424
|
-
|
|
12474
|
+
import_binding76.BuiltinPluginName.DllEntryPlugin,
|
|
12425
12475
|
(context2, entries, options) => {
|
|
12426
12476
|
return {
|
|
12427
12477
|
context: context2,
|
|
@@ -12432,9 +12482,9 @@ var DllEntryPlugin = create2(
|
|
|
12432
12482
|
);
|
|
12433
12483
|
|
|
12434
12484
|
// src/builtin-plugin/DllReferenceAgencyPlugin.ts
|
|
12435
|
-
var
|
|
12485
|
+
var import_binding77 = require("@rspack/binding");
|
|
12436
12486
|
var DllReferenceAgencyPlugin = create2(
|
|
12437
|
-
|
|
12487
|
+
import_binding77.BuiltinPluginName.DllReferenceAgencyPlugin,
|
|
12438
12488
|
(options) => options
|
|
12439
12489
|
);
|
|
12440
12490
|
|
|
@@ -13160,7 +13210,9 @@ var Compiler = class _Compiler {
|
|
|
13160
13210
|
new JsLoaderRspackPlugin(this).apply(this);
|
|
13161
13211
|
new ExecuteModulePlugin().apply(this);
|
|
13162
13212
|
this.hooks.shutdown.tap("rspack:cleanup", () => {
|
|
13163
|
-
this
|
|
13213
|
+
if (!this.running) {
|
|
13214
|
+
this.#instance = void 0;
|
|
13215
|
+
}
|
|
13164
13216
|
});
|
|
13165
13217
|
}
|
|
13166
13218
|
get recordsInputPath() {
|
|
@@ -18320,9 +18372,9 @@ var RspackOptionsApply = class {
|
|
|
18320
18372
|
var import_zod5 = __toESM(require("../compiled/zod/index.js"));
|
|
18321
18373
|
|
|
18322
18374
|
// src/builtin-plugin/FlagAllModulesAsUsedPlugin.ts
|
|
18323
|
-
var
|
|
18375
|
+
var import_binding78 = require("@rspack/binding");
|
|
18324
18376
|
var FlagAllModulesAsUsedPlugin = create2(
|
|
18325
|
-
|
|
18377
|
+
import_binding78.BuiltinPluginName.FlagAllModulesAsUsedPlugin,
|
|
18326
18378
|
(explanation) => {
|
|
18327
18379
|
return {
|
|
18328
18380
|
explanation
|
|
@@ -19211,9 +19263,9 @@ var NodeTemplatePlugin = class {
|
|
|
19211
19263
|
};
|
|
19212
19264
|
|
|
19213
19265
|
// src/container/ModuleFederationRuntimePlugin.ts
|
|
19214
|
-
var
|
|
19266
|
+
var import_binding79 = require("@rspack/binding");
|
|
19215
19267
|
var ModuleFederationRuntimePlugin = create2(
|
|
19216
|
-
|
|
19268
|
+
import_binding79.BuiltinPluginName.ModuleFederationRuntimePlugin,
|
|
19217
19269
|
() => {
|
|
19218
19270
|
}
|
|
19219
19271
|
);
|
|
@@ -19409,10 +19461,10 @@ function getDefaultEntryRuntime(paths, options, compiler) {
|
|
|
19409
19461
|
}
|
|
19410
19462
|
|
|
19411
19463
|
// src/sharing/ConsumeSharedPlugin.ts
|
|
19412
|
-
var
|
|
19464
|
+
var import_binding81 = require("@rspack/binding");
|
|
19413
19465
|
|
|
19414
19466
|
// src/sharing/ShareRuntimePlugin.ts
|
|
19415
|
-
var
|
|
19467
|
+
var import_binding80 = require("@rspack/binding");
|
|
19416
19468
|
var compilerSet = /* @__PURE__ */ new WeakSet();
|
|
19417
19469
|
function isSingleton(compiler) {
|
|
19418
19470
|
return compilerSet.has(compiler);
|
|
@@ -19424,7 +19476,7 @@ var ShareRuntimePlugin = class extends RspackBuiltinPlugin {
|
|
|
19424
19476
|
constructor(enhanced = false) {
|
|
19425
19477
|
super();
|
|
19426
19478
|
this.enhanced = enhanced;
|
|
19427
|
-
this.name =
|
|
19479
|
+
this.name = import_binding80.BuiltinPluginName.ShareRuntimePlugin;
|
|
19428
19480
|
}
|
|
19429
19481
|
raw(compiler) {
|
|
19430
19482
|
if (isSingleton(compiler)) return;
|
|
@@ -19443,7 +19495,7 @@ function isRequiredVersion(str) {
|
|
|
19443
19495
|
var ConsumeSharedPlugin = class extends RspackBuiltinPlugin {
|
|
19444
19496
|
constructor(options) {
|
|
19445
19497
|
super();
|
|
19446
|
-
this.name =
|
|
19498
|
+
this.name = import_binding81.BuiltinPluginName.ConsumeSharedPlugin;
|
|
19447
19499
|
this._options = {
|
|
19448
19500
|
consumes: parseOptions(
|
|
19449
19501
|
options.consumes,
|
|
@@ -19506,11 +19558,11 @@ var ConsumeSharedPlugin = class extends RspackBuiltinPlugin {
|
|
|
19506
19558
|
};
|
|
19507
19559
|
|
|
19508
19560
|
// src/sharing/ProvideSharedPlugin.ts
|
|
19509
|
-
var
|
|
19561
|
+
var import_binding82 = require("@rspack/binding");
|
|
19510
19562
|
var ProvideSharedPlugin = class extends RspackBuiltinPlugin {
|
|
19511
19563
|
constructor(options) {
|
|
19512
19564
|
super();
|
|
19513
|
-
this.name =
|
|
19565
|
+
this.name = import_binding82.BuiltinPluginName.ProvideSharedPlugin;
|
|
19514
19566
|
this._provides = parseOptions(
|
|
19515
19567
|
options.provides,
|
|
19516
19568
|
(item) => {
|
|
@@ -19615,11 +19667,11 @@ var SharePlugin = class {
|
|
|
19615
19667
|
};
|
|
19616
19668
|
|
|
19617
19669
|
// src/container/ContainerPlugin.ts
|
|
19618
|
-
var
|
|
19670
|
+
var import_binding83 = require("@rspack/binding");
|
|
19619
19671
|
var ContainerPlugin = class extends RspackBuiltinPlugin {
|
|
19620
19672
|
constructor(options) {
|
|
19621
19673
|
super();
|
|
19622
|
-
this.name =
|
|
19674
|
+
this.name = import_binding83.BuiltinPluginName.ContainerPlugin;
|
|
19623
19675
|
this._options = {
|
|
19624
19676
|
name: options.name,
|
|
19625
19677
|
shareScope: options.shareScope || "default",
|
|
@@ -19663,11 +19715,11 @@ var ContainerPlugin = class extends RspackBuiltinPlugin {
|
|
|
19663
19715
|
};
|
|
19664
19716
|
|
|
19665
19717
|
// src/container/ContainerReferencePlugin.ts
|
|
19666
|
-
var
|
|
19718
|
+
var import_binding84 = require("@rspack/binding");
|
|
19667
19719
|
var ContainerReferencePlugin = class extends RspackBuiltinPlugin {
|
|
19668
19720
|
constructor(options) {
|
|
19669
19721
|
super();
|
|
19670
|
-
this.name =
|
|
19722
|
+
this.name = import_binding84.BuiltinPluginName.ContainerReferencePlugin;
|
|
19671
19723
|
this._options = {
|
|
19672
19724
|
remoteType: options.remoteType,
|
|
19673
19725
|
remotes: parseOptions(
|
|
@@ -19752,7 +19804,7 @@ var ModuleFederationPluginV1 = class {
|
|
|
19752
19804
|
};
|
|
19753
19805
|
|
|
19754
19806
|
// src/exports.ts
|
|
19755
|
-
var
|
|
19807
|
+
var import_binding85 = require("@rspack/binding");
|
|
19756
19808
|
var rspackVersion = import_package.version;
|
|
19757
19809
|
var version = import_package.webpackVersion;
|
|
19758
19810
|
var WebpackError2 = Error;
|
|
@@ -19798,8 +19850,8 @@ var sharing = {
|
|
|
19798
19850
|
};
|
|
19799
19851
|
var experiments2 = {
|
|
19800
19852
|
globalTrace: {
|
|
19801
|
-
register:
|
|
19802
|
-
cleanup:
|
|
19853
|
+
register: import_binding85.registerGlobalTrace,
|
|
19854
|
+
cleanup: import_binding85.cleanupGlobalTrace
|
|
19803
19855
|
},
|
|
19804
19856
|
RemoveDuplicateModulesPlugin
|
|
19805
19857
|
};
|