@rspack/core 1.2.0-alpha.0 → 1.2.0-beta.0
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/Compilation.d.ts +0 -9
- package/dist/Module.d.ts +5 -8
- package/dist/builtin-plugin/css-extract/index.d.ts +1 -0
- package/dist/config/types.d.ts +1 -1
- package/dist/config/zod.d.ts +71 -71
- package/dist/index.js +212 -263
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -815,11 +815,8 @@ __export(exports_exports, {
|
|
|
815
815
|
var import_package = require("../package.json");
|
|
816
816
|
|
|
817
817
|
// src/Compilation.ts
|
|
818
|
-
var import_binding2 = require("@rspack/binding");
|
|
819
|
-
var liteTapable = __toESM(require("@rspack/lite-tapable"));
|
|
820
|
-
|
|
821
|
-
// src/Module.ts
|
|
822
818
|
var import_binding = require("@rspack/binding");
|
|
819
|
+
var liteTapable = __toESM(require("@rspack/lite-tapable"));
|
|
823
820
|
|
|
824
821
|
// src/Dependency.ts
|
|
825
822
|
var Dependency = class _Dependency {
|
|
@@ -1056,20 +1053,22 @@ var ContextModuleFactoryAfterResolveData = class _ContextModuleFactoryAfterResol
|
|
|
1056
1053
|
var MODULE_MAPPINGS = /* @__PURE__ */ new WeakMap();
|
|
1057
1054
|
var Module = class _Module {
|
|
1058
1055
|
#inner;
|
|
1059
|
-
static __from_binding(binding3
|
|
1056
|
+
static __from_binding(binding3) {
|
|
1060
1057
|
let module2 = MODULE_MAPPINGS.get(binding3);
|
|
1061
1058
|
if (module2) {
|
|
1062
1059
|
return module2;
|
|
1063
1060
|
}
|
|
1064
|
-
module2 = new _Module(binding3
|
|
1061
|
+
module2 = new _Module(binding3);
|
|
1065
1062
|
MODULE_MAPPINGS.set(binding3, module2);
|
|
1066
1063
|
return module2;
|
|
1067
1064
|
}
|
|
1068
1065
|
static __to_binding(module2) {
|
|
1069
1066
|
return module2.#inner;
|
|
1070
1067
|
}
|
|
1071
|
-
constructor(module2
|
|
1068
|
+
constructor(module2) {
|
|
1072
1069
|
this.#inner = module2;
|
|
1070
|
+
this.buildInfo = {};
|
|
1071
|
+
this.buildMeta = {};
|
|
1073
1072
|
Object.defineProperties(this, {
|
|
1074
1073
|
type: {
|
|
1075
1074
|
enumerable: true,
|
|
@@ -1125,46 +1124,19 @@ var Module = class _Module {
|
|
|
1125
1124
|
modules: {
|
|
1126
1125
|
enumerable: true,
|
|
1127
1126
|
get() {
|
|
1128
|
-
|
|
1129
|
-
return module2.modules ? module2.modules.map((m) => _Module.__from_binding(m)) : void 0;
|
|
1130
|
-
}
|
|
1131
|
-
return void 0;
|
|
1132
|
-
}
|
|
1133
|
-
},
|
|
1134
|
-
buildInfo: {
|
|
1135
|
-
enumerable: true,
|
|
1136
|
-
get() {
|
|
1137
|
-
const customModule = compilation == null ? void 0 : compilation.__internal__getCustomModule(
|
|
1138
|
-
module2.moduleIdentifier
|
|
1139
|
-
);
|
|
1140
|
-
return (customModule == null ? void 0 : customModule.buildInfo) || {};
|
|
1141
|
-
}
|
|
1142
|
-
},
|
|
1143
|
-
buildMeta: {
|
|
1144
|
-
enumerable: true,
|
|
1145
|
-
get() {
|
|
1146
|
-
const customModule = compilation == null ? void 0 : compilation.__internal__getCustomModule(
|
|
1147
|
-
module2.moduleIdentifier
|
|
1148
|
-
);
|
|
1149
|
-
return (customModule == null ? void 0 : customModule.buildMeta) || {};
|
|
1127
|
+
return module2.modules ? module2.modules.map((m) => _Module.__from_binding(m)) : void 0;
|
|
1150
1128
|
}
|
|
1151
1129
|
},
|
|
1152
1130
|
blocks: {
|
|
1153
1131
|
enumerable: true,
|
|
1154
1132
|
get() {
|
|
1155
|
-
|
|
1156
|
-
return module2.blocks.map((b) => DependenciesBlock.__from_binding(b));
|
|
1157
|
-
}
|
|
1158
|
-
return [];
|
|
1133
|
+
return module2.blocks.map((b) => DependenciesBlock.__from_binding(b));
|
|
1159
1134
|
}
|
|
1160
1135
|
},
|
|
1161
1136
|
dependencies: {
|
|
1162
1137
|
enumerable: true,
|
|
1163
1138
|
get() {
|
|
1164
|
-
|
|
1165
|
-
return module2.dependencies.map((d) => Dependency.__from_binding(d));
|
|
1166
|
-
}
|
|
1167
|
-
return [];
|
|
1139
|
+
return module2.dependencies.map((d) => Dependency.__from_binding(d));
|
|
1168
1140
|
}
|
|
1169
1141
|
},
|
|
1170
1142
|
useSourceMap: {
|
|
@@ -2900,7 +2872,7 @@ function memoizeValue(fn2) {
|
|
|
2900
2872
|
}
|
|
2901
2873
|
|
|
2902
2874
|
// src/Compilation.ts
|
|
2903
|
-
var _inner, _shutdown,
|
|
2875
|
+
var _inner, _shutdown, _addIncludeDispatcher, _Compilation_instances, createCachedAssets_fn, _rebuildModuleCaller;
|
|
2904
2876
|
var _Compilation = class _Compilation {
|
|
2905
2877
|
constructor(compiler, inner) {
|
|
2906
2878
|
__privateAdd(this, _Compilation_instances);
|
|
@@ -2911,11 +2883,6 @@ var _Compilation = class _Compilation {
|
|
|
2911
2883
|
return null;
|
|
2912
2884
|
}
|
|
2913
2885
|
};
|
|
2914
|
-
/**
|
|
2915
|
-
* Records the dynamically added fields for Module on the JavaScript side, using the Module identifier for association.
|
|
2916
|
-
* These fields are generally used within a plugin, so they do not need to be passed back to the Rust side.
|
|
2917
|
-
*/
|
|
2918
|
-
__privateAdd(this, _customModules);
|
|
2919
2886
|
__privateAdd(this, _addIncludeDispatcher);
|
|
2920
2887
|
this.fileDependencies = createFakeCompilationDependencies(
|
|
2921
2888
|
() => __privateGet(this, _inner).dependencies().fileDependencies,
|
|
@@ -2941,7 +2908,7 @@ var _Compilation = class _Compilation {
|
|
|
2941
2908
|
for (const [id, callback] of args) {
|
|
2942
2909
|
const m = modules.find((item) => item.moduleIdentifier === id);
|
|
2943
2910
|
if (m) {
|
|
2944
|
-
callback(err, Module.__from_binding(m
|
|
2911
|
+
callback(err, Module.__from_binding(m));
|
|
2945
2912
|
} else {
|
|
2946
2913
|
callback(err || new Error("module no found"), null);
|
|
2947
2914
|
}
|
|
@@ -2952,7 +2919,6 @@ var _Compilation = class _Compilation {
|
|
|
2952
2919
|
))(this));
|
|
2953
2920
|
__privateSet(this, _inner, inner);
|
|
2954
2921
|
__privateSet(this, _shutdown, false);
|
|
2955
|
-
__privateSet(this, _customModules, {});
|
|
2956
2922
|
const processAssetsHook = new liteTapable.AsyncSeriesHook([
|
|
2957
2923
|
"assets"
|
|
2958
2924
|
]);
|
|
@@ -3106,14 +3072,12 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3106
3072
|
}
|
|
3107
3073
|
get modules() {
|
|
3108
3074
|
return new Set(
|
|
3109
|
-
__privateGet(this, _inner).modules.map((module2) => Module.__from_binding(module2
|
|
3075
|
+
__privateGet(this, _inner).modules.map((module2) => Module.__from_binding(module2))
|
|
3110
3076
|
);
|
|
3111
3077
|
}
|
|
3112
3078
|
get builtModules() {
|
|
3113
3079
|
return new Set(
|
|
3114
|
-
__privateGet(this, _inner).builtModules.map(
|
|
3115
|
-
(module2) => Module.__from_binding(module2, this)
|
|
3116
|
-
)
|
|
3080
|
+
__privateGet(this, _inner).builtModules.map((module2) => Module.__from_binding(module2))
|
|
3117
3081
|
);
|
|
3118
3082
|
}
|
|
3119
3083
|
get chunks() {
|
|
@@ -3141,21 +3105,6 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3141
3105
|
get entries() {
|
|
3142
3106
|
return new Entries(__privateGet(this, _inner).entries);
|
|
3143
3107
|
}
|
|
3144
|
-
/**
|
|
3145
|
-
* Note: This is not a webpack public API, maybe removed in future.
|
|
3146
|
-
*
|
|
3147
|
-
* @internal
|
|
3148
|
-
*/
|
|
3149
|
-
__internal__getCustomModule(moduleIdentifier) {
|
|
3150
|
-
let module2 = __privateGet(this, _customModules)[moduleIdentifier];
|
|
3151
|
-
if (!module2) {
|
|
3152
|
-
module2 = __privateGet(this, _customModules)[moduleIdentifier] = {
|
|
3153
|
-
buildInfo: {},
|
|
3154
|
-
buildMeta: {}
|
|
3155
|
-
};
|
|
3156
|
-
}
|
|
3157
|
-
return module2;
|
|
3158
|
-
}
|
|
3159
3108
|
getCache(name2) {
|
|
3160
3109
|
return this.compiler.getCache(name2);
|
|
3161
3110
|
}
|
|
@@ -3306,7 +3255,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3306
3255
|
for (let i = 0; i < errs.length; i++) {
|
|
3307
3256
|
const error = errs[i];
|
|
3308
3257
|
inner.pushDiagnostic(
|
|
3309
|
-
JsRspackDiagnostic.__to_binding(error,
|
|
3258
|
+
JsRspackDiagnostic.__to_binding(error, import_binding.JsRspackSeverity.Error)
|
|
3310
3259
|
);
|
|
3311
3260
|
}
|
|
3312
3261
|
return Reflect.apply(target2, thisArg, errs);
|
|
@@ -3332,7 +3281,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3332
3281
|
const errList = errs.map((error) => {
|
|
3333
3282
|
return JsRspackDiagnostic.__to_binding(
|
|
3334
3283
|
error,
|
|
3335
|
-
|
|
3284
|
+
import_binding.JsRspackSeverity.Error
|
|
3336
3285
|
);
|
|
3337
3286
|
});
|
|
3338
3287
|
inner.spliceDiagnostic(0, 0, errList);
|
|
@@ -3345,7 +3294,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3345
3294
|
const errList = errors2.map((error) => {
|
|
3346
3295
|
return JsRspackDiagnostic.__to_binding(
|
|
3347
3296
|
error,
|
|
3348
|
-
|
|
3297
|
+
import_binding.JsRspackSeverity.Error
|
|
3349
3298
|
);
|
|
3350
3299
|
});
|
|
3351
3300
|
inner.spliceDiagnostic(startIdx, startIdx + delCount, errList);
|
|
@@ -3372,7 +3321,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3372
3321
|
0,
|
|
3373
3322
|
length,
|
|
3374
3323
|
errors.map((error) => {
|
|
3375
|
-
return JsRspackDiagnostic.__to_binding(error,
|
|
3324
|
+
return JsRspackDiagnostic.__to_binding(error, import_binding.JsRspackSeverity.Error);
|
|
3376
3325
|
})
|
|
3377
3326
|
);
|
|
3378
3327
|
}
|
|
@@ -3389,7 +3338,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3389
3338
|
thisArg,
|
|
3390
3339
|
processWarningsHook.call(warns).map((warn) => {
|
|
3391
3340
|
inner.pushDiagnostic(
|
|
3392
|
-
JsRspackDiagnostic.__to_binding(warn,
|
|
3341
|
+
JsRspackDiagnostic.__to_binding(warn, import_binding.JsRspackSeverity.Warn)
|
|
3393
3342
|
);
|
|
3394
3343
|
return warn;
|
|
3395
3344
|
})
|
|
@@ -3420,7 +3369,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3420
3369
|
warnings2.map((warn) => {
|
|
3421
3370
|
return JsRspackDiagnostic.__to_binding(
|
|
3422
3371
|
warn,
|
|
3423
|
-
|
|
3372
|
+
import_binding.JsRspackSeverity.Warn
|
|
3424
3373
|
);
|
|
3425
3374
|
})
|
|
3426
3375
|
);
|
|
@@ -3432,7 +3381,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3432
3381
|
handler(target2, thisArg, [startIdx, delCount, ...warns]) {
|
|
3433
3382
|
warns = processWarningsHook.call(warns);
|
|
3434
3383
|
const warnList = warns.map((warn) => {
|
|
3435
|
-
return JsRspackDiagnostic.__to_binding(warn,
|
|
3384
|
+
return JsRspackDiagnostic.__to_binding(warn, import_binding.JsRspackSeverity.Warn);
|
|
3436
3385
|
});
|
|
3437
3386
|
inner.spliceDiagnostic(startIdx, startIdx + delCount, warnList);
|
|
3438
3387
|
return Reflect.apply(target2, thisArg, [
|
|
@@ -3458,7 +3407,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3458
3407
|
0,
|
|
3459
3408
|
length,
|
|
3460
3409
|
warnings.map((warning) => {
|
|
3461
|
-
return JsRspackDiagnostic.__to_binding(warning,
|
|
3410
|
+
return JsRspackDiagnostic.__to_binding(warning, import_binding.JsRspackSeverity.Warn);
|
|
3462
3411
|
})
|
|
3463
3412
|
);
|
|
3464
3413
|
}
|
|
@@ -3708,7 +3657,6 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
3708
3657
|
};
|
|
3709
3658
|
_inner = new WeakMap();
|
|
3710
3659
|
_shutdown = new WeakMap();
|
|
3711
|
-
_customModules = new WeakMap();
|
|
3712
3660
|
_addIncludeDispatcher = new WeakMap();
|
|
3713
3661
|
_Compilation_instances = new WeakSet();
|
|
3714
3662
|
createCachedAssets_fn = function() {
|
|
@@ -5294,40 +5242,40 @@ function create2(name2, resolve2, affectedHooks) {
|
|
|
5294
5242
|
}
|
|
5295
5243
|
|
|
5296
5244
|
// src/builtin-plugin/APIPlugin.ts
|
|
5297
|
-
var
|
|
5298
|
-
var APIPlugin = create2(
|
|
5245
|
+
var import_binding2 = require("@rspack/binding");
|
|
5246
|
+
var APIPlugin = create2(import_binding2.BuiltinPluginName.APIPlugin, () => {
|
|
5299
5247
|
});
|
|
5300
5248
|
|
|
5301
5249
|
// src/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.ts
|
|
5302
|
-
var
|
|
5250
|
+
var import_binding3 = require("@rspack/binding");
|
|
5303
5251
|
var ArrayPushCallbackChunkFormatPlugin = create2(
|
|
5304
|
-
|
|
5252
|
+
import_binding3.BuiltinPluginName.ArrayPushCallbackChunkFormatPlugin,
|
|
5305
5253
|
() => {
|
|
5306
5254
|
}
|
|
5307
5255
|
);
|
|
5308
5256
|
|
|
5309
5257
|
// src/builtin-plugin/AssetModulesPlugin.ts
|
|
5310
|
-
var
|
|
5258
|
+
var import_binding4 = require("@rspack/binding");
|
|
5311
5259
|
var AssetModulesPlugin = create2(
|
|
5312
|
-
|
|
5260
|
+
import_binding4.BuiltinPluginName.AssetModulesPlugin,
|
|
5313
5261
|
() => {
|
|
5314
5262
|
},
|
|
5315
5263
|
"compilation"
|
|
5316
5264
|
);
|
|
5317
5265
|
|
|
5318
5266
|
// src/builtin-plugin/AsyncWebAssemblyModulesPlugin.ts
|
|
5319
|
-
var
|
|
5267
|
+
var import_binding5 = require("@rspack/binding");
|
|
5320
5268
|
var AsyncWebAssemblyModulesPlugin = create2(
|
|
5321
|
-
|
|
5269
|
+
import_binding5.BuiltinPluginName.AsyncWebAssemblyModulesPlugin,
|
|
5322
5270
|
() => {
|
|
5323
5271
|
},
|
|
5324
5272
|
"compilation"
|
|
5325
5273
|
);
|
|
5326
5274
|
|
|
5327
5275
|
// src/builtin-plugin/BannerPlugin.ts
|
|
5328
|
-
var
|
|
5276
|
+
var import_binding6 = require("@rspack/binding");
|
|
5329
5277
|
var BannerPlugin = create2(
|
|
5330
|
-
|
|
5278
|
+
import_binding6.BuiltinPluginName.BannerPlugin,
|
|
5331
5279
|
(args) => {
|
|
5332
5280
|
if (typeof args === "string" || typeof args === "function") {
|
|
5333
5281
|
return {
|
|
@@ -5348,9 +5296,9 @@ var BannerPlugin = create2(
|
|
|
5348
5296
|
);
|
|
5349
5297
|
|
|
5350
5298
|
// src/builtin-plugin/BundlerInfoRspackPlugin.ts
|
|
5351
|
-
var
|
|
5299
|
+
var import_binding7 = require("@rspack/binding");
|
|
5352
5300
|
var BundlerInfoRspackPlugin = create2(
|
|
5353
|
-
|
|
5301
|
+
import_binding7.BuiltinPluginName.BundlerInfoRspackPlugin,
|
|
5354
5302
|
(options) => {
|
|
5355
5303
|
return {
|
|
5356
5304
|
version: options.version || "unknown",
|
|
@@ -5361,25 +5309,25 @@ var BundlerInfoRspackPlugin = create2(
|
|
|
5361
5309
|
);
|
|
5362
5310
|
|
|
5363
5311
|
// src/builtin-plugin/ChunkPrefetchPreloadPlugin.ts
|
|
5364
|
-
var
|
|
5312
|
+
var import_binding8 = require("@rspack/binding");
|
|
5365
5313
|
var ChunkPrefetchPreloadPlugin = create2(
|
|
5366
|
-
|
|
5314
|
+
import_binding8.BuiltinPluginName.ChunkPrefetchPreloadPlugin,
|
|
5367
5315
|
() => {
|
|
5368
5316
|
}
|
|
5369
5317
|
);
|
|
5370
5318
|
|
|
5371
5319
|
// src/builtin-plugin/CommonJsChunkFormatPlugin.ts
|
|
5372
|
-
var
|
|
5320
|
+
var import_binding9 = require("@rspack/binding");
|
|
5373
5321
|
var CommonJsChunkFormatPlugin = create2(
|
|
5374
|
-
|
|
5322
|
+
import_binding9.BuiltinPluginName.CommonJsChunkFormatPlugin,
|
|
5375
5323
|
() => {
|
|
5376
5324
|
}
|
|
5377
5325
|
);
|
|
5378
5326
|
|
|
5379
5327
|
// src/builtin-plugin/CopyRspackPlugin.ts
|
|
5380
|
-
var
|
|
5328
|
+
var import_binding10 = require("@rspack/binding");
|
|
5381
5329
|
var CopyRspackPlugin = create2(
|
|
5382
|
-
|
|
5330
|
+
import_binding10.BuiltinPluginName.CopyRspackPlugin,
|
|
5383
5331
|
(copy) => {
|
|
5384
5332
|
const ret = {
|
|
5385
5333
|
patterns: []
|
|
@@ -5399,7 +5347,7 @@ var CopyRspackPlugin = create2(
|
|
|
5399
5347
|
);
|
|
5400
5348
|
|
|
5401
5349
|
// src/builtin-plugin/css-extract/index.ts
|
|
5402
|
-
var
|
|
5350
|
+
var import_binding11 = require("@rspack/binding");
|
|
5403
5351
|
var import_node_path3 = require("path");
|
|
5404
5352
|
|
|
5405
5353
|
// src/builtin-plugin/css-extract/loader.ts
|
|
@@ -5435,7 +5383,7 @@ var CssExtractRspackPlugin = class {
|
|
|
5435
5383
|
this.options.pathinfo = true;
|
|
5436
5384
|
}
|
|
5437
5385
|
compiler.__internal__registerBuiltinPlugin({
|
|
5438
|
-
name:
|
|
5386
|
+
name: import_binding11.BuiltinPluginName.CssExtractRspackPlugin,
|
|
5439
5387
|
options: this.normalizeOptions(this.options)
|
|
5440
5388
|
});
|
|
5441
5389
|
}
|
|
@@ -5484,7 +5432,8 @@ var CssExtractRspackPlugin = class {
|
|
|
5484
5432
|
obj[k] = v;
|
|
5485
5433
|
return obj;
|
|
5486
5434
|
}, {}) : {},
|
|
5487
|
-
pathinfo: options.pathinfo ?? false
|
|
5435
|
+
pathinfo: options.pathinfo ?? false,
|
|
5436
|
+
enforceRelative: options.enforceRelative ?? false
|
|
5488
5437
|
};
|
|
5489
5438
|
return normalzedOptions;
|
|
5490
5439
|
}
|
|
@@ -5493,27 +5442,27 @@ CssExtractRspackPlugin.pluginName = PLUGIN_NAME;
|
|
|
5493
5442
|
CssExtractRspackPlugin.loader = LOADER_PATH;
|
|
5494
5443
|
|
|
5495
5444
|
// src/builtin-plugin/CssModulesPlugin.ts
|
|
5496
|
-
var
|
|
5445
|
+
var import_binding12 = require("@rspack/binding");
|
|
5497
5446
|
var CssModulesPlugin = create2(
|
|
5498
|
-
|
|
5447
|
+
import_binding12.BuiltinPluginName.CssModulesPlugin,
|
|
5499
5448
|
() => {
|
|
5500
5449
|
},
|
|
5501
5450
|
"compilation"
|
|
5502
5451
|
);
|
|
5503
5452
|
|
|
5504
5453
|
// src/builtin-plugin/DataUriPlugin.ts
|
|
5505
|
-
var
|
|
5454
|
+
var import_binding13 = require("@rspack/binding");
|
|
5506
5455
|
var DataUriPlugin = create2(
|
|
5507
|
-
|
|
5456
|
+
import_binding13.BuiltinPluginName.DataUriPlugin,
|
|
5508
5457
|
() => {
|
|
5509
5458
|
},
|
|
5510
5459
|
"compilation"
|
|
5511
5460
|
);
|
|
5512
5461
|
|
|
5513
5462
|
// src/builtin-plugin/DefinePlugin.ts
|
|
5514
|
-
var
|
|
5463
|
+
var import_binding14 = require("@rspack/binding");
|
|
5515
5464
|
var DefinePlugin = create2(
|
|
5516
|
-
|
|
5465
|
+
import_binding14.BuiltinPluginName.DefinePlugin,
|
|
5517
5466
|
function(define) {
|
|
5518
5467
|
var _a;
|
|
5519
5468
|
const supportsBigIntLiteral = ((_a = this.options.output.environment) == null ? void 0 : _a.bigIntLiteral) ?? false;
|
|
@@ -5557,11 +5506,11 @@ var normalizeValue = (define, supportsBigIntLiteral) => {
|
|
|
5557
5506
|
};
|
|
5558
5507
|
|
|
5559
5508
|
// src/builtin-plugin/DeterministicChunkIdsPlugin.ts
|
|
5560
|
-
var
|
|
5509
|
+
var import_binding15 = require("@rspack/binding");
|
|
5561
5510
|
var DeterministicChunkIdsPlugin = class extends RspackBuiltinPlugin {
|
|
5562
5511
|
constructor() {
|
|
5563
5512
|
super(...arguments);
|
|
5564
|
-
this.name =
|
|
5513
|
+
this.name = import_binding15.BuiltinPluginName.DeterministicChunkIdsPlugin;
|
|
5565
5514
|
this.affectedHooks = "compilation";
|
|
5566
5515
|
}
|
|
5567
5516
|
raw(compiler) {
|
|
@@ -5580,11 +5529,11 @@ var DeterministicChunkIdsPlugin = class extends RspackBuiltinPlugin {
|
|
|
5580
5529
|
};
|
|
5581
5530
|
|
|
5582
5531
|
// src/builtin-plugin/DeterministicModuleIdsPlugin.ts
|
|
5583
|
-
var
|
|
5532
|
+
var import_binding16 = require("@rspack/binding");
|
|
5584
5533
|
var DeterministicModuleIdsPlugin = class extends RspackBuiltinPlugin {
|
|
5585
5534
|
constructor() {
|
|
5586
5535
|
super(...arguments);
|
|
5587
|
-
this.name =
|
|
5536
|
+
this.name = import_binding16.BuiltinPluginName.DeterministicModuleIdsPlugin;
|
|
5588
5537
|
this.affectedHooks = "compilation";
|
|
5589
5538
|
}
|
|
5590
5539
|
raw(compiler) {
|
|
@@ -5603,7 +5552,7 @@ var DeterministicModuleIdsPlugin = class extends RspackBuiltinPlugin {
|
|
|
5603
5552
|
};
|
|
5604
5553
|
|
|
5605
5554
|
// src/builtin-plugin/DynamicEntryPlugin.ts
|
|
5606
|
-
var
|
|
5555
|
+
var import_binding18 = require("@rspack/binding");
|
|
5607
5556
|
|
|
5608
5557
|
// src/lib/EntryOptionPlugin.ts
|
|
5609
5558
|
var import_node_assert = __toESM(require("assert"));
|
|
@@ -5676,9 +5625,9 @@ var EntryOptionPlugin = class _EntryOptionPlugin {
|
|
|
5676
5625
|
var EntryOptionPlugin_default = EntryOptionPlugin;
|
|
5677
5626
|
|
|
5678
5627
|
// src/builtin-plugin/EntryPlugin.ts
|
|
5679
|
-
var
|
|
5628
|
+
var import_binding17 = require("@rspack/binding");
|
|
5680
5629
|
var OriginEntryPlugin = create2(
|
|
5681
|
-
|
|
5630
|
+
import_binding17.BuiltinPluginName.EntryPlugin,
|
|
5682
5631
|
(context2, entry2, options = "") => {
|
|
5683
5632
|
const entryOptions = typeof options === "string" ? { name: options } : options;
|
|
5684
5633
|
return {
|
|
@@ -5718,7 +5667,7 @@ var DynamicEntryPlugin = class extends RspackBuiltinPlugin {
|
|
|
5718
5667
|
super();
|
|
5719
5668
|
this.context = context2;
|
|
5720
5669
|
this.entry = entry2;
|
|
5721
|
-
this.name =
|
|
5670
|
+
this.name = import_binding18.BuiltinPluginName.DynamicEntryPlugin;
|
|
5722
5671
|
this.affectedHooks = "make";
|
|
5723
5672
|
}
|
|
5724
5673
|
raw(compiler) {
|
|
@@ -5744,21 +5693,21 @@ var DynamicEntryPlugin = class extends RspackBuiltinPlugin {
|
|
|
5744
5693
|
};
|
|
5745
5694
|
|
|
5746
5695
|
// src/builtin-plugin/ElectronTargetPlugin.ts
|
|
5747
|
-
var
|
|
5696
|
+
var import_binding19 = require("@rspack/binding");
|
|
5748
5697
|
var ElectronTargetPlugin = create2(
|
|
5749
|
-
|
|
5698
|
+
import_binding19.BuiltinPluginName.ElectronTargetPlugin,
|
|
5750
5699
|
(context2) => context2 ?? "none"
|
|
5751
5700
|
);
|
|
5752
5701
|
|
|
5753
5702
|
// src/builtin-plugin/EnableChunkLoadingPlugin.ts
|
|
5754
|
-
var
|
|
5703
|
+
var import_binding20 = require("@rspack/binding");
|
|
5755
5704
|
var EnableChunkLoadingPlugin = create2(
|
|
5756
|
-
|
|
5705
|
+
import_binding20.BuiltinPluginName.EnableChunkLoadingPlugin,
|
|
5757
5706
|
(type) => type
|
|
5758
5707
|
);
|
|
5759
5708
|
|
|
5760
5709
|
// src/builtin-plugin/EnableLibraryPlugin.ts
|
|
5761
|
-
var
|
|
5710
|
+
var import_binding21 = require("@rspack/binding");
|
|
5762
5711
|
var enabledTypes = /* @__PURE__ */ new WeakMap();
|
|
5763
5712
|
var getEnabledTypes = (compiler) => {
|
|
5764
5713
|
let set = enabledTypes.get(compiler);
|
|
@@ -5772,7 +5721,7 @@ var EnableLibraryPlugin = class extends RspackBuiltinPlugin {
|
|
|
5772
5721
|
constructor(type) {
|
|
5773
5722
|
super();
|
|
5774
5723
|
this.type = type;
|
|
5775
|
-
this.name =
|
|
5724
|
+
this.name = import_binding21.BuiltinPluginName.EnableLibraryPlugin;
|
|
5776
5725
|
}
|
|
5777
5726
|
static setEnabled(compiler, type) {
|
|
5778
5727
|
getEnabledTypes(compiler).add(type);
|
|
@@ -5794,32 +5743,32 @@ var EnableLibraryPlugin = class extends RspackBuiltinPlugin {
|
|
|
5794
5743
|
};
|
|
5795
5744
|
|
|
5796
5745
|
// src/builtin-plugin/EnableWasmLoadingPlugin.ts
|
|
5797
|
-
var
|
|
5746
|
+
var import_binding22 = require("@rspack/binding");
|
|
5798
5747
|
var EnableWasmLoadingPlugin = create2(
|
|
5799
|
-
|
|
5748
|
+
import_binding22.BuiltinPluginName.EnableWasmLoadingPlugin,
|
|
5800
5749
|
(type) => type
|
|
5801
5750
|
);
|
|
5802
5751
|
|
|
5803
5752
|
// src/builtin-plugin/EnsureChunkConditionsPlugin.ts
|
|
5804
|
-
var
|
|
5753
|
+
var import_binding23 = require("@rspack/binding");
|
|
5805
5754
|
var EnsureChunkConditionsPlugin = create2(
|
|
5806
|
-
|
|
5755
|
+
import_binding23.BuiltinPluginName.EnsureChunkConditionsPlugin,
|
|
5807
5756
|
() => {
|
|
5808
5757
|
}
|
|
5809
5758
|
);
|
|
5810
5759
|
|
|
5811
5760
|
// src/builtin-plugin/EvalDevToolModulePlugin.ts
|
|
5812
|
-
var
|
|
5761
|
+
var import_binding24 = require("@rspack/binding");
|
|
5813
5762
|
var EvalDevToolModulePlugin = create2(
|
|
5814
|
-
|
|
5763
|
+
import_binding24.BuiltinPluginName.EvalDevToolModulePlugin,
|
|
5815
5764
|
(options) => options,
|
|
5816
5765
|
"compilation"
|
|
5817
5766
|
);
|
|
5818
5767
|
|
|
5819
5768
|
// src/builtin-plugin/EvalSourceMapDevToolPlugin.ts
|
|
5820
|
-
var
|
|
5769
|
+
var import_binding25 = require("@rspack/binding");
|
|
5821
5770
|
var EvalSourceMapDevToolPlugin = create2(
|
|
5822
|
-
|
|
5771
|
+
import_binding25.BuiltinPluginName.EvalSourceMapDevToolPlugin,
|
|
5823
5772
|
(options) => {
|
|
5824
5773
|
return {
|
|
5825
5774
|
filename: options.filename || void 0,
|
|
@@ -5835,11 +5784,11 @@ var EvalSourceMapDevToolPlugin = create2(
|
|
|
5835
5784
|
);
|
|
5836
5785
|
|
|
5837
5786
|
// src/builtin-plugin/ExternalsPlugin.ts
|
|
5838
|
-
var
|
|
5787
|
+
var import_binding28 = require("@rspack/binding");
|
|
5839
5788
|
|
|
5840
5789
|
// src/config/adapter.ts
|
|
5841
5790
|
var import_node_assert3 = __toESM(require("assert"));
|
|
5842
|
-
var
|
|
5791
|
+
var import_binding27 = require("@rspack/binding");
|
|
5843
5792
|
|
|
5844
5793
|
// src/util/identifier.ts
|
|
5845
5794
|
var import_node_path4 = __toESM(require("path"));
|
|
@@ -6147,7 +6096,7 @@ function toFeatures(featureOptions) {
|
|
|
6147
6096
|
var import_node_querystring = __toESM(require("querystring"));
|
|
6148
6097
|
var import_node_assert2 = __toESM(require("assert"));
|
|
6149
6098
|
var import_node_util3 = require("util");
|
|
6150
|
-
var
|
|
6099
|
+
var import_binding26 = require("@rspack/binding");
|
|
6151
6100
|
var import_webpack_sources2 = require("../compiled/webpack-sources/index.js");
|
|
6152
6101
|
|
|
6153
6102
|
// src/NormalModule.ts
|
|
@@ -6722,7 +6671,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6722
6671
|
error.moduleIdentifier = this._module.identifier();
|
|
6723
6672
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
6724
6673
|
error,
|
|
6725
|
-
severity:
|
|
6674
|
+
severity: import_binding26.JsRspackSeverity.Error
|
|
6726
6675
|
});
|
|
6727
6676
|
};
|
|
6728
6677
|
loaderContext.emitWarning = function emitWarning(warn) {
|
|
@@ -6738,7 +6687,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6738
6687
|
warning.moduleIdentifier = this._module.identifier();
|
|
6739
6688
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
6740
6689
|
error: warning,
|
|
6741
|
-
severity:
|
|
6690
|
+
severity: import_binding26.JsRspackSeverity.Warn
|
|
6742
6691
|
});
|
|
6743
6692
|
};
|
|
6744
6693
|
loaderContext.emitFile = function emitFile(name2, content, sourceMap, assetInfo) {
|
|
@@ -6779,7 +6728,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6779
6728
|
moduleIdentifier: context2._module.moduleIdentifier
|
|
6780
6729
|
});
|
|
6781
6730
|
compiler._lastCompilation.__internal__pushDiagnostic(
|
|
6782
|
-
(0,
|
|
6731
|
+
(0, import_binding26.formatDiagnostic)(d)
|
|
6783
6732
|
);
|
|
6784
6733
|
}
|
|
6785
6734
|
};
|
|
@@ -6806,10 +6755,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6806
6755
|
};
|
|
6807
6756
|
loaderContext._compiler = compiler;
|
|
6808
6757
|
loaderContext._compilation = compiler._lastCompilation;
|
|
6809
|
-
loaderContext._module = Module.__from_binding(
|
|
6810
|
-
context2._module,
|
|
6811
|
-
compiler._lastCompilation
|
|
6812
|
-
);
|
|
6758
|
+
loaderContext._module = Module.__from_binding(context2._module);
|
|
6813
6759
|
loaderContext.getOptions = () => {
|
|
6814
6760
|
const loader2 = getCurrentLoader(loaderContext);
|
|
6815
6761
|
let options = loader2 == null ? void 0 : loader2.options;
|
|
@@ -6869,7 +6815,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6869
6815
|
});
|
|
6870
6816
|
try {
|
|
6871
6817
|
switch (loaderState) {
|
|
6872
|
-
case
|
|
6818
|
+
case import_binding26.JsLoaderState.Pitching: {
|
|
6873
6819
|
while (loaderContext.loaderIndex < loaderContext.loaders.length) {
|
|
6874
6820
|
const currentLoaderObject = loaderContext.loaders[loaderContext.loaderIndex];
|
|
6875
6821
|
if (currentLoaderObject.shouldYield()) break;
|
|
@@ -6897,7 +6843,7 @@ async function runLoaders(compiler, context2) {
|
|
|
6897
6843
|
}
|
|
6898
6844
|
break;
|
|
6899
6845
|
}
|
|
6900
|
-
case
|
|
6846
|
+
case import_binding26.JsLoaderState.Normal: {
|
|
6901
6847
|
let content = context2.content;
|
|
6902
6848
|
let sourceMap = JsSourceMap.__from_binding(context2.sourceMap);
|
|
6903
6849
|
let additionalData = context2.additionalData;
|
|
@@ -7070,6 +7016,7 @@ var getRawOptions = (options, compiler) => {
|
|
|
7070
7016
|
const mode2 = options.mode;
|
|
7071
7017
|
const experiments3 = options.experiments;
|
|
7072
7018
|
return {
|
|
7019
|
+
name: options.name,
|
|
7073
7020
|
mode: mode2,
|
|
7074
7021
|
context: options.context,
|
|
7075
7022
|
output: options.output,
|
|
@@ -7282,31 +7229,31 @@ var getRawModuleRule = (rule, path11, options, upperType) => {
|
|
|
7282
7229
|
function getRawRuleSetCondition(condition) {
|
|
7283
7230
|
if (typeof condition === "string") {
|
|
7284
7231
|
return {
|
|
7285
|
-
type:
|
|
7232
|
+
type: import_binding27.RawRuleSetConditionType.string,
|
|
7286
7233
|
string: condition
|
|
7287
7234
|
};
|
|
7288
7235
|
}
|
|
7289
7236
|
if (condition instanceof RegExp) {
|
|
7290
7237
|
return {
|
|
7291
|
-
type:
|
|
7238
|
+
type: import_binding27.RawRuleSetConditionType.regexp,
|
|
7292
7239
|
regexp: condition
|
|
7293
7240
|
};
|
|
7294
7241
|
}
|
|
7295
7242
|
if (typeof condition === "function") {
|
|
7296
7243
|
return {
|
|
7297
|
-
type:
|
|
7244
|
+
type: import_binding27.RawRuleSetConditionType.func,
|
|
7298
7245
|
func: condition
|
|
7299
7246
|
};
|
|
7300
7247
|
}
|
|
7301
7248
|
if (Array.isArray(condition)) {
|
|
7302
7249
|
return {
|
|
7303
|
-
type:
|
|
7250
|
+
type: import_binding27.RawRuleSetConditionType.array,
|
|
7304
7251
|
array: condition.map((i) => getRawRuleSetCondition(i))
|
|
7305
7252
|
};
|
|
7306
7253
|
}
|
|
7307
7254
|
if (typeof condition === "object" && condition !== null) {
|
|
7308
7255
|
return {
|
|
7309
|
-
type:
|
|
7256
|
+
type: import_binding27.RawRuleSetConditionType.logical,
|
|
7310
7257
|
logical: [getRawRuleSetLogicalConditions(condition)]
|
|
7311
7258
|
};
|
|
7312
7259
|
}
|
|
@@ -10669,6 +10616,8 @@ var externalItem = import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).o
|
|
|
10669
10616
|
)
|
|
10670
10617
|
).or(
|
|
10671
10618
|
import_zod2.z.function().args(externalItemFunctionData).returns(import_zod2.z.promise(externalItemValue))
|
|
10619
|
+
).or(
|
|
10620
|
+
import_zod2.z.function().args(externalItemFunctionData).returns(externalItemValue)
|
|
10672
10621
|
);
|
|
10673
10622
|
var externals = externalItem.array().or(externalItem);
|
|
10674
10623
|
var externalsPresets = import_zod2.z.strictObject({
|
|
@@ -11084,7 +11033,7 @@ var ExternalsPlugin = class extends RspackBuiltinPlugin {
|
|
|
11084
11033
|
super();
|
|
11085
11034
|
this.type = type;
|
|
11086
11035
|
this.externals = externals2;
|
|
11087
|
-
this.name =
|
|
11036
|
+
this.name = import_binding28.BuiltinPluginName.ExternalsPlugin;
|
|
11088
11037
|
}
|
|
11089
11038
|
raw(compiler) {
|
|
11090
11039
|
const { type, externals: externals2 } = this;
|
|
@@ -11168,6 +11117,13 @@ function getRawExternalItem(compiler, item) {
|
|
|
11168
11117
|
}),
|
|
11169
11118
|
(e) => reject(e)
|
|
11170
11119
|
);
|
|
11120
|
+
} else if (item.length === 1) {
|
|
11121
|
+
resolve2({
|
|
11122
|
+
result: getRawExternalItemValueFormFnResult(
|
|
11123
|
+
promise
|
|
11124
|
+
),
|
|
11125
|
+
externalType: void 0
|
|
11126
|
+
});
|
|
11171
11127
|
}
|
|
11172
11128
|
});
|
|
11173
11129
|
};
|
|
@@ -11192,30 +11148,30 @@ function getRawExternalItemValue(value) {
|
|
|
11192
11148
|
}
|
|
11193
11149
|
|
|
11194
11150
|
// src/builtin-plugin/FileUriPlugin.ts
|
|
11195
|
-
var
|
|
11151
|
+
var import_binding29 = require("@rspack/binding");
|
|
11196
11152
|
var FileUriPlugin = create2(
|
|
11197
|
-
|
|
11153
|
+
import_binding29.BuiltinPluginName.FileUriPlugin,
|
|
11198
11154
|
() => {
|
|
11199
11155
|
},
|
|
11200
11156
|
"compilation"
|
|
11201
11157
|
);
|
|
11202
11158
|
|
|
11203
11159
|
// src/builtin-plugin/FlagDependencyExportsPlugin.ts
|
|
11204
|
-
var
|
|
11160
|
+
var import_binding30 = require("@rspack/binding");
|
|
11205
11161
|
var FlagDependencyExportsPlugin = create2(
|
|
11206
|
-
|
|
11162
|
+
import_binding30.BuiltinPluginName.FlagDependencyExportsPlugin,
|
|
11207
11163
|
() => {
|
|
11208
11164
|
},
|
|
11209
11165
|
"compilation"
|
|
11210
11166
|
);
|
|
11211
11167
|
|
|
11212
11168
|
// src/builtin-plugin/FlagDependencyUsagePlugin.ts
|
|
11213
|
-
var
|
|
11169
|
+
var import_binding31 = require("@rspack/binding");
|
|
11214
11170
|
var FlagDependencyUsagePlugin = class extends RspackBuiltinPlugin {
|
|
11215
11171
|
constructor(global) {
|
|
11216
11172
|
super();
|
|
11217
11173
|
this.global = global;
|
|
11218
|
-
this.name =
|
|
11174
|
+
this.name = import_binding31.BuiltinPluginName.FlagDependencyUsagePlugin;
|
|
11219
11175
|
this.affectedHooks = "compilation";
|
|
11220
11176
|
}
|
|
11221
11177
|
raw(compiler) {
|
|
@@ -11246,11 +11202,11 @@ var FlagDependencyUsagePlugin = class extends RspackBuiltinPlugin {
|
|
|
11246
11202
|
};
|
|
11247
11203
|
|
|
11248
11204
|
// src/builtin-plugin/HotModuleReplacementPlugin.ts
|
|
11249
|
-
var
|
|
11205
|
+
var import_binding32 = require("@rspack/binding");
|
|
11250
11206
|
var HotModuleReplacementPlugin = class extends RspackBuiltinPlugin {
|
|
11251
11207
|
constructor() {
|
|
11252
11208
|
super(...arguments);
|
|
11253
|
-
this.name =
|
|
11209
|
+
this.name = import_binding32.BuiltinPluginName.HotModuleReplacementPlugin;
|
|
11254
11210
|
}
|
|
11255
11211
|
raw(compiler) {
|
|
11256
11212
|
if (compiler.options.output.strictModuleErrorHandling === void 0) {
|
|
@@ -11263,7 +11219,7 @@ var HotModuleReplacementPlugin = class extends RspackBuiltinPlugin {
|
|
|
11263
11219
|
// src/builtin-plugin/HtmlRspackPlugin.ts
|
|
11264
11220
|
var import_node_fs2 = __toESM(require("fs"));
|
|
11265
11221
|
var import_node_path9 = __toESM(require("path"));
|
|
11266
|
-
var
|
|
11222
|
+
var import_binding33 = require("@rspack/binding");
|
|
11267
11223
|
var liteTapable3 = __toESM(require("@rspack/lite-tapable"));
|
|
11268
11224
|
var import_zod3 = require("../compiled/zod/index.js");
|
|
11269
11225
|
|
|
@@ -11553,7 +11509,7 @@ var htmlRspackPluginOptions = import_zod3.z.strictObject({
|
|
|
11553
11509
|
hash: import_zod3.z.boolean().optional()
|
|
11554
11510
|
});
|
|
11555
11511
|
var HtmlRspackPluginImpl = create2(
|
|
11556
|
-
|
|
11512
|
+
import_binding33.BuiltinPluginName.HtmlRspackPlugin,
|
|
11557
11513
|
function(c = {}) {
|
|
11558
11514
|
validate(c, htmlRspackPluginOptions);
|
|
11559
11515
|
const meta = {};
|
|
@@ -11792,9 +11748,9 @@ HtmlRspackPlugin.getHooks = HtmlRspackPlugin.getCompilationHooks = (compilation)
|
|
|
11792
11748
|
HtmlRspackPlugin.version = 5;
|
|
11793
11749
|
|
|
11794
11750
|
// src/builtin-plugin/HttpExternalsRspackPlugin.ts
|
|
11795
|
-
var
|
|
11751
|
+
var import_binding34 = require("@rspack/binding");
|
|
11796
11752
|
var HttpExternalsRspackPlugin = create2(
|
|
11797
|
-
|
|
11753
|
+
import_binding34.BuiltinPluginName.HttpExternalsRspackPlugin,
|
|
11798
11754
|
(css, webAsync) => {
|
|
11799
11755
|
return {
|
|
11800
11756
|
css,
|
|
@@ -11804,7 +11760,7 @@ var HttpExternalsRspackPlugin = create2(
|
|
|
11804
11760
|
);
|
|
11805
11761
|
|
|
11806
11762
|
// src/builtin-plugin/IgnorePlugin.ts
|
|
11807
|
-
var
|
|
11763
|
+
var import_binding35 = require("@rspack/binding");
|
|
11808
11764
|
var import_zod4 = require("../compiled/zod/index.js");
|
|
11809
11765
|
var IgnorePluginOptions = import_zod4.z.union([
|
|
11810
11766
|
import_zod4.z.object({
|
|
@@ -11816,7 +11772,7 @@ var IgnorePluginOptions = import_zod4.z.union([
|
|
|
11816
11772
|
})
|
|
11817
11773
|
]);
|
|
11818
11774
|
var IgnorePlugin = create2(
|
|
11819
|
-
|
|
11775
|
+
import_binding35.BuiltinPluginName.IgnorePlugin,
|
|
11820
11776
|
(options) => {
|
|
11821
11777
|
validate(options, IgnorePluginOptions);
|
|
11822
11778
|
return options;
|
|
@@ -11824,22 +11780,22 @@ var IgnorePlugin = create2(
|
|
|
11824
11780
|
);
|
|
11825
11781
|
|
|
11826
11782
|
// src/builtin-plugin/InferAsyncModulesPlugin.ts
|
|
11827
|
-
var
|
|
11783
|
+
var import_binding36 = require("@rspack/binding");
|
|
11828
11784
|
var InferAsyncModulesPlugin = create2(
|
|
11829
|
-
|
|
11785
|
+
import_binding36.BuiltinPluginName.InferAsyncModulesPlugin,
|
|
11830
11786
|
() => {
|
|
11831
11787
|
},
|
|
11832
11788
|
"compilation"
|
|
11833
11789
|
);
|
|
11834
11790
|
|
|
11835
11791
|
// src/builtin-plugin/JavascriptModulesPlugin.ts
|
|
11836
|
-
var
|
|
11792
|
+
var import_binding37 = require("@rspack/binding");
|
|
11837
11793
|
var liteTapable4 = __toESM(require("@rspack/lite-tapable"));
|
|
11838
11794
|
var compilationHooksMap3 = /* @__PURE__ */ new WeakMap();
|
|
11839
11795
|
var JavascriptModulesPlugin = class extends RspackBuiltinPlugin {
|
|
11840
11796
|
constructor() {
|
|
11841
11797
|
super(...arguments);
|
|
11842
|
-
this.name =
|
|
11798
|
+
this.name = import_binding37.BuiltinPluginName.JavascriptModulesPlugin;
|
|
11843
11799
|
this.affectedHooks = "compilation";
|
|
11844
11800
|
}
|
|
11845
11801
|
raw() {
|
|
@@ -11863,18 +11819,18 @@ var JavascriptModulesPlugin = class extends RspackBuiltinPlugin {
|
|
|
11863
11819
|
};
|
|
11864
11820
|
|
|
11865
11821
|
// src/builtin-plugin/JsLoaderRspackPlugin.ts
|
|
11866
|
-
var
|
|
11822
|
+
var import_binding38 = require("@rspack/binding");
|
|
11867
11823
|
var JsLoaderRspackPlugin = create2(
|
|
11868
|
-
|
|
11824
|
+
import_binding38.BuiltinPluginName.JsLoaderRspackPlugin,
|
|
11869
11825
|
(compiler) => runLoaders.bind(null, compiler),
|
|
11870
11826
|
/* Not Inheretable */
|
|
11871
11827
|
"thisCompilation"
|
|
11872
11828
|
);
|
|
11873
11829
|
|
|
11874
11830
|
// src/builtin-plugin/JsonModulesPlugin.ts
|
|
11875
|
-
var
|
|
11831
|
+
var import_binding39 = require("@rspack/binding");
|
|
11876
11832
|
var JsonModulesPlugin = create2(
|
|
11877
|
-
|
|
11833
|
+
import_binding39.BuiltinPluginName.JsonModulesPlugin,
|
|
11878
11834
|
() => {
|
|
11879
11835
|
},
|
|
11880
11836
|
"compilation"
|
|
@@ -12010,9 +11966,9 @@ function moduleImpl(args) {
|
|
|
12010
11966
|
}
|
|
12011
11967
|
|
|
12012
11968
|
// src/builtin-plugin/lazy-compilation/lazyCompilation.ts
|
|
12013
|
-
var
|
|
11969
|
+
var import_binding40 = require("@rspack/binding");
|
|
12014
11970
|
var BuiltinLazyCompilationPlugin = create2(
|
|
12015
|
-
|
|
11971
|
+
import_binding40.BuiltinPluginName.LazyCompilationPlugin,
|
|
12016
11972
|
(module2, cacheable, entries, imports, test) => ({ module: module2, cacheable, imports, entries, test }),
|
|
12017
11973
|
"thisCompilation"
|
|
12018
11974
|
);
|
|
@@ -12028,8 +11984,8 @@ var LazyCompilationPlugin = class {
|
|
|
12028
11984
|
}
|
|
12029
11985
|
apply(compiler) {
|
|
12030
11986
|
const backend = backend_default({
|
|
12031
|
-
|
|
12032
|
-
|
|
11987
|
+
client: require.resolve(`../hot/lazy-compilation-${compiler.options.externalsPresets.node ? "node" : "web"}.js`),
|
|
11988
|
+
...this.backend
|
|
12033
11989
|
});
|
|
12034
11990
|
new BuiltinLazyCompilationPlugin(
|
|
12035
11991
|
moduleImpl,
|
|
@@ -12057,21 +12013,21 @@ var LazyCompilationPlugin = class {
|
|
|
12057
12013
|
};
|
|
12058
12014
|
|
|
12059
12015
|
// src/builtin-plugin/LimitChunkCountPlugin.ts
|
|
12060
|
-
var
|
|
12016
|
+
var import_binding41 = require("@rspack/binding");
|
|
12061
12017
|
var LimitChunkCountPlugin = create2(
|
|
12062
|
-
|
|
12018
|
+
import_binding41.BuiltinPluginName.LimitChunkCountPlugin,
|
|
12063
12019
|
(options) => {
|
|
12064
12020
|
return options;
|
|
12065
12021
|
}
|
|
12066
12022
|
);
|
|
12067
12023
|
|
|
12068
12024
|
// src/builtin-plugin/MangleExportsPlugin.ts
|
|
12069
|
-
var
|
|
12025
|
+
var import_binding42 = require("@rspack/binding");
|
|
12070
12026
|
var MangleExportsPlugin = class extends RspackBuiltinPlugin {
|
|
12071
12027
|
constructor(deterministic) {
|
|
12072
12028
|
super();
|
|
12073
12029
|
this.deterministic = deterministic;
|
|
12074
|
-
this.name =
|
|
12030
|
+
this.name = import_binding42.BuiltinPluginName.MangleExportsPlugin;
|
|
12075
12031
|
this.affectedHooks = "compilation";
|
|
12076
12032
|
}
|
|
12077
12033
|
raw(compiler) {
|
|
@@ -12102,27 +12058,27 @@ var MangleExportsPlugin = class extends RspackBuiltinPlugin {
|
|
|
12102
12058
|
};
|
|
12103
12059
|
|
|
12104
12060
|
// src/builtin-plugin/MergeDuplicateChunksPlugin.ts
|
|
12105
|
-
var
|
|
12061
|
+
var import_binding43 = require("@rspack/binding");
|
|
12106
12062
|
var MergeDuplicateChunksPlugin = create2(
|
|
12107
|
-
|
|
12063
|
+
import_binding43.BuiltinPluginName.MergeDuplicateChunksPlugin,
|
|
12108
12064
|
() => {
|
|
12109
12065
|
}
|
|
12110
12066
|
);
|
|
12111
12067
|
|
|
12112
12068
|
// src/builtin-plugin/ModuleChunkFormatPlugin.ts
|
|
12113
|
-
var
|
|
12069
|
+
var import_binding44 = require("@rspack/binding");
|
|
12114
12070
|
var ModuleChunkFormatPlugin = create2(
|
|
12115
|
-
|
|
12071
|
+
import_binding44.BuiltinPluginName.ModuleChunkFormatPlugin,
|
|
12116
12072
|
() => {
|
|
12117
12073
|
}
|
|
12118
12074
|
);
|
|
12119
12075
|
|
|
12120
12076
|
// src/builtin-plugin/ModuleConcatenationPlugin.ts
|
|
12121
|
-
var
|
|
12077
|
+
var import_binding45 = require("@rspack/binding");
|
|
12122
12078
|
var ModuleConcatenationPlugin = class extends RspackBuiltinPlugin {
|
|
12123
12079
|
constructor() {
|
|
12124
12080
|
super(...arguments);
|
|
12125
|
-
this.name =
|
|
12081
|
+
this.name = import_binding45.BuiltinPluginName.ModuleConcatenationPlugin;
|
|
12126
12082
|
this.affectedHooks = "compilation";
|
|
12127
12083
|
}
|
|
12128
12084
|
raw(compiler) {
|
|
@@ -12177,29 +12133,29 @@ var ModuleConcatenationPlugin = class extends RspackBuiltinPlugin {
|
|
|
12177
12133
|
};
|
|
12178
12134
|
|
|
12179
12135
|
// src/builtin-plugin/NamedChunkIdsPlugin.ts
|
|
12180
|
-
var
|
|
12136
|
+
var import_binding46 = require("@rspack/binding");
|
|
12181
12137
|
var NamedChunkIdsPlugin = create2(
|
|
12182
|
-
|
|
12138
|
+
import_binding46.BuiltinPluginName.NamedChunkIdsPlugin,
|
|
12183
12139
|
() => {
|
|
12184
12140
|
},
|
|
12185
12141
|
"compilation"
|
|
12186
12142
|
);
|
|
12187
12143
|
|
|
12188
12144
|
// src/builtin-plugin/NamedModuleIdsPlugin.ts
|
|
12189
|
-
var
|
|
12145
|
+
var import_binding47 = require("@rspack/binding");
|
|
12190
12146
|
var NamedModuleIdsPlugin = create2(
|
|
12191
|
-
|
|
12147
|
+
import_binding47.BuiltinPluginName.NamedModuleIdsPlugin,
|
|
12192
12148
|
() => {
|
|
12193
12149
|
},
|
|
12194
12150
|
"compilation"
|
|
12195
12151
|
);
|
|
12196
12152
|
|
|
12197
12153
|
// src/builtin-plugin/NaturalChunkIdsPlugin.ts
|
|
12198
|
-
var
|
|
12154
|
+
var import_binding48 = require("@rspack/binding");
|
|
12199
12155
|
var NaturalChunkIdsPlugin = class extends RspackBuiltinPlugin {
|
|
12200
12156
|
constructor() {
|
|
12201
12157
|
super(...arguments);
|
|
12202
|
-
this.name =
|
|
12158
|
+
this.name = import_binding48.BuiltinPluginName.NaturalChunkIdsPlugin;
|
|
12203
12159
|
this.affectedHooks = "compilation";
|
|
12204
12160
|
}
|
|
12205
12161
|
raw(compiler) {
|
|
@@ -12218,11 +12174,11 @@ var NaturalChunkIdsPlugin = class extends RspackBuiltinPlugin {
|
|
|
12218
12174
|
};
|
|
12219
12175
|
|
|
12220
12176
|
// src/builtin-plugin/NaturalModuleIdsPlugin.ts
|
|
12221
|
-
var
|
|
12177
|
+
var import_binding49 = require("@rspack/binding");
|
|
12222
12178
|
var NaturalModuleIdsPlugin = class extends RspackBuiltinPlugin {
|
|
12223
12179
|
constructor() {
|
|
12224
12180
|
super(...arguments);
|
|
12225
|
-
this.name =
|
|
12181
|
+
this.name = import_binding49.BuiltinPluginName.NaturalModuleIdsPlugin;
|
|
12226
12182
|
this.affectedHooks = "compilation";
|
|
12227
12183
|
}
|
|
12228
12184
|
raw(compiler) {
|
|
@@ -12241,24 +12197,24 @@ var NaturalModuleIdsPlugin = class extends RspackBuiltinPlugin {
|
|
|
12241
12197
|
};
|
|
12242
12198
|
|
|
12243
12199
|
// src/builtin-plugin/NodeTargetPlugin.ts
|
|
12244
|
-
var
|
|
12200
|
+
var import_binding50 = require("@rspack/binding");
|
|
12245
12201
|
var NodeTargetPlugin = create2(
|
|
12246
|
-
|
|
12202
|
+
import_binding50.BuiltinPluginName.NodeTargetPlugin,
|
|
12247
12203
|
() => void 0
|
|
12248
12204
|
);
|
|
12249
12205
|
|
|
12250
12206
|
// src/builtin-plugin/OccurrenceChunkIdsPlugin.ts
|
|
12251
|
-
var
|
|
12207
|
+
var import_binding51 = require("@rspack/binding");
|
|
12252
12208
|
var OccurrenceChunkIdsPlugin = create2(
|
|
12253
|
-
|
|
12209
|
+
import_binding51.BuiltinPluginName.OccurrenceChunkIdsPlugin,
|
|
12254
12210
|
(options) => ({ ...options }),
|
|
12255
12211
|
"compilation"
|
|
12256
12212
|
);
|
|
12257
12213
|
|
|
12258
12214
|
// src/builtin-plugin/ProgressPlugin.ts
|
|
12259
|
-
var
|
|
12215
|
+
var import_binding52 = require("@rspack/binding");
|
|
12260
12216
|
var ProgressPlugin = create2(
|
|
12261
|
-
|
|
12217
|
+
import_binding52.BuiltinPluginName.ProgressPlugin,
|
|
12262
12218
|
(progress = {}) => {
|
|
12263
12219
|
if (typeof progress === "function") {
|
|
12264
12220
|
return {
|
|
@@ -12272,9 +12228,9 @@ var ProgressPlugin = create2(
|
|
|
12272
12228
|
);
|
|
12273
12229
|
|
|
12274
12230
|
// src/builtin-plugin/ProvidePlugin.ts
|
|
12275
|
-
var
|
|
12231
|
+
var import_binding53 = require("@rspack/binding");
|
|
12276
12232
|
var ProvidePlugin = create2(
|
|
12277
|
-
|
|
12233
|
+
import_binding53.BuiltinPluginName.ProvidePlugin,
|
|
12278
12234
|
(provide) => {
|
|
12279
12235
|
const entries = Object.entries(provide).map(([key, value]) => {
|
|
12280
12236
|
if (typeof value === "string") {
|
|
@@ -12288,53 +12244,53 @@ var ProvidePlugin = create2(
|
|
|
12288
12244
|
);
|
|
12289
12245
|
|
|
12290
12246
|
// src/builtin-plugin/RealContentHashPlugin.ts
|
|
12291
|
-
var
|
|
12247
|
+
var import_binding54 = require("@rspack/binding");
|
|
12292
12248
|
var RealContentHashPlugin = create2(
|
|
12293
|
-
|
|
12249
|
+
import_binding54.BuiltinPluginName.RealContentHashPlugin,
|
|
12294
12250
|
() => {
|
|
12295
12251
|
},
|
|
12296
12252
|
"compilation"
|
|
12297
12253
|
);
|
|
12298
12254
|
|
|
12299
12255
|
// src/builtin-plugin/RemoveEmptyChunksPlugin.ts
|
|
12300
|
-
var
|
|
12256
|
+
var import_binding55 = require("@rspack/binding");
|
|
12301
12257
|
var RemoveEmptyChunksPlugin = create2(
|
|
12302
|
-
|
|
12258
|
+
import_binding55.BuiltinPluginName.RemoveEmptyChunksPlugin,
|
|
12303
12259
|
() => {
|
|
12304
12260
|
},
|
|
12305
12261
|
"compilation"
|
|
12306
12262
|
);
|
|
12307
12263
|
|
|
12308
12264
|
// src/builtin-plugin/RuntimeChunkPlugin.ts
|
|
12309
|
-
var
|
|
12265
|
+
var import_binding56 = require("@rspack/binding");
|
|
12310
12266
|
var RuntimeChunkPlugin = create2(
|
|
12311
|
-
|
|
12267
|
+
import_binding56.BuiltinPluginName.RuntimeChunkPlugin,
|
|
12312
12268
|
(options) => options,
|
|
12313
12269
|
"thisCompilation"
|
|
12314
12270
|
);
|
|
12315
12271
|
|
|
12316
12272
|
// src/builtin-plugin/RuntimePlugin.ts
|
|
12317
|
-
var
|
|
12273
|
+
var import_binding57 = require("@rspack/binding");
|
|
12318
12274
|
var RuntimePlugin = create2(
|
|
12319
|
-
|
|
12275
|
+
import_binding57.BuiltinPluginName.RuntimePlugin,
|
|
12320
12276
|
() => {
|
|
12321
12277
|
},
|
|
12322
12278
|
"compilation"
|
|
12323
12279
|
);
|
|
12324
12280
|
|
|
12325
12281
|
// src/builtin-plugin/SideEffectsFlagPlugin.ts
|
|
12326
|
-
var
|
|
12282
|
+
var import_binding58 = require("@rspack/binding");
|
|
12327
12283
|
var SideEffectsFlagPlugin = create2(
|
|
12328
|
-
|
|
12284
|
+
import_binding58.BuiltinPluginName.SideEffectsFlagPlugin,
|
|
12329
12285
|
() => {
|
|
12330
12286
|
},
|
|
12331
12287
|
"compilation"
|
|
12332
12288
|
);
|
|
12333
12289
|
|
|
12334
12290
|
// src/builtin-plugin/SizeLimitsPlugin.ts
|
|
12335
|
-
var
|
|
12291
|
+
var import_binding59 = require("@rspack/binding");
|
|
12336
12292
|
var SizeLimitsPlugin = create2(
|
|
12337
|
-
|
|
12293
|
+
import_binding59.BuiltinPluginName.SizeLimitsPlugin,
|
|
12338
12294
|
(options) => {
|
|
12339
12295
|
const hints = options.hints === false ? void 0 : options.hints;
|
|
12340
12296
|
return { ...options, hints };
|
|
@@ -12342,16 +12298,16 @@ var SizeLimitsPlugin = create2(
|
|
|
12342
12298
|
);
|
|
12343
12299
|
|
|
12344
12300
|
// src/builtin-plugin/SourceMapDevToolPlugin.ts
|
|
12345
|
-
var
|
|
12301
|
+
var import_binding60 = require("@rspack/binding");
|
|
12346
12302
|
var SourceMapDevToolPlugin = create2(
|
|
12347
|
-
|
|
12303
|
+
import_binding60.BuiltinPluginName.SourceMapDevToolPlugin,
|
|
12348
12304
|
(options) => options,
|
|
12349
12305
|
"compilation"
|
|
12350
12306
|
);
|
|
12351
12307
|
|
|
12352
12308
|
// src/builtin-plugin/SplitChunksPlugin.ts
|
|
12353
12309
|
var import_node_assert5 = __toESM(require("assert"));
|
|
12354
|
-
var
|
|
12310
|
+
var import_binding61 = require("@rspack/binding");
|
|
12355
12311
|
|
|
12356
12312
|
// src/util/SplitChunkSize.ts
|
|
12357
12313
|
var JsSplitChunkSizes = class {
|
|
@@ -12374,7 +12330,7 @@ var SplitChunksPlugin = class extends RspackBuiltinPlugin {
|
|
|
12374
12330
|
constructor(options) {
|
|
12375
12331
|
super();
|
|
12376
12332
|
this.options = options;
|
|
12377
|
-
this.name =
|
|
12333
|
+
this.name = import_binding61.BuiltinPluginName.SplitChunksPlugin;
|
|
12378
12334
|
this.affectedHooks = "thisCompilation";
|
|
12379
12335
|
}
|
|
12380
12336
|
raw(compiler) {
|
|
@@ -12394,7 +12350,7 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
12394
12350
|
return name3(void 0);
|
|
12395
12351
|
}
|
|
12396
12352
|
return name3(
|
|
12397
|
-
Module.__from_binding(ctx.module
|
|
12353
|
+
Module.__from_binding(ctx.module),
|
|
12398
12354
|
getChunks(ctx.chunks),
|
|
12399
12355
|
ctx.cacheGroupKey
|
|
12400
12356
|
);
|
|
@@ -12408,9 +12364,7 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
12408
12364
|
if (typeof ctx.module === "undefined") {
|
|
12409
12365
|
return test(void 0);
|
|
12410
12366
|
}
|
|
12411
|
-
return test(
|
|
12412
|
-
Module.__from_binding(ctx.module, compiler._lastCompilation)
|
|
12413
|
-
);
|
|
12367
|
+
return test(Module.__from_binding(ctx.module));
|
|
12414
12368
|
};
|
|
12415
12369
|
}
|
|
12416
12370
|
return test;
|
|
@@ -12475,9 +12429,9 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
12475
12429
|
}
|
|
12476
12430
|
|
|
12477
12431
|
// src/builtin-plugin/LightningCssMinimizerRspackPlugin.ts
|
|
12478
|
-
var
|
|
12432
|
+
var import_binding62 = require("@rspack/binding");
|
|
12479
12433
|
var LightningCssMinimizerRspackPlugin = create2(
|
|
12480
|
-
|
|
12434
|
+
import_binding62.BuiltinPluginName.LightningCssMinimizerRspackPlugin,
|
|
12481
12435
|
(options) => {
|
|
12482
12436
|
var _a, _b, _c;
|
|
12483
12437
|
const { include, exclude, draft, nonStandard, pseudoClasses, drafts } = (options == null ? void 0 : options.minimizerOptions) ?? {};
|
|
@@ -12505,16 +12459,16 @@ var LightningCssMinimizerRspackPlugin = create2(
|
|
|
12505
12459
|
);
|
|
12506
12460
|
|
|
12507
12461
|
// src/builtin-plugin/RemoveDuplicateModulesPlugin.ts
|
|
12508
|
-
var
|
|
12462
|
+
var import_binding63 = require("@rspack/binding");
|
|
12509
12463
|
var RemoveDuplicateModulesPlugin = create2(
|
|
12510
|
-
|
|
12464
|
+
import_binding63.BuiltinPluginName.RemoveDuplicateModulesPlugin,
|
|
12511
12465
|
() => {
|
|
12512
12466
|
return {};
|
|
12513
12467
|
}
|
|
12514
12468
|
);
|
|
12515
12469
|
|
|
12516
12470
|
// src/builtin-plugin/SwcJsMinimizerPlugin.ts
|
|
12517
|
-
var
|
|
12471
|
+
var import_binding64 = require("@rspack/binding");
|
|
12518
12472
|
function isObject2(value) {
|
|
12519
12473
|
const type = typeof value;
|
|
12520
12474
|
return value != null && (type === "object" || type === "function");
|
|
@@ -12557,7 +12511,7 @@ function getRawExtractCommentsOptions(extractComments) {
|
|
|
12557
12511
|
return void 0;
|
|
12558
12512
|
}
|
|
12559
12513
|
var SwcJsMinimizerRspackPlugin = create2(
|
|
12560
|
-
|
|
12514
|
+
import_binding64.BuiltinPluginName.SwcJsMinimizerRspackPlugin,
|
|
12561
12515
|
(options) => {
|
|
12562
12516
|
var _a, _b, _c, _d, _e;
|
|
12563
12517
|
let compress = ((_a = options == null ? void 0 : options.minimizerOptions) == null ? void 0 : _a.compress) ?? true;
|
|
@@ -12595,20 +12549,20 @@ var SwcJsMinimizerRspackPlugin = create2(
|
|
|
12595
12549
|
);
|
|
12596
12550
|
|
|
12597
12551
|
// src/builtin-plugin/WarnCaseSensitiveModulesPlugin.ts
|
|
12598
|
-
var
|
|
12552
|
+
var import_binding65 = require("@rspack/binding");
|
|
12599
12553
|
var WarnCaseSensitiveModulesPlugin = create2(
|
|
12600
|
-
|
|
12554
|
+
import_binding65.BuiltinPluginName.WarnCaseSensitiveModulesPlugin,
|
|
12601
12555
|
() => {
|
|
12602
12556
|
},
|
|
12603
12557
|
"compilation"
|
|
12604
12558
|
);
|
|
12605
12559
|
|
|
12606
12560
|
// src/builtin-plugin/WebWorkerTemplatePlugin.ts
|
|
12607
|
-
var
|
|
12561
|
+
var import_binding66 = require("@rspack/binding");
|
|
12608
12562
|
var WebWorkerTemplatePlugin = class extends RspackBuiltinPlugin {
|
|
12609
12563
|
constructor() {
|
|
12610
12564
|
super(...arguments);
|
|
12611
|
-
this.name =
|
|
12565
|
+
this.name = import_binding66.BuiltinPluginName.WebWorkerTemplatePlugin;
|
|
12612
12566
|
}
|
|
12613
12567
|
raw(compiler) {
|
|
12614
12568
|
compiler.options.output.chunkLoading = "import-scripts";
|
|
@@ -12617,7 +12571,7 @@ var WebWorkerTemplatePlugin = class extends RspackBuiltinPlugin {
|
|
|
12617
12571
|
};
|
|
12618
12572
|
|
|
12619
12573
|
// src/builtin-plugin/WorkerPlugin.ts
|
|
12620
|
-
var
|
|
12574
|
+
var import_binding67 = require("@rspack/binding");
|
|
12621
12575
|
var WorkerPlugin = class extends RspackBuiltinPlugin {
|
|
12622
12576
|
constructor(chunkLoading2, wasmLoading2, module2, workerPublicPath2) {
|
|
12623
12577
|
super();
|
|
@@ -12625,7 +12579,7 @@ var WorkerPlugin = class extends RspackBuiltinPlugin {
|
|
|
12625
12579
|
this.wasmLoading = wasmLoading2;
|
|
12626
12580
|
this.module = module2;
|
|
12627
12581
|
this.workerPublicPath = workerPublicPath2;
|
|
12628
|
-
this.name =
|
|
12582
|
+
this.name = import_binding67.BuiltinPluginName.WorkerPlugin;
|
|
12629
12583
|
}
|
|
12630
12584
|
raw(compiler) {
|
|
12631
12585
|
if (this.chunkLoading) {
|
|
@@ -12639,25 +12593,25 @@ var WorkerPlugin = class extends RspackBuiltinPlugin {
|
|
|
12639
12593
|
};
|
|
12640
12594
|
|
|
12641
12595
|
// src/builtin-plugin/FetchCompileAsyncWasmPlugin.ts
|
|
12642
|
-
var
|
|
12596
|
+
var import_binding68 = require("@rspack/binding");
|
|
12643
12597
|
var FetchCompileAsyncWasmPlugin = create2(
|
|
12644
|
-
|
|
12598
|
+
import_binding68.BuiltinPluginName.FetchCompileAsyncWasmPlugin,
|
|
12645
12599
|
() => {
|
|
12646
12600
|
},
|
|
12647
12601
|
"thisCompilation"
|
|
12648
12602
|
);
|
|
12649
12603
|
|
|
12650
12604
|
// src/builtin-plugin/NoEmitOnErrorsPlugin.ts
|
|
12651
|
-
var
|
|
12605
|
+
var import_binding69 = require("@rspack/binding");
|
|
12652
12606
|
var NoEmitOnErrorsPlugin = create2(
|
|
12653
|
-
|
|
12607
|
+
import_binding69.BuiltinPluginName.NoEmitOnErrorsPlugin,
|
|
12654
12608
|
() => void 0
|
|
12655
12609
|
);
|
|
12656
12610
|
|
|
12657
12611
|
// src/builtin-plugin/ContextReplacementPlugin.ts
|
|
12658
|
-
var
|
|
12612
|
+
var import_binding70 = require("@rspack/binding");
|
|
12659
12613
|
var ContextReplacementPlugin = create2(
|
|
12660
|
-
|
|
12614
|
+
import_binding70.BuiltinPluginName.ContextReplacementPlugin,
|
|
12661
12615
|
(resourceRegExp, newContentResource, newContentRecursive, newContentRegExp) => {
|
|
12662
12616
|
const rawOptions = {
|
|
12663
12617
|
resourceRegExp
|
|
@@ -12687,9 +12641,9 @@ var ContextReplacementPlugin = create2(
|
|
|
12687
12641
|
);
|
|
12688
12642
|
|
|
12689
12643
|
// src/builtin-plugin/LibManifestPlugin.ts
|
|
12690
|
-
var
|
|
12644
|
+
var import_binding71 = require("@rspack/binding");
|
|
12691
12645
|
var LibManifestPlugin = create2(
|
|
12692
|
-
|
|
12646
|
+
import_binding71.BuiltinPluginName.LibManifestPlugin,
|
|
12693
12647
|
(options) => {
|
|
12694
12648
|
const { context: context2, entryOnly, format: format3, name: name2, path: path11, type } = options;
|
|
12695
12649
|
return {
|
|
@@ -12704,9 +12658,9 @@ var LibManifestPlugin = create2(
|
|
|
12704
12658
|
);
|
|
12705
12659
|
|
|
12706
12660
|
// src/builtin-plugin/DllEntryPlugin.ts
|
|
12707
|
-
var
|
|
12661
|
+
var import_binding72 = require("@rspack/binding");
|
|
12708
12662
|
var DllEntryPlugin = create2(
|
|
12709
|
-
|
|
12663
|
+
import_binding72.BuiltinPluginName.DllEntryPlugin,
|
|
12710
12664
|
(context2, entries, options) => {
|
|
12711
12665
|
return {
|
|
12712
12666
|
context: context2,
|
|
@@ -12717,9 +12671,9 @@ var DllEntryPlugin = create2(
|
|
|
12717
12671
|
);
|
|
12718
12672
|
|
|
12719
12673
|
// src/builtin-plugin/DllReferenceAgencyPlugin.ts
|
|
12720
|
-
var
|
|
12674
|
+
var import_binding73 = require("@rspack/binding");
|
|
12721
12675
|
var DllReferenceAgencyPlugin = create2(
|
|
12722
|
-
|
|
12676
|
+
import_binding73.BuiltinPluginName.DllReferenceAgencyPlugin,
|
|
12723
12677
|
(options) => options
|
|
12724
12678
|
);
|
|
12725
12679
|
|
|
@@ -13422,7 +13376,8 @@ var checkVersion = () => {
|
|
|
13422
13376
|
);
|
|
13423
13377
|
if (!isMatch) {
|
|
13424
13378
|
return result = new Error(
|
|
13425
|
-
|
|
13379
|
+
`Unmatched version @rspack/core@${CORE_VERSION}, @rspack/binding@${BINDING_VERSION}, @rspack/binding-${platformArchAbi}@${ADDON_VERSION}.
|
|
13380
|
+
Rspack requires these versions to be the same or you may have installed the wrong version. Otherwise, Rspack may not work properly.`
|
|
13426
13381
|
);
|
|
13427
13382
|
}
|
|
13428
13383
|
return result = null;
|
|
@@ -14137,9 +14092,7 @@ var Compiler = class _Compiler {
|
|
|
14137
14092
|
},
|
|
14138
14093
|
function(queried) {
|
|
14139
14094
|
return function(m) {
|
|
14140
|
-
return queried.call(
|
|
14141
|
-
Module.__from_binding(m, that.deref().#compilation)
|
|
14142
|
-
);
|
|
14095
|
+
return queried.call(Module.__from_binding(m));
|
|
14143
14096
|
};
|
|
14144
14097
|
}
|
|
14145
14098
|
),
|
|
@@ -14150,9 +14103,7 @@ var Compiler = class _Compiler {
|
|
|
14150
14103
|
},
|
|
14151
14104
|
function(queried) {
|
|
14152
14105
|
return function(m) {
|
|
14153
|
-
return queried.call(
|
|
14154
|
-
Module.__from_binding(m, that.deref().#compilation)
|
|
14155
|
-
);
|
|
14106
|
+
return queried.call(Module.__from_binding(m));
|
|
14156
14107
|
};
|
|
14157
14108
|
}
|
|
14158
14109
|
),
|
|
@@ -14163,9 +14114,7 @@ var Compiler = class _Compiler {
|
|
|
14163
14114
|
},
|
|
14164
14115
|
function(queried) {
|
|
14165
14116
|
return function(m) {
|
|
14166
|
-
return queried.call(
|
|
14167
|
-
Module.__from_binding(m, that.deref().#compilation)
|
|
14168
|
-
);
|
|
14117
|
+
return queried.call(Module.__from_binding(m));
|
|
14169
14118
|
};
|
|
14170
14119
|
}
|
|
14171
14120
|
),
|
|
@@ -18642,9 +18591,9 @@ var matchObject = (obj, str) => {
|
|
|
18642
18591
|
var import_zod5 = __toESM(require("../compiled/zod/index.js"));
|
|
18643
18592
|
|
|
18644
18593
|
// src/builtin-plugin/FlagAllModulesAsUsedPlugin.ts
|
|
18645
|
-
var
|
|
18594
|
+
var import_binding74 = require("@rspack/binding");
|
|
18646
18595
|
var FlagAllModulesAsUsedPlugin = create2(
|
|
18647
|
-
|
|
18596
|
+
import_binding74.BuiltinPluginName.FlagAllModulesAsUsedPlugin,
|
|
18648
18597
|
(explanation) => {
|
|
18649
18598
|
return {
|
|
18650
18599
|
explanation
|
|
@@ -19533,9 +19482,9 @@ var NodeTemplatePlugin = class {
|
|
|
19533
19482
|
};
|
|
19534
19483
|
|
|
19535
19484
|
// src/container/ModuleFederationRuntimePlugin.ts
|
|
19536
|
-
var
|
|
19485
|
+
var import_binding75 = require("@rspack/binding");
|
|
19537
19486
|
var ModuleFederationRuntimePlugin = create2(
|
|
19538
|
-
|
|
19487
|
+
import_binding75.BuiltinPluginName.ModuleFederationRuntimePlugin,
|
|
19539
19488
|
() => {
|
|
19540
19489
|
}
|
|
19541
19490
|
);
|
|
@@ -19731,10 +19680,10 @@ function getDefaultEntryRuntime(paths, options, compiler) {
|
|
|
19731
19680
|
}
|
|
19732
19681
|
|
|
19733
19682
|
// src/sharing/ConsumeSharedPlugin.ts
|
|
19734
|
-
var
|
|
19683
|
+
var import_binding77 = require("@rspack/binding");
|
|
19735
19684
|
|
|
19736
19685
|
// src/sharing/ShareRuntimePlugin.ts
|
|
19737
|
-
var
|
|
19686
|
+
var import_binding76 = require("@rspack/binding");
|
|
19738
19687
|
var compilerSet = /* @__PURE__ */ new WeakSet();
|
|
19739
19688
|
function isSingleton(compiler) {
|
|
19740
19689
|
return compilerSet.has(compiler);
|
|
@@ -19746,7 +19695,7 @@ var ShareRuntimePlugin = class extends RspackBuiltinPlugin {
|
|
|
19746
19695
|
constructor(enhanced = false) {
|
|
19747
19696
|
super();
|
|
19748
19697
|
this.enhanced = enhanced;
|
|
19749
|
-
this.name =
|
|
19698
|
+
this.name = import_binding76.BuiltinPluginName.ShareRuntimePlugin;
|
|
19750
19699
|
}
|
|
19751
19700
|
raw(compiler) {
|
|
19752
19701
|
if (isSingleton(compiler)) return;
|
|
@@ -19765,7 +19714,7 @@ function isRequiredVersion(str) {
|
|
|
19765
19714
|
var ConsumeSharedPlugin = class extends RspackBuiltinPlugin {
|
|
19766
19715
|
constructor(options) {
|
|
19767
19716
|
super();
|
|
19768
|
-
this.name =
|
|
19717
|
+
this.name = import_binding77.BuiltinPluginName.ConsumeSharedPlugin;
|
|
19769
19718
|
this._options = {
|
|
19770
19719
|
consumes: parseOptions(
|
|
19771
19720
|
options.consumes,
|
|
@@ -19828,11 +19777,11 @@ var ConsumeSharedPlugin = class extends RspackBuiltinPlugin {
|
|
|
19828
19777
|
};
|
|
19829
19778
|
|
|
19830
19779
|
// src/sharing/ProvideSharedPlugin.ts
|
|
19831
|
-
var
|
|
19780
|
+
var import_binding78 = require("@rspack/binding");
|
|
19832
19781
|
var ProvideSharedPlugin = class extends RspackBuiltinPlugin {
|
|
19833
19782
|
constructor(options) {
|
|
19834
19783
|
super();
|
|
19835
|
-
this.name =
|
|
19784
|
+
this.name = import_binding78.BuiltinPluginName.ProvideSharedPlugin;
|
|
19836
19785
|
this._provides = parseOptions(
|
|
19837
19786
|
options.provides,
|
|
19838
19787
|
(item) => {
|
|
@@ -19937,11 +19886,11 @@ var SharePlugin = class {
|
|
|
19937
19886
|
};
|
|
19938
19887
|
|
|
19939
19888
|
// src/container/ContainerPlugin.ts
|
|
19940
|
-
var
|
|
19889
|
+
var import_binding79 = require("@rspack/binding");
|
|
19941
19890
|
var ContainerPlugin = class extends RspackBuiltinPlugin {
|
|
19942
19891
|
constructor(options) {
|
|
19943
19892
|
super();
|
|
19944
|
-
this.name =
|
|
19893
|
+
this.name = import_binding79.BuiltinPluginName.ContainerPlugin;
|
|
19945
19894
|
this._options = {
|
|
19946
19895
|
name: options.name,
|
|
19947
19896
|
shareScope: options.shareScope || "default",
|
|
@@ -19985,11 +19934,11 @@ var ContainerPlugin = class extends RspackBuiltinPlugin {
|
|
|
19985
19934
|
};
|
|
19986
19935
|
|
|
19987
19936
|
// src/container/ContainerReferencePlugin.ts
|
|
19988
|
-
var
|
|
19937
|
+
var import_binding80 = require("@rspack/binding");
|
|
19989
19938
|
var ContainerReferencePlugin = class extends RspackBuiltinPlugin {
|
|
19990
19939
|
constructor(options) {
|
|
19991
19940
|
super();
|
|
19992
|
-
this.name =
|
|
19941
|
+
this.name = import_binding80.BuiltinPluginName.ContainerReferencePlugin;
|
|
19993
19942
|
this._options = {
|
|
19994
19943
|
remoteType: options.remoteType,
|
|
19995
19944
|
remotes: parseOptions(
|
|
@@ -20074,7 +20023,7 @@ var ModuleFederationPluginV1 = class {
|
|
|
20074
20023
|
};
|
|
20075
20024
|
|
|
20076
20025
|
// src/exports.ts
|
|
20077
|
-
var
|
|
20026
|
+
var import_binding81 = require("@rspack/binding");
|
|
20078
20027
|
var rspackVersion = import_package.version;
|
|
20079
20028
|
var version = import_package.webpackVersion;
|
|
20080
20029
|
var WebpackError2 = Error;
|
|
@@ -20120,8 +20069,8 @@ var sharing = {
|
|
|
20120
20069
|
};
|
|
20121
20070
|
var experiments2 = {
|
|
20122
20071
|
globalTrace: {
|
|
20123
|
-
register:
|
|
20124
|
-
cleanup:
|
|
20072
|
+
register: import_binding81.registerGlobalTrace,
|
|
20073
|
+
cleanup: import_binding81.cleanupGlobalTrace
|
|
20125
20074
|
},
|
|
20126
20075
|
RemoveDuplicateModulesPlugin
|
|
20127
20076
|
};
|