@rspack/core 1.1.0 → 1.1.1
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/builtin-plugin/DllEntryPlugin.d.ts +13 -0
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +11 -0
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +10 -0
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +18 -0
- package/dist/builtin-plugin/index.d.ts +3 -0
- package/dist/config/types.d.ts +15 -6
- package/dist/config/utils.d.ts +16 -0
- package/dist/config/zod.d.ts +16 -165
- package/dist/exports.d.ts +2 -0
- package/dist/index.js +1587 -827
- package/dist/lib/DllPlugin.d.ts +42 -0
- package/dist/lib/DllReferencePlugin.d.ts +119 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -696,6 +696,8 @@ __export(src_exports, {
|
|
|
696
696
|
CopyRspackPlugin: () => CopyRspackPlugin,
|
|
697
697
|
CssExtractRspackPlugin: () => CssExtractRspackPlugin,
|
|
698
698
|
DefinePlugin: () => DefinePlugin,
|
|
699
|
+
DllPlugin: () => DllPlugin,
|
|
700
|
+
DllReferencePlugin: () => DllReferencePlugin,
|
|
699
701
|
DynamicEntryPlugin: () => DynamicEntryPlugin,
|
|
700
702
|
EntryOptionPlugin: () => EntryOptionPlugin_default,
|
|
701
703
|
EntryPlugin: () => EntryPlugin,
|
|
@@ -758,6 +760,8 @@ __export(exports_exports, {
|
|
|
758
760
|
CopyRspackPlugin: () => CopyRspackPlugin,
|
|
759
761
|
CssExtractRspackPlugin: () => CssExtractRspackPlugin,
|
|
760
762
|
DefinePlugin: () => DefinePlugin,
|
|
763
|
+
DllPlugin: () => DllPlugin,
|
|
764
|
+
DllReferencePlugin: () => DllReferencePlugin,
|
|
761
765
|
DynamicEntryPlugin: () => DynamicEntryPlugin,
|
|
762
766
|
EntryOptionPlugin: () => EntryOptionPlugin_default,
|
|
763
767
|
EntryPlugin: () => EntryPlugin,
|
|
@@ -9590,55 +9594,204 @@ var keyedNestedConfig = (value, fn2, customKeys) => {
|
|
|
9590
9594
|
|
|
9591
9595
|
// src/config/zod.ts
|
|
9592
9596
|
var import_node_path7 = __toESM(require("path"));
|
|
9597
|
+
var import_zod2 = require("../compiled/zod/index.js");
|
|
9598
|
+
|
|
9599
|
+
// src/config/utils.ts
|
|
9593
9600
|
var import_zod = require("../compiled/zod/index.js");
|
|
9594
|
-
|
|
9601
|
+
function processCreateParams(params) {
|
|
9602
|
+
if (!params) return {};
|
|
9603
|
+
const { errorMap, invalid_type_error, required_error, description } = params;
|
|
9604
|
+
if (errorMap && (invalid_type_error || required_error)) {
|
|
9605
|
+
throw new Error(
|
|
9606
|
+
`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`
|
|
9607
|
+
);
|
|
9608
|
+
}
|
|
9609
|
+
if (errorMap) return { errorMap, description };
|
|
9610
|
+
const customMap = (iss, ctx) => {
|
|
9611
|
+
const { message } = params;
|
|
9612
|
+
if (iss.code === "invalid_enum_value") {
|
|
9613
|
+
return { message: message ?? ctx.defaultError };
|
|
9614
|
+
}
|
|
9615
|
+
if (typeof ctx.data === "undefined") {
|
|
9616
|
+
return { message: message ?? required_error ?? ctx.defaultError };
|
|
9617
|
+
}
|
|
9618
|
+
if (iss.code !== "invalid_type") return { message: ctx.defaultError };
|
|
9619
|
+
return { message: message ?? invalid_type_error ?? ctx.defaultError };
|
|
9620
|
+
};
|
|
9621
|
+
return { errorMap: customMap, description };
|
|
9622
|
+
}
|
|
9623
|
+
var _RspackZodUnion = class _RspackZodUnion extends import_zod.z.ZodUnion {
|
|
9624
|
+
_parse(input) {
|
|
9625
|
+
const { ctx } = this._processInputParams(input);
|
|
9626
|
+
const options = this._def.options;
|
|
9627
|
+
function handleResults(results) {
|
|
9628
|
+
for (const result2 of results) {
|
|
9629
|
+
if (result2.result.status === "valid") {
|
|
9630
|
+
return result2.result;
|
|
9631
|
+
}
|
|
9632
|
+
}
|
|
9633
|
+
for (const result2 of results) {
|
|
9634
|
+
if (result2.result.status === "dirty") {
|
|
9635
|
+
ctx.common.issues.push(...result2.ctx.common.issues);
|
|
9636
|
+
return result2.result;
|
|
9637
|
+
}
|
|
9638
|
+
}
|
|
9639
|
+
const unionErrors2 = results.map(
|
|
9640
|
+
(result2) => new import_zod.ZodError(result2.ctx.common.issues)
|
|
9641
|
+
);
|
|
9642
|
+
(0, import_zod.addIssueToContext)(ctx, {
|
|
9643
|
+
code: import_zod.ZodIssueCode.invalid_union,
|
|
9644
|
+
unionErrors: unionErrors2
|
|
9645
|
+
});
|
|
9646
|
+
return import_zod.INVALID;
|
|
9647
|
+
}
|
|
9648
|
+
if (ctx.common.async) {
|
|
9649
|
+
return Promise.all(
|
|
9650
|
+
options.map(async (option) => {
|
|
9651
|
+
const childCtx = {
|
|
9652
|
+
...ctx,
|
|
9653
|
+
common: {
|
|
9654
|
+
...ctx.common,
|
|
9655
|
+
issues: []
|
|
9656
|
+
},
|
|
9657
|
+
parent: ctx
|
|
9658
|
+
};
|
|
9659
|
+
return {
|
|
9660
|
+
result: await option._parseAsync({
|
|
9661
|
+
data: ctx.data,
|
|
9662
|
+
path: ctx.path,
|
|
9663
|
+
parent: childCtx
|
|
9664
|
+
}),
|
|
9665
|
+
ctx: childCtx
|
|
9666
|
+
};
|
|
9667
|
+
})
|
|
9668
|
+
).then(handleResults);
|
|
9669
|
+
}
|
|
9670
|
+
let dirty = void 0;
|
|
9671
|
+
const issues = [];
|
|
9672
|
+
for (const option of options) {
|
|
9673
|
+
const childCtx = {
|
|
9674
|
+
...ctx,
|
|
9675
|
+
common: {
|
|
9676
|
+
...ctx.common,
|
|
9677
|
+
issues: []
|
|
9678
|
+
},
|
|
9679
|
+
parent: ctx
|
|
9680
|
+
};
|
|
9681
|
+
const result2 = option._parseSync({
|
|
9682
|
+
data: ctx.data,
|
|
9683
|
+
path: ctx.path,
|
|
9684
|
+
parent: childCtx
|
|
9685
|
+
});
|
|
9686
|
+
if (result2.status === "valid") {
|
|
9687
|
+
return result2;
|
|
9688
|
+
}
|
|
9689
|
+
if (result2.status === "dirty" && !dirty) {
|
|
9690
|
+
dirty = { result: result2, ctx: childCtx };
|
|
9691
|
+
}
|
|
9692
|
+
if (childCtx.common.issues.length) {
|
|
9693
|
+
issues.push(childCtx.common.issues);
|
|
9694
|
+
}
|
|
9695
|
+
}
|
|
9696
|
+
if (dirty) {
|
|
9697
|
+
ctx.common.issues.push(...dirty.ctx.common.issues);
|
|
9698
|
+
return dirty.result;
|
|
9699
|
+
}
|
|
9700
|
+
const unionErrors = issues.map((issues2) => new import_zod.ZodError(issues2));
|
|
9701
|
+
(0, import_zod.addIssueToContext)(ctx, {
|
|
9702
|
+
code: import_zod.ZodIssueCode.invalid_union,
|
|
9703
|
+
unionErrors
|
|
9704
|
+
});
|
|
9705
|
+
return import_zod.INVALID;
|
|
9706
|
+
}
|
|
9707
|
+
};
|
|
9708
|
+
_RspackZodUnion.create = (types, params) => {
|
|
9709
|
+
return new _RspackZodUnion({
|
|
9710
|
+
options: types,
|
|
9711
|
+
typeName: import_zod.ZodFirstPartyTypeKind.ZodUnion,
|
|
9712
|
+
...processCreateParams(params)
|
|
9713
|
+
});
|
|
9714
|
+
};
|
|
9715
|
+
var RspackZodUnion = _RspackZodUnion;
|
|
9716
|
+
import_zod.ZodUnion.create = RspackZodUnion.create;
|
|
9717
|
+
var ZodRspackCrossChecker = class extends import_zod.ZodType {
|
|
9718
|
+
constructor(params) {
|
|
9719
|
+
super(params);
|
|
9720
|
+
this.params = params;
|
|
9721
|
+
}
|
|
9722
|
+
_parse(input) {
|
|
9723
|
+
const ctx = this._getOrReturnCtx(input);
|
|
9724
|
+
const root = this._getRootData(ctx);
|
|
9725
|
+
for (const pattern of this.params.patterns) {
|
|
9726
|
+
if (pattern.test(root)) {
|
|
9727
|
+
const res = pattern.type._parse(input);
|
|
9728
|
+
const issues = typeof pattern.issue === "function" ? pattern.issue(res) : [];
|
|
9729
|
+
for (const issue of issues) {
|
|
9730
|
+
(0, import_zod.addIssueToContext)(ctx, issue);
|
|
9731
|
+
}
|
|
9732
|
+
return res;
|
|
9733
|
+
}
|
|
9734
|
+
}
|
|
9735
|
+
return this.params.default._parse(input);
|
|
9736
|
+
}
|
|
9737
|
+
_getRootData(ctx) {
|
|
9738
|
+
let root = ctx;
|
|
9739
|
+
while (root.parent) {
|
|
9740
|
+
root = root.parent;
|
|
9741
|
+
}
|
|
9742
|
+
return root.data;
|
|
9743
|
+
}
|
|
9744
|
+
};
|
|
9745
|
+
|
|
9746
|
+
// src/config/zod.ts
|
|
9747
|
+
var filenameTemplate = import_zod2.z.string();
|
|
9595
9748
|
var filename = filenameTemplate.or(
|
|
9596
|
-
|
|
9749
|
+
import_zod2.z.function().args(import_zod2.z.custom(), import_zod2.z.custom().optional()).returns(import_zod2.z.string())
|
|
9597
9750
|
);
|
|
9598
|
-
var name =
|
|
9599
|
-
var dependencies =
|
|
9600
|
-
var context =
|
|
9751
|
+
var name = import_zod2.z.string();
|
|
9752
|
+
var dependencies = import_zod2.z.array(name);
|
|
9753
|
+
var context = import_zod2.z.string().refine(
|
|
9601
9754
|
(val) => import_node_path7.default.isAbsolute(val),
|
|
9602
9755
|
(val) => ({
|
|
9603
9756
|
message: `The provided value ${JSON.stringify(val)} must be an absolute path.`
|
|
9604
9757
|
})
|
|
9605
9758
|
);
|
|
9606
|
-
var mode =
|
|
9759
|
+
var mode = import_zod2.z.enum([
|
|
9607
9760
|
"development",
|
|
9608
9761
|
"production",
|
|
9609
9762
|
"none"
|
|
9610
9763
|
]);
|
|
9611
|
-
var falsy =
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9764
|
+
var falsy = import_zod2.z.union([
|
|
9765
|
+
import_zod2.z.literal(false),
|
|
9766
|
+
import_zod2.z.literal(0),
|
|
9767
|
+
import_zod2.z.literal(""),
|
|
9768
|
+
import_zod2.z.null(),
|
|
9769
|
+
import_zod2.z.undefined()
|
|
9617
9770
|
]);
|
|
9618
|
-
var publicPath =
|
|
9619
|
-
var baseUri =
|
|
9620
|
-
var chunkLoadingType =
|
|
9621
|
-
var chunkLoading =
|
|
9622
|
-
var asyncChunks =
|
|
9623
|
-
var wasmLoadingType =
|
|
9624
|
-
var wasmLoading =
|
|
9625
|
-
var scriptType =
|
|
9626
|
-
var libraryCustomUmdObject =
|
|
9627
|
-
amd:
|
|
9628
|
-
commonjs:
|
|
9629
|
-
root:
|
|
9771
|
+
var publicPath = import_zod2.z.literal("auto").or(filename);
|
|
9772
|
+
var baseUri = import_zod2.z.string();
|
|
9773
|
+
var chunkLoadingType = import_zod2.z.enum(["jsonp", "import-scripts", "require", "async-node", "import"]).or(import_zod2.z.string());
|
|
9774
|
+
var chunkLoading = import_zod2.z.literal(false).or(chunkLoadingType);
|
|
9775
|
+
var asyncChunks = import_zod2.z.boolean();
|
|
9776
|
+
var wasmLoadingType = import_zod2.z.enum(["fetch-streaming", "fetch", "async-node"]).or(import_zod2.z.string());
|
|
9777
|
+
var wasmLoading = import_zod2.z.literal(false).or(wasmLoadingType);
|
|
9778
|
+
var scriptType = import_zod2.z.enum(["text/javascript", "module"]).or(import_zod2.z.literal(false));
|
|
9779
|
+
var libraryCustomUmdObject = import_zod2.z.strictObject({
|
|
9780
|
+
amd: import_zod2.z.string().optional(),
|
|
9781
|
+
commonjs: import_zod2.z.string().optional(),
|
|
9782
|
+
root: import_zod2.z.string().or(import_zod2.z.array(import_zod2.z.string())).optional()
|
|
9630
9783
|
});
|
|
9631
|
-
var libraryName =
|
|
9632
|
-
var libraryCustomUmdCommentObject =
|
|
9633
|
-
amd:
|
|
9634
|
-
commonjs:
|
|
9635
|
-
commonjs2:
|
|
9636
|
-
root:
|
|
9784
|
+
var libraryName = import_zod2.z.string().or(import_zod2.z.array(import_zod2.z.string())).or(libraryCustomUmdObject);
|
|
9785
|
+
var libraryCustomUmdCommentObject = import_zod2.z.strictObject({
|
|
9786
|
+
amd: import_zod2.z.string().optional(),
|
|
9787
|
+
commonjs: import_zod2.z.string().optional(),
|
|
9788
|
+
commonjs2: import_zod2.z.string().optional(),
|
|
9789
|
+
root: import_zod2.z.string().optional()
|
|
9637
9790
|
});
|
|
9638
|
-
var amdContainer =
|
|
9639
|
-
var auxiliaryComment =
|
|
9640
|
-
var libraryExport =
|
|
9641
|
-
var libraryType =
|
|
9791
|
+
var amdContainer = import_zod2.z.string();
|
|
9792
|
+
var auxiliaryComment = import_zod2.z.string().or(libraryCustomUmdCommentObject);
|
|
9793
|
+
var libraryExport = import_zod2.z.string().or(import_zod2.z.array(import_zod2.z.string()));
|
|
9794
|
+
var libraryType = import_zod2.z.enum([
|
|
9642
9795
|
"var",
|
|
9643
9796
|
"module",
|
|
9644
9797
|
"assign",
|
|
@@ -9657,9 +9810,9 @@ var libraryType = import_zod.z.enum([
|
|
|
9657
9810
|
"umd2",
|
|
9658
9811
|
"jsonp",
|
|
9659
9812
|
"system"
|
|
9660
|
-
]).or(
|
|
9661
|
-
var umdNamedDefine =
|
|
9662
|
-
var libraryOptions =
|
|
9813
|
+
]).or(import_zod2.z.string());
|
|
9814
|
+
var umdNamedDefine = import_zod2.z.boolean();
|
|
9815
|
+
var libraryOptions = import_zod2.z.strictObject({
|
|
9663
9816
|
amdContainer: amdContainer.optional(),
|
|
9664
9817
|
auxiliaryComment: auxiliaryComment.optional(),
|
|
9665
9818
|
export: libraryExport.optional(),
|
|
@@ -9668,12 +9821,12 @@ var libraryOptions = import_zod.z.strictObject({
|
|
|
9668
9821
|
umdNamedDefine: umdNamedDefine.optional()
|
|
9669
9822
|
});
|
|
9670
9823
|
var library = libraryName.or(libraryOptions).optional();
|
|
9671
|
-
var layer =
|
|
9824
|
+
var layer = import_zod2.z.string().or(import_zod2.z.null());
|
|
9672
9825
|
var entryFilename = filename;
|
|
9673
|
-
var entryRuntime =
|
|
9674
|
-
var entryItem =
|
|
9675
|
-
var entryDependOn =
|
|
9676
|
-
var entryDescription =
|
|
9826
|
+
var entryRuntime = import_zod2.z.literal(false).or(import_zod2.z.string());
|
|
9827
|
+
var entryItem = import_zod2.z.string().or(import_zod2.z.array(import_zod2.z.string()));
|
|
9828
|
+
var entryDependOn = import_zod2.z.string().or(import_zod2.z.array(import_zod2.z.string()));
|
|
9829
|
+
var entryDescription = import_zod2.z.strictObject({
|
|
9677
9830
|
import: entryItem,
|
|
9678
9831
|
runtime: entryRuntime.optional(),
|
|
9679
9832
|
publicPath: publicPath.optional(),
|
|
@@ -9687,84 +9840,84 @@ var entryDescription = import_zod.z.strictObject({
|
|
|
9687
9840
|
layer: layer.optional()
|
|
9688
9841
|
});
|
|
9689
9842
|
var entryUnnamed = entryItem;
|
|
9690
|
-
var entryObject =
|
|
9843
|
+
var entryObject = import_zod2.z.record(
|
|
9691
9844
|
entryItem.or(entryDescription)
|
|
9692
9845
|
);
|
|
9693
9846
|
var entryStatic = entryObject.or(
|
|
9694
9847
|
entryUnnamed
|
|
9695
9848
|
);
|
|
9696
|
-
var entryDynamic =
|
|
9697
|
-
entryStatic.or(
|
|
9849
|
+
var entryDynamic = import_zod2.z.function().returns(
|
|
9850
|
+
entryStatic.or(import_zod2.z.promise(entryStatic))
|
|
9698
9851
|
);
|
|
9699
9852
|
var entry = entryStatic.or(entryDynamic);
|
|
9700
|
-
var path6 =
|
|
9701
|
-
var pathinfo =
|
|
9853
|
+
var path6 = import_zod2.z.string();
|
|
9854
|
+
var pathinfo = import_zod2.z.boolean().or(import_zod2.z.literal("verbose"));
|
|
9702
9855
|
var assetModuleFilename = filename;
|
|
9703
|
-
var webassemblyModuleFilename =
|
|
9856
|
+
var webassemblyModuleFilename = import_zod2.z.string();
|
|
9704
9857
|
var chunkFilename = filename;
|
|
9705
|
-
var crossOriginLoading =
|
|
9706
|
-
|
|
9858
|
+
var crossOriginLoading = import_zod2.z.literal(false).or(
|
|
9859
|
+
import_zod2.z.enum(["anonymous", "use-credentials"])
|
|
9707
9860
|
);
|
|
9708
9861
|
var cssFilename = filename;
|
|
9709
9862
|
var cssChunkFilename = filename;
|
|
9710
9863
|
var hotUpdateChunkFilename = filenameTemplate;
|
|
9711
9864
|
var hotUpdateMainFilename = filenameTemplate;
|
|
9712
|
-
var hotUpdateGlobal =
|
|
9713
|
-
var uniqueName =
|
|
9714
|
-
var chunkLoadingGlobal =
|
|
9715
|
-
var enabledLibraryTypes =
|
|
9865
|
+
var hotUpdateGlobal = import_zod2.z.string();
|
|
9866
|
+
var uniqueName = import_zod2.z.string();
|
|
9867
|
+
var chunkLoadingGlobal = import_zod2.z.string();
|
|
9868
|
+
var enabledLibraryTypes = import_zod2.z.array(
|
|
9716
9869
|
libraryType
|
|
9717
9870
|
);
|
|
9718
|
-
var clean =
|
|
9719
|
-
var outputModule =
|
|
9720
|
-
var strictModuleExceptionHandling =
|
|
9721
|
-
var strictModuleErrorHandling =
|
|
9722
|
-
var globalObject =
|
|
9723
|
-
var enabledWasmLoadingTypes =
|
|
9871
|
+
var clean = import_zod2.z.boolean();
|
|
9872
|
+
var outputModule = import_zod2.z.boolean();
|
|
9873
|
+
var strictModuleExceptionHandling = import_zod2.z.boolean();
|
|
9874
|
+
var strictModuleErrorHandling = import_zod2.z.boolean();
|
|
9875
|
+
var globalObject = import_zod2.z.string();
|
|
9876
|
+
var enabledWasmLoadingTypes = import_zod2.z.array(
|
|
9724
9877
|
wasmLoadingType
|
|
9725
9878
|
);
|
|
9726
|
-
var importFunctionName =
|
|
9727
|
-
var importMetaName =
|
|
9728
|
-
var iife =
|
|
9729
|
-
var enabledChunkLoadingTypes =
|
|
9879
|
+
var importFunctionName = import_zod2.z.string();
|
|
9880
|
+
var importMetaName = import_zod2.z.string();
|
|
9881
|
+
var iife = import_zod2.z.boolean();
|
|
9882
|
+
var enabledChunkLoadingTypes = import_zod2.z.array(
|
|
9730
9883
|
chunkLoadingType
|
|
9731
9884
|
);
|
|
9732
|
-
var chunkFormat =
|
|
9733
|
-
var workerPublicPath =
|
|
9734
|
-
var trustedTypes =
|
|
9735
|
-
policyName:
|
|
9885
|
+
var chunkFormat = import_zod2.z.literal(false).or(import_zod2.z.string());
|
|
9886
|
+
var workerPublicPath = import_zod2.z.string();
|
|
9887
|
+
var trustedTypes = import_zod2.z.strictObject({
|
|
9888
|
+
policyName: import_zod2.z.string().optional()
|
|
9736
9889
|
});
|
|
9737
|
-
var hashDigest =
|
|
9738
|
-
var hashDigestLength =
|
|
9739
|
-
var hashFunction =
|
|
9890
|
+
var hashDigest = import_zod2.z.string();
|
|
9891
|
+
var hashDigestLength = import_zod2.z.number();
|
|
9892
|
+
var hashFunction = import_zod2.z.enum([
|
|
9740
9893
|
"md4",
|
|
9741
9894
|
"xxhash64"
|
|
9742
9895
|
]);
|
|
9743
|
-
var hashSalt =
|
|
9744
|
-
var sourceMapFilename =
|
|
9745
|
-
var devtoolNamespace =
|
|
9746
|
-
var devtoolModuleFilenameTemplate =
|
|
9747
|
-
|
|
9748
|
-
|
|
9896
|
+
var hashSalt = import_zod2.z.string();
|
|
9897
|
+
var sourceMapFilename = import_zod2.z.string();
|
|
9898
|
+
var devtoolNamespace = import_zod2.z.string();
|
|
9899
|
+
var devtoolModuleFilenameTemplate = import_zod2.z.union([
|
|
9900
|
+
import_zod2.z.string(),
|
|
9901
|
+
import_zod2.z.function(import_zod2.z.tuple([import_zod2.z.any()]), import_zod2.z.any())
|
|
9749
9902
|
]);
|
|
9750
9903
|
var devtoolFallbackModuleFilenameTemplate = devtoolModuleFilenameTemplate;
|
|
9751
|
-
var environment =
|
|
9752
|
-
arrowFunction:
|
|
9753
|
-
asyncFunction:
|
|
9754
|
-
bigIntLiteral:
|
|
9755
|
-
const:
|
|
9756
|
-
destructuring:
|
|
9757
|
-
document:
|
|
9758
|
-
dynamicImport:
|
|
9759
|
-
dynamicImportInWorker:
|
|
9760
|
-
forOf:
|
|
9761
|
-
globalThis:
|
|
9762
|
-
module:
|
|
9763
|
-
nodePrefixForCoreModules:
|
|
9764
|
-
optionalChaining:
|
|
9765
|
-
templateLiteral:
|
|
9904
|
+
var environment = import_zod2.z.strictObject({
|
|
9905
|
+
arrowFunction: import_zod2.z.boolean().optional(),
|
|
9906
|
+
asyncFunction: import_zod2.z.boolean().optional(),
|
|
9907
|
+
bigIntLiteral: import_zod2.z.boolean().optional(),
|
|
9908
|
+
const: import_zod2.z.boolean().optional(),
|
|
9909
|
+
destructuring: import_zod2.z.boolean().optional(),
|
|
9910
|
+
document: import_zod2.z.boolean().optional(),
|
|
9911
|
+
dynamicImport: import_zod2.z.boolean().optional(),
|
|
9912
|
+
dynamicImportInWorker: import_zod2.z.boolean().optional(),
|
|
9913
|
+
forOf: import_zod2.z.boolean().optional(),
|
|
9914
|
+
globalThis: import_zod2.z.boolean().optional(),
|
|
9915
|
+
module: import_zod2.z.boolean().optional(),
|
|
9916
|
+
nodePrefixForCoreModules: import_zod2.z.boolean().optional(),
|
|
9917
|
+
optionalChaining: import_zod2.z.boolean().optional(),
|
|
9918
|
+
templateLiteral: import_zod2.z.boolean().optional()
|
|
9766
9919
|
});
|
|
9767
|
-
var output =
|
|
9920
|
+
var output = import_zod2.z.strictObject({
|
|
9768
9921
|
path: path6.optional(),
|
|
9769
9922
|
pathinfo: pathinfo.optional(),
|
|
9770
9923
|
clean: clean.optional(),
|
|
@@ -9773,7 +9926,7 @@ var output = import_zod.z.strictObject({
|
|
|
9773
9926
|
chunkFilename: chunkFilename.optional(),
|
|
9774
9927
|
crossOriginLoading: crossOriginLoading.optional(),
|
|
9775
9928
|
cssFilename: cssFilename.optional(),
|
|
9776
|
-
cssHeadDataCompression:
|
|
9929
|
+
cssHeadDataCompression: import_zod2.z.boolean().optional(),
|
|
9777
9930
|
cssChunkFilename: cssChunkFilename.optional(),
|
|
9778
9931
|
hotUpdateMainFilename: hotUpdateMainFilename.optional(),
|
|
9779
9932
|
hotUpdateChunkFilename: hotUpdateChunkFilename.optional(),
|
|
@@ -9800,7 +9953,7 @@ var output = import_zod.z.strictObject({
|
|
|
9800
9953
|
chunkFormat: chunkFormat.optional(),
|
|
9801
9954
|
chunkLoading: chunkLoading.optional(),
|
|
9802
9955
|
enabledChunkLoadingTypes: enabledChunkLoadingTypes.optional(),
|
|
9803
|
-
trustedTypes:
|
|
9956
|
+
trustedTypes: import_zod2.z.literal(true).or(import_zod2.z.string()).or(trustedTypes).optional(),
|
|
9804
9957
|
sourceMapFilename: sourceMapFilename.optional(),
|
|
9805
9958
|
hashDigest: hashDigest.optional(),
|
|
9806
9959
|
hashDigestLength: hashDigestLength.optional(),
|
|
@@ -9814,60 +9967,60 @@ var output = import_zod.z.strictObject({
|
|
|
9814
9967
|
devtoolNamespace: devtoolNamespace.optional(),
|
|
9815
9968
|
devtoolModuleFilenameTemplate: devtoolModuleFilenameTemplate.optional(),
|
|
9816
9969
|
devtoolFallbackModuleFilenameTemplate: devtoolFallbackModuleFilenameTemplate.optional(),
|
|
9817
|
-
chunkLoadTimeout:
|
|
9818
|
-
charset:
|
|
9970
|
+
chunkLoadTimeout: import_zod2.z.number().optional(),
|
|
9971
|
+
charset: import_zod2.z.boolean().optional(),
|
|
9819
9972
|
environment: environment.optional(),
|
|
9820
|
-
compareBeforeEmit:
|
|
9973
|
+
compareBeforeEmit: import_zod2.z.boolean().optional()
|
|
9821
9974
|
});
|
|
9822
|
-
var resolveAlias =
|
|
9823
|
-
|
|
9975
|
+
var resolveAlias = import_zod2.z.record(
|
|
9976
|
+
import_zod2.z.literal(false).or(import_zod2.z.string()).or(import_zod2.z.array(import_zod2.z.string().or(import_zod2.z.literal(false))))
|
|
9824
9977
|
);
|
|
9825
|
-
var resolveTsConfigFile =
|
|
9978
|
+
var resolveTsConfigFile = import_zod2.z.string();
|
|
9826
9979
|
var resolveTsConfig = resolveTsConfigFile.or(
|
|
9827
|
-
|
|
9980
|
+
import_zod2.z.strictObject({
|
|
9828
9981
|
configFile: resolveTsConfigFile,
|
|
9829
|
-
references:
|
|
9982
|
+
references: import_zod2.z.array(import_zod2.z.string()).or(import_zod2.z.literal("auto")).optional()
|
|
9830
9983
|
})
|
|
9831
9984
|
);
|
|
9832
|
-
var baseResolveOptions =
|
|
9985
|
+
var baseResolveOptions = import_zod2.z.strictObject({
|
|
9833
9986
|
alias: resolveAlias.optional(),
|
|
9834
|
-
conditionNames:
|
|
9835
|
-
extensions:
|
|
9987
|
+
conditionNames: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
9988
|
+
extensions: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
9836
9989
|
fallback: resolveAlias.optional(),
|
|
9837
|
-
mainFields:
|
|
9838
|
-
mainFiles:
|
|
9839
|
-
modules:
|
|
9840
|
-
preferRelative:
|
|
9841
|
-
preferAbsolute:
|
|
9842
|
-
symlinks:
|
|
9843
|
-
enforceExtension:
|
|
9844
|
-
importsFields:
|
|
9845
|
-
descriptionFiles:
|
|
9990
|
+
mainFields: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
9991
|
+
mainFiles: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
9992
|
+
modules: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
9993
|
+
preferRelative: import_zod2.z.boolean().optional(),
|
|
9994
|
+
preferAbsolute: import_zod2.z.boolean().optional(),
|
|
9995
|
+
symlinks: import_zod2.z.boolean().optional(),
|
|
9996
|
+
enforceExtension: import_zod2.z.boolean().optional(),
|
|
9997
|
+
importsFields: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
9998
|
+
descriptionFiles: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
9846
9999
|
tsConfig: resolveTsConfig.optional(),
|
|
9847
|
-
fullySpecified:
|
|
9848
|
-
exportsFields:
|
|
9849
|
-
extensionAlias:
|
|
9850
|
-
aliasFields:
|
|
9851
|
-
restrictions:
|
|
9852
|
-
roots:
|
|
10000
|
+
fullySpecified: import_zod2.z.boolean().optional(),
|
|
10001
|
+
exportsFields: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
10002
|
+
extensionAlias: import_zod2.z.record(import_zod2.z.string().or(import_zod2.z.array(import_zod2.z.string()))).optional(),
|
|
10003
|
+
aliasFields: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
10004
|
+
restrictions: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
10005
|
+
roots: import_zod2.z.array(import_zod2.z.string()).optional()
|
|
9853
10006
|
});
|
|
9854
10007
|
var resolveOptions = baseResolveOptions.extend({
|
|
9855
|
-
byDependency:
|
|
10008
|
+
byDependency: import_zod2.z.lazy(() => import_zod2.z.record(resolveOptions)).optional()
|
|
9856
10009
|
});
|
|
9857
|
-
var baseRuleSetCondition =
|
|
9858
|
-
var ruleSetCondition = baseRuleSetCondition.or(
|
|
9859
|
-
var ruleSetConditions =
|
|
9860
|
-
() =>
|
|
10010
|
+
var baseRuleSetCondition = import_zod2.z.instanceof(RegExp).or(import_zod2.z.string()).or(import_zod2.z.function().args(import_zod2.z.string()).returns(import_zod2.z.boolean()));
|
|
10011
|
+
var ruleSetCondition = baseRuleSetCondition.or(import_zod2.z.lazy(() => ruleSetConditions)).or(import_zod2.z.lazy(() => ruleSetLogicalConditions));
|
|
10012
|
+
var ruleSetConditions = import_zod2.z.lazy(
|
|
10013
|
+
() => import_zod2.z.array(ruleSetCondition)
|
|
9861
10014
|
);
|
|
9862
|
-
var ruleSetLogicalConditions =
|
|
10015
|
+
var ruleSetLogicalConditions = import_zod2.z.strictObject({
|
|
9863
10016
|
and: ruleSetConditions.optional(),
|
|
9864
10017
|
or: ruleSetConditions.optional(),
|
|
9865
10018
|
not: ruleSetCondition.optional()
|
|
9866
10019
|
});
|
|
9867
|
-
var ruleSetLoader =
|
|
9868
|
-
var ruleSetLoaderOptions =
|
|
9869
|
-
var ruleSetLoaderWithOptions =
|
|
9870
|
-
ident:
|
|
10020
|
+
var ruleSetLoader = import_zod2.z.string();
|
|
10021
|
+
var ruleSetLoaderOptions = import_zod2.z.string().or(import_zod2.z.record(import_zod2.z.any()));
|
|
10022
|
+
var ruleSetLoaderWithOptions = import_zod2.z.strictObject({
|
|
10023
|
+
ident: import_zod2.z.string().optional(),
|
|
9871
10024
|
loader: ruleSetLoader,
|
|
9872
10025
|
options: ruleSetLoaderOptions.optional()
|
|
9873
10026
|
});
|
|
@@ -9875,9 +10028,9 @@ var ruleSetUseItem = ruleSetLoader.or(
|
|
|
9875
10028
|
ruleSetLoaderWithOptions
|
|
9876
10029
|
);
|
|
9877
10030
|
var ruleSetUse = ruleSetUseItem.or(ruleSetUseItem.array()).or(
|
|
9878
|
-
|
|
10031
|
+
import_zod2.z.function().args(import_zod2.z.custom()).returns(ruleSetUseItem.array())
|
|
9879
10032
|
);
|
|
9880
|
-
var baseRuleSetRule =
|
|
10033
|
+
var baseRuleSetRule = import_zod2.z.strictObject({
|
|
9881
10034
|
test: ruleSetCondition.optional(),
|
|
9882
10035
|
exclude: ruleSetCondition.optional(),
|
|
9883
10036
|
include: ruleSetCondition.optional(),
|
|
@@ -9889,67 +10042,67 @@ var baseRuleSetRule = import_zod.z.strictObject({
|
|
|
9889
10042
|
resourceQuery: ruleSetCondition.optional(),
|
|
9890
10043
|
scheme: ruleSetCondition.optional(),
|
|
9891
10044
|
mimetype: ruleSetCondition.optional(),
|
|
9892
|
-
descriptionData:
|
|
9893
|
-
with:
|
|
9894
|
-
type:
|
|
9895
|
-
layer:
|
|
10045
|
+
descriptionData: import_zod2.z.record(ruleSetCondition).optional(),
|
|
10046
|
+
with: import_zod2.z.record(ruleSetCondition).optional(),
|
|
10047
|
+
type: import_zod2.z.string().optional(),
|
|
10048
|
+
layer: import_zod2.z.string().optional(),
|
|
9896
10049
|
loader: ruleSetLoader.optional(),
|
|
9897
10050
|
options: ruleSetLoaderOptions.optional(),
|
|
9898
10051
|
use: ruleSetUse.optional(),
|
|
9899
|
-
parser:
|
|
9900
|
-
generator:
|
|
10052
|
+
parser: import_zod2.z.record(import_zod2.z.any()).optional(),
|
|
10053
|
+
generator: import_zod2.z.record(import_zod2.z.any()).optional(),
|
|
9901
10054
|
resolve: resolveOptions.optional(),
|
|
9902
|
-
sideEffects:
|
|
9903
|
-
enforce:
|
|
10055
|
+
sideEffects: import_zod2.z.boolean().optional(),
|
|
10056
|
+
enforce: import_zod2.z.literal("pre").or(import_zod2.z.literal("post")).optional()
|
|
9904
10057
|
});
|
|
9905
10058
|
var ruleSetRule = baseRuleSetRule.extend({
|
|
9906
|
-
oneOf:
|
|
9907
|
-
rules:
|
|
10059
|
+
oneOf: import_zod2.z.lazy(() => ruleSetRule.or(falsy).array()).optional(),
|
|
10060
|
+
rules: import_zod2.z.lazy(() => ruleSetRule.or(falsy).array()).optional()
|
|
9908
10061
|
});
|
|
9909
|
-
var ruleSetRules =
|
|
9910
|
-
|
|
10062
|
+
var ruleSetRules = import_zod2.z.array(
|
|
10063
|
+
import_zod2.z.literal("...").or(ruleSetRule).or(falsy)
|
|
9911
10064
|
);
|
|
9912
|
-
var assetParserDataUrlOptions =
|
|
9913
|
-
maxSize:
|
|
10065
|
+
var assetParserDataUrlOptions = import_zod2.z.strictObject({
|
|
10066
|
+
maxSize: import_zod2.z.number().optional()
|
|
9914
10067
|
});
|
|
9915
10068
|
var assetParserDataUrl = assetParserDataUrlOptions;
|
|
9916
|
-
var assetParserOptions =
|
|
10069
|
+
var assetParserOptions = import_zod2.z.strictObject({
|
|
9917
10070
|
dataUrlCondition: assetParserDataUrl.optional()
|
|
9918
10071
|
});
|
|
9919
|
-
var cssParserNamedExports =
|
|
9920
|
-
var cssParserOptions =
|
|
10072
|
+
var cssParserNamedExports = import_zod2.z.boolean();
|
|
10073
|
+
var cssParserOptions = import_zod2.z.strictObject({
|
|
9921
10074
|
namedExports: cssParserNamedExports.optional()
|
|
9922
10075
|
});
|
|
9923
|
-
var cssAutoParserOptions =
|
|
10076
|
+
var cssAutoParserOptions = import_zod2.z.strictObject({
|
|
9924
10077
|
namedExports: cssParserNamedExports.optional()
|
|
9925
10078
|
});
|
|
9926
|
-
var cssModuleParserOptions =
|
|
10079
|
+
var cssModuleParserOptions = import_zod2.z.strictObject({
|
|
9927
10080
|
namedExports: cssParserNamedExports.optional()
|
|
9928
10081
|
});
|
|
9929
|
-
var dynamicImportMode =
|
|
9930
|
-
var dynamicImportPreload =
|
|
9931
|
-
var dynamicImportPrefetch =
|
|
9932
|
-
var dynamicImportFetchPriority =
|
|
9933
|
-
var javascriptParserUrl =
|
|
9934
|
-
var exprContextCritical =
|
|
9935
|
-
var wrappedContextCritical =
|
|
9936
|
-
var wrappedContextRegExp =
|
|
9937
|
-
var exportsPresence =
|
|
9938
|
-
var importExportsPresence =
|
|
9939
|
-
var reexportExportsPresence =
|
|
9940
|
-
var strictExportPresence =
|
|
9941
|
-
var worker =
|
|
9942
|
-
var overrideStrict =
|
|
9943
|
-
var requireAsExpression =
|
|
9944
|
-
var requireDynamic =
|
|
9945
|
-
var requireResolve =
|
|
9946
|
-
var importDynamic =
|
|
9947
|
-
var javascriptParserOptions =
|
|
10082
|
+
var dynamicImportMode = import_zod2.z.enum(["eager", "lazy", "weak", "lazy-once"]);
|
|
10083
|
+
var dynamicImportPreload = import_zod2.z.union([import_zod2.z.boolean(), import_zod2.z.number()]);
|
|
10084
|
+
var dynamicImportPrefetch = import_zod2.z.union([import_zod2.z.boolean(), import_zod2.z.number()]);
|
|
10085
|
+
var dynamicImportFetchPriority = import_zod2.z.enum(["low", "high", "auto"]);
|
|
10086
|
+
var javascriptParserUrl = import_zod2.z.union([import_zod2.z.literal("relative"), import_zod2.z.boolean()]);
|
|
10087
|
+
var exprContextCritical = import_zod2.z.boolean();
|
|
10088
|
+
var wrappedContextCritical = import_zod2.z.boolean();
|
|
10089
|
+
var wrappedContextRegExp = import_zod2.z.instanceof(RegExp);
|
|
10090
|
+
var exportsPresence = import_zod2.z.enum(["error", "warn", "auto"]).or(import_zod2.z.literal(false));
|
|
10091
|
+
var importExportsPresence = import_zod2.z.enum(["error", "warn", "auto"]).or(import_zod2.z.literal(false));
|
|
10092
|
+
var reexportExportsPresence = import_zod2.z.enum(["error", "warn", "auto"]).or(import_zod2.z.literal(false));
|
|
10093
|
+
var strictExportPresence = import_zod2.z.boolean();
|
|
10094
|
+
var worker = import_zod2.z.array(import_zod2.z.string()).or(import_zod2.z.boolean());
|
|
10095
|
+
var overrideStrict = import_zod2.z.enum(["strict", "non-strict"]);
|
|
10096
|
+
var requireAsExpression = import_zod2.z.boolean();
|
|
10097
|
+
var requireDynamic = import_zod2.z.boolean();
|
|
10098
|
+
var requireResolve = import_zod2.z.boolean();
|
|
10099
|
+
var importDynamic = import_zod2.z.boolean();
|
|
10100
|
+
var javascriptParserOptions = import_zod2.z.strictObject({
|
|
9948
10101
|
dynamicImportMode: dynamicImportMode.optional(),
|
|
9949
10102
|
dynamicImportPreload: dynamicImportPreload.optional(),
|
|
9950
10103
|
dynamicImportPrefetch: dynamicImportPrefetch.optional(),
|
|
9951
10104
|
dynamicImportFetchPriority: dynamicImportFetchPriority.optional(),
|
|
9952
|
-
importMeta:
|
|
10105
|
+
importMeta: import_zod2.z.boolean().optional(),
|
|
9953
10106
|
url: javascriptParserUrl.optional(),
|
|
9954
10107
|
exprContextCritical: exprContextCritical.optional(),
|
|
9955
10108
|
wrappedContextCritical: wrappedContextCritical.optional(),
|
|
@@ -9967,7 +10120,7 @@ var javascriptParserOptions = import_zod.z.strictObject({
|
|
|
9967
10120
|
importDynamic: importDynamic.optional()
|
|
9968
10121
|
// #endregion
|
|
9969
10122
|
});
|
|
9970
|
-
var parserOptionsByModuleTypeKnown =
|
|
10123
|
+
var parserOptionsByModuleTypeKnown = import_zod2.z.strictObject({
|
|
9971
10124
|
asset: assetParserOptions.optional(),
|
|
9972
10125
|
css: cssParserOptions.optional(),
|
|
9973
10126
|
"css/auto": cssAutoParserOptions.optional(),
|
|
@@ -9977,63 +10130,63 @@ var parserOptionsByModuleTypeKnown = import_zod.z.strictObject({
|
|
|
9977
10130
|
"javascript/dynamic": javascriptParserOptions.optional(),
|
|
9978
10131
|
"javascript/esm": javascriptParserOptions.optional()
|
|
9979
10132
|
});
|
|
9980
|
-
var parserOptionsByModuleTypeUnknown =
|
|
9981
|
-
|
|
10133
|
+
var parserOptionsByModuleTypeUnknown = import_zod2.z.record(
|
|
10134
|
+
import_zod2.z.record(import_zod2.z.any())
|
|
9982
10135
|
);
|
|
9983
10136
|
var parserOptionsByModuleType = parserOptionsByModuleTypeKnown.or(
|
|
9984
10137
|
parserOptionsByModuleTypeUnknown
|
|
9985
10138
|
);
|
|
9986
|
-
var assetGeneratorDataUrlOptions =
|
|
9987
|
-
encoding:
|
|
9988
|
-
mimetype:
|
|
10139
|
+
var assetGeneratorDataUrlOptions = import_zod2.z.strictObject({
|
|
10140
|
+
encoding: import_zod2.z.literal(false).or(import_zod2.z.literal("base64")).optional(),
|
|
10141
|
+
mimetype: import_zod2.z.string().optional()
|
|
9989
10142
|
});
|
|
9990
|
-
var assetGeneratorDataUrlFunction =
|
|
9991
|
-
|
|
9992
|
-
content:
|
|
9993
|
-
filename:
|
|
10143
|
+
var assetGeneratorDataUrlFunction = import_zod2.z.function().args(
|
|
10144
|
+
import_zod2.z.strictObject({
|
|
10145
|
+
content: import_zod2.z.string(),
|
|
10146
|
+
filename: import_zod2.z.string()
|
|
9994
10147
|
})
|
|
9995
|
-
).returns(
|
|
10148
|
+
).returns(import_zod2.z.string());
|
|
9996
10149
|
var assetGeneratorDataUrl = assetGeneratorDataUrlOptions.or(
|
|
9997
10150
|
assetGeneratorDataUrlFunction
|
|
9998
10151
|
);
|
|
9999
|
-
var assetInlineGeneratorOptions =
|
|
10152
|
+
var assetInlineGeneratorOptions = import_zod2.z.strictObject({
|
|
10000
10153
|
dataUrl: assetGeneratorDataUrl.optional()
|
|
10001
10154
|
});
|
|
10002
|
-
var assetResourceGeneratorOptions =
|
|
10003
|
-
emit:
|
|
10155
|
+
var assetResourceGeneratorOptions = import_zod2.z.strictObject({
|
|
10156
|
+
emit: import_zod2.z.boolean().optional(),
|
|
10004
10157
|
filename: filename.optional(),
|
|
10005
10158
|
publicPath: publicPath.optional()
|
|
10006
10159
|
});
|
|
10007
10160
|
var assetGeneratorOptions = assetInlineGeneratorOptions.merge(
|
|
10008
10161
|
assetResourceGeneratorOptions
|
|
10009
10162
|
);
|
|
10010
|
-
var cssGeneratorExportsConvention =
|
|
10163
|
+
var cssGeneratorExportsConvention = import_zod2.z.enum([
|
|
10011
10164
|
"as-is",
|
|
10012
10165
|
"camel-case",
|
|
10013
10166
|
"camel-case-only",
|
|
10014
10167
|
"dashes",
|
|
10015
10168
|
"dashes-only"
|
|
10016
10169
|
]);
|
|
10017
|
-
var cssGeneratorExportsOnly =
|
|
10018
|
-
var cssGeneratorLocalIdentName =
|
|
10019
|
-
var cssGeneratorEsModule =
|
|
10020
|
-
var cssGeneratorOptions =
|
|
10170
|
+
var cssGeneratorExportsOnly = import_zod2.z.boolean();
|
|
10171
|
+
var cssGeneratorLocalIdentName = import_zod2.z.string();
|
|
10172
|
+
var cssGeneratorEsModule = import_zod2.z.boolean();
|
|
10173
|
+
var cssGeneratorOptions = import_zod2.z.strictObject({
|
|
10021
10174
|
exportsOnly: cssGeneratorExportsOnly.optional(),
|
|
10022
10175
|
esModule: cssGeneratorEsModule.optional()
|
|
10023
10176
|
});
|
|
10024
|
-
var cssAutoGeneratorOptions =
|
|
10177
|
+
var cssAutoGeneratorOptions = import_zod2.z.strictObject({
|
|
10025
10178
|
exportsConvention: cssGeneratorExportsConvention.optional(),
|
|
10026
10179
|
exportsOnly: cssGeneratorExportsOnly.optional(),
|
|
10027
10180
|
localIdentName: cssGeneratorLocalIdentName.optional(),
|
|
10028
10181
|
esModule: cssGeneratorEsModule.optional()
|
|
10029
10182
|
});
|
|
10030
|
-
var cssModuleGeneratorOptions =
|
|
10183
|
+
var cssModuleGeneratorOptions = import_zod2.z.strictObject({
|
|
10031
10184
|
exportsConvention: cssGeneratorExportsConvention.optional(),
|
|
10032
10185
|
exportsOnly: cssGeneratorExportsOnly.optional(),
|
|
10033
10186
|
localIdentName: cssGeneratorLocalIdentName.optional(),
|
|
10034
10187
|
esModule: cssGeneratorEsModule.optional()
|
|
10035
10188
|
});
|
|
10036
|
-
var generatorOptionsByModuleTypeKnown =
|
|
10189
|
+
var generatorOptionsByModuleTypeKnown = import_zod2.z.strictObject({
|
|
10037
10190
|
asset: assetGeneratorOptions.optional(),
|
|
10038
10191
|
"asset/inline": assetInlineGeneratorOptions.optional(),
|
|
10039
10192
|
"asset/resource": assetResourceGeneratorOptions.optional(),
|
|
@@ -10041,25 +10194,25 @@ var generatorOptionsByModuleTypeKnown = import_zod.z.strictObject({
|
|
|
10041
10194
|
"css/auto": cssAutoGeneratorOptions.optional(),
|
|
10042
10195
|
"css/module": cssModuleGeneratorOptions.optional()
|
|
10043
10196
|
});
|
|
10044
|
-
var generatorOptionsByModuleTypeUnknown =
|
|
10045
|
-
|
|
10197
|
+
var generatorOptionsByModuleTypeUnknown = import_zod2.z.record(
|
|
10198
|
+
import_zod2.z.record(import_zod2.z.any())
|
|
10046
10199
|
);
|
|
10047
10200
|
var generatorOptionsByModuleType = generatorOptionsByModuleTypeKnown.or(
|
|
10048
10201
|
generatorOptionsByModuleTypeUnknown
|
|
10049
10202
|
);
|
|
10050
|
-
var noParseOptionSingle =
|
|
10203
|
+
var noParseOptionSingle = import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).or(import_zod2.z.function().args(import_zod2.z.string()).returns(import_zod2.z.boolean()));
|
|
10051
10204
|
var noParseOption = noParseOptionSingle.or(
|
|
10052
|
-
|
|
10205
|
+
import_zod2.z.array(noParseOptionSingle)
|
|
10053
10206
|
);
|
|
10054
|
-
var moduleOptions =
|
|
10207
|
+
var moduleOptions = import_zod2.z.strictObject({
|
|
10055
10208
|
defaultRules: ruleSetRules.optional(),
|
|
10056
10209
|
rules: ruleSetRules.optional(),
|
|
10057
10210
|
parser: parserOptionsByModuleType.optional(),
|
|
10058
10211
|
generator: generatorOptionsByModuleType.optional(),
|
|
10059
10212
|
noParse: noParseOption.optional()
|
|
10060
10213
|
});
|
|
10061
|
-
var allowTarget =
|
|
10062
|
-
|
|
10214
|
+
var allowTarget = import_zod2.z.union([
|
|
10215
|
+
import_zod2.z.enum([
|
|
10063
10216
|
"web",
|
|
10064
10217
|
"webworker",
|
|
10065
10218
|
"es3",
|
|
@@ -10073,66 +10226,66 @@ var allowTarget = import_zod.z.union([
|
|
|
10073
10226
|
"es2021",
|
|
10074
10227
|
"es2022"
|
|
10075
10228
|
]),
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10229
|
+
import_zod2.z.literal("node"),
|
|
10230
|
+
import_zod2.z.literal("async-node"),
|
|
10231
|
+
import_zod2.z.custom(
|
|
10079
10232
|
(value) => typeof value === "string" && /^node\d+$/.test(value)
|
|
10080
10233
|
),
|
|
10081
|
-
|
|
10234
|
+
import_zod2.z.custom(
|
|
10082
10235
|
(value) => typeof value === "string" && /^async-node\d+$/.test(value)
|
|
10083
10236
|
),
|
|
10084
|
-
|
|
10237
|
+
import_zod2.z.custom(
|
|
10085
10238
|
(value) => typeof value === "string" && /^node\d+\.\d+$/.test(value)
|
|
10086
10239
|
),
|
|
10087
|
-
|
|
10240
|
+
import_zod2.z.custom(
|
|
10088
10241
|
(value) => typeof value === "string" && /^async-node\d+\.\d+$/.test(value)
|
|
10089
10242
|
),
|
|
10090
|
-
|
|
10091
|
-
|
|
10243
|
+
import_zod2.z.literal("electron-main"),
|
|
10244
|
+
import_zod2.z.custom(
|
|
10092
10245
|
(value) => typeof value === "string" && /^electron\d+-main$/.test(value)
|
|
10093
10246
|
),
|
|
10094
|
-
|
|
10247
|
+
import_zod2.z.custom(
|
|
10095
10248
|
(value) => typeof value === "string" && /^electron\d+\.\d+-main$/.test(value)
|
|
10096
10249
|
),
|
|
10097
|
-
|
|
10098
|
-
|
|
10250
|
+
import_zod2.z.literal("electron-renderer"),
|
|
10251
|
+
import_zod2.z.custom(
|
|
10099
10252
|
(value) => typeof value === "string" && /^electron\d+-renderer$/.test(value)
|
|
10100
10253
|
),
|
|
10101
|
-
|
|
10254
|
+
import_zod2.z.custom(
|
|
10102
10255
|
(value) => typeof value === "string" && /^electron\d+\.\d+-renderer$/.test(value)
|
|
10103
10256
|
),
|
|
10104
|
-
|
|
10105
|
-
|
|
10257
|
+
import_zod2.z.literal("electron-preload"),
|
|
10258
|
+
import_zod2.z.custom(
|
|
10106
10259
|
(value) => typeof value === "string" && /^electron\d+-preload$/.test(value)
|
|
10107
10260
|
),
|
|
10108
|
-
|
|
10261
|
+
import_zod2.z.custom(
|
|
10109
10262
|
(value) => typeof value === "string" && /^electron\d+\.\d+-preload$/.test(value)
|
|
10110
10263
|
),
|
|
10111
|
-
|
|
10112
|
-
|
|
10264
|
+
import_zod2.z.literal("nwjs"),
|
|
10265
|
+
import_zod2.z.custom(
|
|
10113
10266
|
(value) => typeof value === "string" && /^nwjs\d+$/.test(value)
|
|
10114
10267
|
),
|
|
10115
|
-
|
|
10268
|
+
import_zod2.z.custom(
|
|
10116
10269
|
(value) => typeof value === "string" && /^nwjs\d+\.\d+$/.test(value)
|
|
10117
10270
|
),
|
|
10118
|
-
|
|
10119
|
-
|
|
10271
|
+
import_zod2.z.literal("node-webkit"),
|
|
10272
|
+
import_zod2.z.custom(
|
|
10120
10273
|
(value) => typeof value === "string" && /^node-webkit\d+$/.test(value)
|
|
10121
10274
|
),
|
|
10122
|
-
|
|
10275
|
+
import_zod2.z.custom(
|
|
10123
10276
|
(value) => typeof value === "string" && /^node-webkit\d+\.\d+$/.test(value)
|
|
10124
10277
|
),
|
|
10125
|
-
|
|
10126
|
-
|
|
10278
|
+
import_zod2.z.literal("browserslist"),
|
|
10279
|
+
import_zod2.z.custom(
|
|
10127
10280
|
(value) => typeof value === "string" && /^browserslist:(.+)$/.test(value)
|
|
10128
10281
|
)
|
|
10129
10282
|
]);
|
|
10130
|
-
var target =
|
|
10131
|
-
|
|
10283
|
+
var target = import_zod2.z.union([
|
|
10284
|
+
import_zod2.z.literal(false),
|
|
10132
10285
|
allowTarget,
|
|
10133
10286
|
allowTarget.array()
|
|
10134
10287
|
]);
|
|
10135
|
-
var externalsType =
|
|
10288
|
+
var externalsType = import_zod2.z.enum([
|
|
10136
10289
|
"var",
|
|
10137
10290
|
"module",
|
|
10138
10291
|
"assign",
|
|
@@ -10156,62 +10309,94 @@ var externalsType = import_zod.z.enum([
|
|
|
10156
10309
|
"script",
|
|
10157
10310
|
"node-commonjs"
|
|
10158
10311
|
]);
|
|
10159
|
-
var
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
)
|
|
10167
|
-
|
|
10312
|
+
var ZodExternalObjectValue = new ZodRspackCrossChecker({
|
|
10313
|
+
patterns: [
|
|
10314
|
+
{
|
|
10315
|
+
test: (config2) => {
|
|
10316
|
+
var _a, _b;
|
|
10317
|
+
let isLibraryUmd = false;
|
|
10318
|
+
const library3 = (_a = config2 == null ? void 0 : config2.output) == null ? void 0 : _a.library;
|
|
10319
|
+
if (typeof library3 === "object" && "type" in library3) {
|
|
10320
|
+
isLibraryUmd = library3.type === "umd";
|
|
10321
|
+
} else {
|
|
10322
|
+
isLibraryUmd = ((_b = config2 == null ? void 0 : config2.output) == null ? void 0 : _b.libraryTarget) === "umd";
|
|
10323
|
+
}
|
|
10324
|
+
if (isLibraryUmd) {
|
|
10325
|
+
return (config2 == null ? void 0 : config2.externalsType) === void 0 || (config2 == null ? void 0 : config2.externalsType) === "umd";
|
|
10326
|
+
}
|
|
10327
|
+
return false;
|
|
10328
|
+
},
|
|
10329
|
+
type: import_zod2.z.strictObject({
|
|
10330
|
+
root: import_zod2.z.string().or(import_zod2.z.string().array()),
|
|
10331
|
+
commonjs: import_zod2.z.string().or(import_zod2.z.string().array()),
|
|
10332
|
+
commonjs2: import_zod2.z.string().or(import_zod2.z.string().array()),
|
|
10333
|
+
amd: import_zod2.z.string().or(import_zod2.z.string().array())
|
|
10334
|
+
}),
|
|
10335
|
+
issue: (res) => {
|
|
10336
|
+
if (res.status === "aborted") {
|
|
10337
|
+
return [
|
|
10338
|
+
{
|
|
10339
|
+
fatal: true,
|
|
10340
|
+
code: import_zod2.ZodIssueCode.custom,
|
|
10341
|
+
message: `External object must have "root", "commonjs", "commonjs2", "amd" properties when "libraryType" or "externalsType" is "umd"`
|
|
10342
|
+
}
|
|
10343
|
+
];
|
|
10344
|
+
}
|
|
10345
|
+
return [];
|
|
10346
|
+
}
|
|
10347
|
+
}
|
|
10348
|
+
],
|
|
10349
|
+
default: import_zod2.z.record(import_zod2.z.string().or(import_zod2.z.string().array()))
|
|
10350
|
+
});
|
|
10351
|
+
var externalItemValue = import_zod2.z.string().or(import_zod2.z.boolean()).or(import_zod2.z.string().array().min(1)).or(ZodExternalObjectValue);
|
|
10352
|
+
var externalItemObjectUnknown = import_zod2.z.record(
|
|
10168
10353
|
externalItemValue
|
|
10169
10354
|
);
|
|
10170
|
-
var externalItemFunctionData =
|
|
10171
|
-
context:
|
|
10172
|
-
dependencyType:
|
|
10173
|
-
request:
|
|
10174
|
-
contextInfo:
|
|
10175
|
-
issuer:
|
|
10355
|
+
var externalItemFunctionData = import_zod2.z.strictObject({
|
|
10356
|
+
context: import_zod2.z.string().optional(),
|
|
10357
|
+
dependencyType: import_zod2.z.string().optional(),
|
|
10358
|
+
request: import_zod2.z.string().optional(),
|
|
10359
|
+
contextInfo: import_zod2.z.strictObject({
|
|
10360
|
+
issuer: import_zod2.z.string()
|
|
10176
10361
|
}).optional()
|
|
10177
10362
|
});
|
|
10178
|
-
var externalItem =
|
|
10179
|
-
|
|
10363
|
+
var externalItem = import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).or(externalItemObjectUnknown).or(
|
|
10364
|
+
import_zod2.z.function().args(
|
|
10180
10365
|
externalItemFunctionData,
|
|
10181
|
-
|
|
10182
|
-
|
|
10366
|
+
import_zod2.z.function().args(
|
|
10367
|
+
import_zod2.z.instanceof(Error).optional(),
|
|
10183
10368
|
externalItemValue.optional(),
|
|
10184
10369
|
externalsType.optional()
|
|
10185
|
-
).returns(
|
|
10370
|
+
).returns(import_zod2.z.void())
|
|
10186
10371
|
)
|
|
10187
10372
|
).or(
|
|
10188
|
-
|
|
10373
|
+
import_zod2.z.function().args(externalItemFunctionData).returns(import_zod2.z.promise(externalItemValue))
|
|
10189
10374
|
);
|
|
10190
10375
|
var externals = externalItem.array().or(externalItem);
|
|
10191
|
-
var externalsPresets =
|
|
10192
|
-
node:
|
|
10193
|
-
web:
|
|
10194
|
-
webAsync:
|
|
10195
|
-
electron:
|
|
10196
|
-
electronMain:
|
|
10197
|
-
electronPreload:
|
|
10198
|
-
electronRenderer:
|
|
10199
|
-
nwjs:
|
|
10376
|
+
var externalsPresets = import_zod2.z.strictObject({
|
|
10377
|
+
node: import_zod2.z.boolean().optional(),
|
|
10378
|
+
web: import_zod2.z.boolean().optional(),
|
|
10379
|
+
webAsync: import_zod2.z.boolean().optional(),
|
|
10380
|
+
electron: import_zod2.z.boolean().optional(),
|
|
10381
|
+
electronMain: import_zod2.z.boolean().optional(),
|
|
10382
|
+
electronPreload: import_zod2.z.boolean().optional(),
|
|
10383
|
+
electronRenderer: import_zod2.z.boolean().optional(),
|
|
10384
|
+
nwjs: import_zod2.z.boolean().optional()
|
|
10200
10385
|
});
|
|
10201
|
-
var filterItemTypes =
|
|
10202
|
-
|
|
10386
|
+
var filterItemTypes = import_zod2.z.instanceof(RegExp).or(import_zod2.z.string()).or(
|
|
10387
|
+
import_zod2.z.function().args(import_zod2.z.string()).returns(import_zod2.z.boolean())
|
|
10203
10388
|
);
|
|
10204
10389
|
var filterTypes = filterItemTypes.array().or(filterItemTypes);
|
|
10205
|
-
var infrastructureLogging =
|
|
10206
|
-
appendOnly:
|
|
10207
|
-
colors:
|
|
10208
|
-
console:
|
|
10209
|
-
debug:
|
|
10210
|
-
level:
|
|
10211
|
-
stream:
|
|
10390
|
+
var infrastructureLogging = import_zod2.z.strictObject({
|
|
10391
|
+
appendOnly: import_zod2.z.boolean().optional(),
|
|
10392
|
+
colors: import_zod2.z.boolean().optional(),
|
|
10393
|
+
console: import_zod2.z.custom().optional(),
|
|
10394
|
+
debug: import_zod2.z.boolean().or(filterTypes).optional(),
|
|
10395
|
+
level: import_zod2.z.enum(["none", "error", "warn", "info", "log", "verbose"]).optional(),
|
|
10396
|
+
stream: import_zod2.z.custom().optional()
|
|
10212
10397
|
});
|
|
10213
|
-
var devTool =
|
|
10214
|
-
|
|
10398
|
+
var devTool = import_zod2.z.literal(false).or(
|
|
10399
|
+
import_zod2.z.enum([
|
|
10215
10400
|
"eval",
|
|
10216
10401
|
"cheap-source-map",
|
|
10217
10402
|
"cheap-module-source-map",
|
|
@@ -10239,18 +10424,18 @@ var devTool = import_zod.z.literal(false).or(
|
|
|
10239
10424
|
"eval-nosources-source-map"
|
|
10240
10425
|
])
|
|
10241
10426
|
);
|
|
10242
|
-
var nodeOptions =
|
|
10243
|
-
__dirname:
|
|
10244
|
-
__filename:
|
|
10245
|
-
global:
|
|
10427
|
+
var nodeOptions = import_zod2.z.strictObject({
|
|
10428
|
+
__dirname: import_zod2.z.boolean().or(import_zod2.z.enum(["warn-mock", "mock", "eval-only", "node-module"])).optional(),
|
|
10429
|
+
__filename: import_zod2.z.boolean().or(import_zod2.z.enum(["warn-mock", "mock", "eval-only", "node-module"])).optional(),
|
|
10430
|
+
global: import_zod2.z.boolean().or(import_zod2.z.literal("warn")).optional()
|
|
10246
10431
|
});
|
|
10247
|
-
var node =
|
|
10248
|
-
var loader =
|
|
10249
|
-
var snapshotOptions =
|
|
10432
|
+
var node = import_zod2.z.literal(false).or(nodeOptions);
|
|
10433
|
+
var loader = import_zod2.z.record(import_zod2.z.string(), import_zod2.z.any());
|
|
10434
|
+
var snapshotOptions = import_zod2.z.strictObject(
|
|
10250
10435
|
{}
|
|
10251
10436
|
);
|
|
10252
|
-
var cacheOptions =
|
|
10253
|
-
var statsPresets =
|
|
10437
|
+
var cacheOptions = import_zod2.z.boolean();
|
|
10438
|
+
var statsPresets = import_zod2.z.enum([
|
|
10254
10439
|
"normal",
|
|
10255
10440
|
"none",
|
|
10256
10441
|
"verbose",
|
|
@@ -10260,244 +10445,244 @@ var statsPresets = import_zod.z.enum([
|
|
|
10260
10445
|
"detailed",
|
|
10261
10446
|
"summary"
|
|
10262
10447
|
]);
|
|
10263
|
-
var statsOptions =
|
|
10264
|
-
all:
|
|
10265
|
-
preset:
|
|
10266
|
-
assets:
|
|
10267
|
-
chunks:
|
|
10268
|
-
modules:
|
|
10269
|
-
entrypoints:
|
|
10270
|
-
chunkGroups:
|
|
10271
|
-
warnings:
|
|
10272
|
-
warningsCount:
|
|
10273
|
-
errors:
|
|
10274
|
-
errorsCount:
|
|
10275
|
-
colors:
|
|
10276
|
-
hash:
|
|
10277
|
-
version:
|
|
10278
|
-
reasons:
|
|
10279
|
-
publicPath:
|
|
10280
|
-
outputPath:
|
|
10281
|
-
chunkModules:
|
|
10282
|
-
chunkRelations:
|
|
10283
|
-
ids:
|
|
10284
|
-
timings:
|
|
10285
|
-
builtAt:
|
|
10286
|
-
moduleAssets:
|
|
10287
|
-
nestedModules:
|
|
10288
|
-
source:
|
|
10289
|
-
logging:
|
|
10290
|
-
loggingDebug:
|
|
10291
|
-
loggingTrace:
|
|
10292
|
-
runtimeModules:
|
|
10293
|
-
children:
|
|
10294
|
-
usedExports:
|
|
10295
|
-
providedExports:
|
|
10296
|
-
optimizationBailout:
|
|
10297
|
-
groupModulesByType:
|
|
10298
|
-
groupModulesByCacheStatus:
|
|
10299
|
-
groupModulesByLayer:
|
|
10300
|
-
groupModulesByAttributes:
|
|
10301
|
-
groupModulesByPath:
|
|
10302
|
-
groupModulesByExtension:
|
|
10303
|
-
modulesSpace:
|
|
10304
|
-
chunkModulesSpace:
|
|
10305
|
-
nestedModulesSpace:
|
|
10306
|
-
relatedAssets:
|
|
10307
|
-
groupAssetsByEmitStatus:
|
|
10308
|
-
groupAssetsByInfo:
|
|
10309
|
-
groupAssetsByPath:
|
|
10310
|
-
groupAssetsByExtension:
|
|
10311
|
-
groupAssetsByChunk:
|
|
10312
|
-
assetsSpace:
|
|
10313
|
-
orphanModules:
|
|
10314
|
-
excludeModules:
|
|
10315
|
-
|
|
10316
|
-
).or(
|
|
10317
|
-
excludeAssets:
|
|
10318
|
-
|
|
10319
|
-
).or(
|
|
10320
|
-
modulesSort:
|
|
10321
|
-
chunkModulesSort:
|
|
10322
|
-
nestedModulesSort:
|
|
10323
|
-
chunksSort:
|
|
10324
|
-
assetsSort:
|
|
10325
|
-
performance:
|
|
10326
|
-
env:
|
|
10327
|
-
chunkGroupAuxiliary:
|
|
10328
|
-
chunkGroupChildren:
|
|
10329
|
-
chunkGroupMaxAssets:
|
|
10330
|
-
dependentModules:
|
|
10331
|
-
chunkOrigins:
|
|
10332
|
-
runtime:
|
|
10333
|
-
depth:
|
|
10334
|
-
reasonsSpace:
|
|
10335
|
-
groupReasonsByOrigin:
|
|
10336
|
-
errorDetails:
|
|
10337
|
-
errorStack:
|
|
10338
|
-
moduleTrace:
|
|
10339
|
-
cachedModules:
|
|
10340
|
-
cachedAssets:
|
|
10341
|
-
cached:
|
|
10342
|
-
errorsSpace:
|
|
10343
|
-
warningsSpace:
|
|
10448
|
+
var statsOptions = import_zod2.z.strictObject({
|
|
10449
|
+
all: import_zod2.z.boolean().optional(),
|
|
10450
|
+
preset: import_zod2.z.boolean().or(statsPresets).optional(),
|
|
10451
|
+
assets: import_zod2.z.boolean().optional(),
|
|
10452
|
+
chunks: import_zod2.z.boolean().optional(),
|
|
10453
|
+
modules: import_zod2.z.boolean().optional(),
|
|
10454
|
+
entrypoints: import_zod2.z.boolean().or(import_zod2.z.literal("auto")).optional(),
|
|
10455
|
+
chunkGroups: import_zod2.z.boolean().optional(),
|
|
10456
|
+
warnings: import_zod2.z.boolean().optional(),
|
|
10457
|
+
warningsCount: import_zod2.z.boolean().optional(),
|
|
10458
|
+
errors: import_zod2.z.boolean().optional(),
|
|
10459
|
+
errorsCount: import_zod2.z.boolean().optional(),
|
|
10460
|
+
colors: import_zod2.z.boolean().optional(),
|
|
10461
|
+
hash: import_zod2.z.boolean().optional(),
|
|
10462
|
+
version: import_zod2.z.boolean().optional(),
|
|
10463
|
+
reasons: import_zod2.z.boolean().optional(),
|
|
10464
|
+
publicPath: import_zod2.z.boolean().optional(),
|
|
10465
|
+
outputPath: import_zod2.z.boolean().optional(),
|
|
10466
|
+
chunkModules: import_zod2.z.boolean().optional(),
|
|
10467
|
+
chunkRelations: import_zod2.z.boolean().optional(),
|
|
10468
|
+
ids: import_zod2.z.boolean().optional(),
|
|
10469
|
+
timings: import_zod2.z.boolean().optional(),
|
|
10470
|
+
builtAt: import_zod2.z.boolean().optional(),
|
|
10471
|
+
moduleAssets: import_zod2.z.boolean().optional(),
|
|
10472
|
+
nestedModules: import_zod2.z.boolean().optional(),
|
|
10473
|
+
source: import_zod2.z.boolean().optional(),
|
|
10474
|
+
logging: import_zod2.z.enum(["none", "error", "warn", "info", "log", "verbose"]).or(import_zod2.z.boolean()).optional(),
|
|
10475
|
+
loggingDebug: import_zod2.z.boolean().or(filterTypes).optional(),
|
|
10476
|
+
loggingTrace: import_zod2.z.boolean().optional(),
|
|
10477
|
+
runtimeModules: import_zod2.z.boolean().optional(),
|
|
10478
|
+
children: import_zod2.z.boolean().optional(),
|
|
10479
|
+
usedExports: import_zod2.z.boolean().optional(),
|
|
10480
|
+
providedExports: import_zod2.z.boolean().optional(),
|
|
10481
|
+
optimizationBailout: import_zod2.z.boolean().optional(),
|
|
10482
|
+
groupModulesByType: import_zod2.z.boolean().optional(),
|
|
10483
|
+
groupModulesByCacheStatus: import_zod2.z.boolean().optional(),
|
|
10484
|
+
groupModulesByLayer: import_zod2.z.boolean().optional(),
|
|
10485
|
+
groupModulesByAttributes: import_zod2.z.boolean().optional(),
|
|
10486
|
+
groupModulesByPath: import_zod2.z.boolean().optional(),
|
|
10487
|
+
groupModulesByExtension: import_zod2.z.boolean().optional(),
|
|
10488
|
+
modulesSpace: import_zod2.z.number().optional(),
|
|
10489
|
+
chunkModulesSpace: import_zod2.z.number().optional(),
|
|
10490
|
+
nestedModulesSpace: import_zod2.z.number().optional(),
|
|
10491
|
+
relatedAssets: import_zod2.z.boolean().optional(),
|
|
10492
|
+
groupAssetsByEmitStatus: import_zod2.z.boolean().optional(),
|
|
10493
|
+
groupAssetsByInfo: import_zod2.z.boolean().optional(),
|
|
10494
|
+
groupAssetsByPath: import_zod2.z.boolean().optional(),
|
|
10495
|
+
groupAssetsByExtension: import_zod2.z.boolean().optional(),
|
|
10496
|
+
groupAssetsByChunk: import_zod2.z.boolean().optional(),
|
|
10497
|
+
assetsSpace: import_zod2.z.number().optional(),
|
|
10498
|
+
orphanModules: import_zod2.z.boolean().optional(),
|
|
10499
|
+
excludeModules: import_zod2.z.array(
|
|
10500
|
+
import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).or(import_zod2.z.function(import_zod2.z.tuple([import_zod2.z.string(), import_zod2.z.any(), import_zod2.z.any()]), import_zod2.z.boolean()))
|
|
10501
|
+
).or(import_zod2.z.string()).or(import_zod2.z.instanceof(RegExp)).or(import_zod2.z.function(import_zod2.z.tuple([import_zod2.z.string(), import_zod2.z.any(), import_zod2.z.any()]), import_zod2.z.boolean())).or(import_zod2.z.boolean()).optional(),
|
|
10502
|
+
excludeAssets: import_zod2.z.array(
|
|
10503
|
+
import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).or(import_zod2.z.function(import_zod2.z.tuple([import_zod2.z.string(), import_zod2.z.any()]), import_zod2.z.boolean()))
|
|
10504
|
+
).or(import_zod2.z.string()).or(import_zod2.z.instanceof(RegExp)).or(import_zod2.z.function(import_zod2.z.tuple([import_zod2.z.string(), import_zod2.z.any()]), import_zod2.z.boolean())).optional(),
|
|
10505
|
+
modulesSort: import_zod2.z.string().optional(),
|
|
10506
|
+
chunkModulesSort: import_zod2.z.string().optional(),
|
|
10507
|
+
nestedModulesSort: import_zod2.z.string().optional(),
|
|
10508
|
+
chunksSort: import_zod2.z.string().optional(),
|
|
10509
|
+
assetsSort: import_zod2.z.string().optional(),
|
|
10510
|
+
performance: import_zod2.z.boolean().optional(),
|
|
10511
|
+
env: import_zod2.z.boolean().optional(),
|
|
10512
|
+
chunkGroupAuxiliary: import_zod2.z.boolean().optional(),
|
|
10513
|
+
chunkGroupChildren: import_zod2.z.boolean().optional(),
|
|
10514
|
+
chunkGroupMaxAssets: import_zod2.z.number().optional(),
|
|
10515
|
+
dependentModules: import_zod2.z.boolean().optional(),
|
|
10516
|
+
chunkOrigins: import_zod2.z.boolean().optional(),
|
|
10517
|
+
runtime: import_zod2.z.boolean().optional(),
|
|
10518
|
+
depth: import_zod2.z.boolean().optional(),
|
|
10519
|
+
reasonsSpace: import_zod2.z.number().optional(),
|
|
10520
|
+
groupReasonsByOrigin: import_zod2.z.boolean().optional(),
|
|
10521
|
+
errorDetails: import_zod2.z.boolean().optional(),
|
|
10522
|
+
errorStack: import_zod2.z.boolean().optional(),
|
|
10523
|
+
moduleTrace: import_zod2.z.boolean().optional(),
|
|
10524
|
+
cachedModules: import_zod2.z.boolean().optional(),
|
|
10525
|
+
cachedAssets: import_zod2.z.boolean().optional(),
|
|
10526
|
+
cached: import_zod2.z.boolean().optional(),
|
|
10527
|
+
errorsSpace: import_zod2.z.number().optional(),
|
|
10528
|
+
warningsSpace: import_zod2.z.number().optional()
|
|
10344
10529
|
});
|
|
10345
|
-
var statsValue =
|
|
10346
|
-
var plugin =
|
|
10347
|
-
|
|
10530
|
+
var statsValue = import_zod2.z.boolean().or(statsPresets).or(statsOptions);
|
|
10531
|
+
var plugin = import_zod2.z.union([
|
|
10532
|
+
import_zod2.z.custom(),
|
|
10348
10533
|
falsy
|
|
10349
10534
|
]);
|
|
10350
10535
|
var plugins = plugin.array();
|
|
10351
|
-
var optimizationRuntimeChunk =
|
|
10352
|
-
|
|
10353
|
-
name:
|
|
10354
|
-
|
|
10536
|
+
var optimizationRuntimeChunk = import_zod2.z.enum(["single", "multiple"]).or(import_zod2.z.boolean()).or(
|
|
10537
|
+
import_zod2.z.strictObject({
|
|
10538
|
+
name: import_zod2.z.string().or(
|
|
10539
|
+
import_zod2.z.function().args(import_zod2.z.strictObject({ name: import_zod2.z.string() })).returns(import_zod2.z.string())
|
|
10355
10540
|
).optional()
|
|
10356
10541
|
})
|
|
10357
10542
|
);
|
|
10358
|
-
var optimizationSplitChunksNameFunction =
|
|
10359
|
-
|
|
10543
|
+
var optimizationSplitChunksNameFunction = import_zod2.z.function().args(
|
|
10544
|
+
import_zod2.z.instanceof(Module).optional()
|
|
10360
10545
|
// FIXME: z.array(z.instanceof(Chunk)).optional(), z.string()
|
|
10361
10546
|
// FIXME: Chunk[], cacheChunkKey
|
|
10362
10547
|
);
|
|
10363
|
-
var optimizationSplitChunksName =
|
|
10364
|
-
var optimizationSplitChunksChunks =
|
|
10365
|
-
|
|
10548
|
+
var optimizationSplitChunksName = import_zod2.z.string().or(import_zod2.z.literal(false)).or(optimizationSplitChunksNameFunction);
|
|
10549
|
+
var optimizationSplitChunksChunks = import_zod2.z.enum(["initial", "async", "all"]).or(import_zod2.z.instanceof(RegExp)).or(
|
|
10550
|
+
import_zod2.z.function().args(import_zod2.z.instanceof(Chunk, { message: "Input not instance of Chunk" })).returns(import_zod2.z.boolean())
|
|
10366
10551
|
);
|
|
10367
|
-
var optimizationSplitChunksSizes =
|
|
10368
|
-
var optimizationSplitChunksDefaultSizeTypes =
|
|
10552
|
+
var optimizationSplitChunksSizes = import_zod2.z.number().or(import_zod2.z.record(import_zod2.z.number()));
|
|
10553
|
+
var optimizationSplitChunksDefaultSizeTypes = import_zod2.z.array(import_zod2.z.string());
|
|
10369
10554
|
var sharedOptimizationSplitChunksCacheGroup = {
|
|
10370
10555
|
chunks: optimizationSplitChunksChunks.optional(),
|
|
10371
10556
|
defaultSizeTypes: optimizationSplitChunksDefaultSizeTypes.optional(),
|
|
10372
|
-
minChunks:
|
|
10373
|
-
usedExports:
|
|
10557
|
+
minChunks: import_zod2.z.number().min(1).optional(),
|
|
10558
|
+
usedExports: import_zod2.z.boolean().optional(),
|
|
10374
10559
|
name: optimizationSplitChunksName.optional(),
|
|
10375
10560
|
minSize: optimizationSplitChunksSizes.optional(),
|
|
10376
10561
|
maxSize: optimizationSplitChunksSizes.optional(),
|
|
10377
10562
|
maxAsyncSize: optimizationSplitChunksSizes.optional(),
|
|
10378
10563
|
maxInitialSize: optimizationSplitChunksSizes.optional(),
|
|
10379
|
-
maxAsyncRequests:
|
|
10380
|
-
maxInitialRequests:
|
|
10381
|
-
automaticNameDelimiter:
|
|
10382
|
-
};
|
|
10383
|
-
var optimizationSplitChunksCacheGroup =
|
|
10384
|
-
test:
|
|
10385
|
-
|
|
10386
|
-
|
|
10564
|
+
maxAsyncRequests: import_zod2.z.number().optional(),
|
|
10565
|
+
maxInitialRequests: import_zod2.z.number().optional(),
|
|
10566
|
+
automaticNameDelimiter: import_zod2.z.string().optional()
|
|
10567
|
+
};
|
|
10568
|
+
var optimizationSplitChunksCacheGroup = import_zod2.z.strictObject({
|
|
10569
|
+
test: import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).or(
|
|
10570
|
+
import_zod2.z.function().args(
|
|
10571
|
+
import_zod2.z.instanceof(Module)
|
|
10387
10572
|
/** FIXME: lack of CacheGroupContext */
|
|
10388
10573
|
)
|
|
10389
10574
|
).optional(),
|
|
10390
|
-
priority:
|
|
10391
|
-
enforce:
|
|
10392
|
-
filename:
|
|
10393
|
-
reuseExistingChunk:
|
|
10394
|
-
type:
|
|
10395
|
-
idHint:
|
|
10575
|
+
priority: import_zod2.z.number().optional(),
|
|
10576
|
+
enforce: import_zod2.z.boolean().optional(),
|
|
10577
|
+
filename: import_zod2.z.string().optional(),
|
|
10578
|
+
reuseExistingChunk: import_zod2.z.boolean().optional(),
|
|
10579
|
+
type: import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).optional(),
|
|
10580
|
+
idHint: import_zod2.z.string().optional(),
|
|
10396
10581
|
...sharedOptimizationSplitChunksCacheGroup
|
|
10397
10582
|
});
|
|
10398
|
-
var optimizationSplitChunksOptions =
|
|
10399
|
-
cacheGroups:
|
|
10400
|
-
fallbackCacheGroup:
|
|
10583
|
+
var optimizationSplitChunksOptions = import_zod2.z.strictObject({
|
|
10584
|
+
cacheGroups: import_zod2.z.record(import_zod2.z.literal(false).or(optimizationSplitChunksCacheGroup)).optional(),
|
|
10585
|
+
fallbackCacheGroup: import_zod2.z.strictObject({
|
|
10401
10586
|
chunks: optimizationSplitChunksChunks.optional(),
|
|
10402
|
-
minSize:
|
|
10403
|
-
maxSize:
|
|
10404
|
-
maxAsyncSize:
|
|
10405
|
-
maxInitialSize:
|
|
10406
|
-
automaticNameDelimiter:
|
|
10587
|
+
minSize: import_zod2.z.number().optional(),
|
|
10588
|
+
maxSize: import_zod2.z.number().optional(),
|
|
10589
|
+
maxAsyncSize: import_zod2.z.number().optional(),
|
|
10590
|
+
maxInitialSize: import_zod2.z.number().optional(),
|
|
10591
|
+
automaticNameDelimiter: import_zod2.z.string().optional()
|
|
10407
10592
|
}).optional(),
|
|
10408
|
-
hidePathInfo:
|
|
10593
|
+
hidePathInfo: import_zod2.z.boolean().optional(),
|
|
10409
10594
|
...sharedOptimizationSplitChunksCacheGroup
|
|
10410
10595
|
});
|
|
10411
|
-
var optimization =
|
|
10412
|
-
moduleIds:
|
|
10413
|
-
chunkIds:
|
|
10414
|
-
minimize:
|
|
10415
|
-
minimizer:
|
|
10416
|
-
mergeDuplicateChunks:
|
|
10417
|
-
splitChunks:
|
|
10596
|
+
var optimization = import_zod2.z.strictObject({
|
|
10597
|
+
moduleIds: import_zod2.z.enum(["named", "natural", "deterministic"]).optional(),
|
|
10598
|
+
chunkIds: import_zod2.z.enum(["natural", "named", "deterministic"]).optional(),
|
|
10599
|
+
minimize: import_zod2.z.boolean().optional(),
|
|
10600
|
+
minimizer: import_zod2.z.literal("...").or(plugin).array().optional(),
|
|
10601
|
+
mergeDuplicateChunks: import_zod2.z.boolean().optional(),
|
|
10602
|
+
splitChunks: import_zod2.z.literal(false).or(optimizationSplitChunksOptions).optional(),
|
|
10418
10603
|
runtimeChunk: optimizationRuntimeChunk.optional(),
|
|
10419
|
-
removeAvailableModules:
|
|
10420
|
-
removeEmptyChunks:
|
|
10421
|
-
realContentHash:
|
|
10422
|
-
sideEffects:
|
|
10423
|
-
providedExports:
|
|
10424
|
-
concatenateModules:
|
|
10425
|
-
innerGraph:
|
|
10426
|
-
usedExports:
|
|
10427
|
-
mangleExports:
|
|
10428
|
-
nodeEnv:
|
|
10429
|
-
emitOnErrors:
|
|
10604
|
+
removeAvailableModules: import_zod2.z.boolean().optional(),
|
|
10605
|
+
removeEmptyChunks: import_zod2.z.boolean().optional(),
|
|
10606
|
+
realContentHash: import_zod2.z.boolean().optional(),
|
|
10607
|
+
sideEffects: import_zod2.z.enum(["flag"]).or(import_zod2.z.boolean()).optional(),
|
|
10608
|
+
providedExports: import_zod2.z.boolean().optional(),
|
|
10609
|
+
concatenateModules: import_zod2.z.boolean().optional(),
|
|
10610
|
+
innerGraph: import_zod2.z.boolean().optional(),
|
|
10611
|
+
usedExports: import_zod2.z.enum(["global"]).or(import_zod2.z.boolean()).optional(),
|
|
10612
|
+
mangleExports: import_zod2.z.enum(["size", "deterministic"]).or(import_zod2.z.boolean()).optional(),
|
|
10613
|
+
nodeEnv: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.literal(false)]).optional(),
|
|
10614
|
+
emitOnErrors: import_zod2.z.boolean().optional()
|
|
10430
10615
|
});
|
|
10431
|
-
var rspackFutureOptions =
|
|
10432
|
-
bundlerInfo:
|
|
10433
|
-
version:
|
|
10434
|
-
bundler:
|
|
10435
|
-
force:
|
|
10616
|
+
var rspackFutureOptions = import_zod2.z.strictObject({
|
|
10617
|
+
bundlerInfo: import_zod2.z.strictObject({
|
|
10618
|
+
version: import_zod2.z.string().optional(),
|
|
10619
|
+
bundler: import_zod2.z.string().optional(),
|
|
10620
|
+
force: import_zod2.z.boolean().or(import_zod2.z.array(import_zod2.z.enum(["version", "uniqueId"]))).optional()
|
|
10436
10621
|
}).optional()
|
|
10437
10622
|
});
|
|
10438
|
-
var listenOptions =
|
|
10439
|
-
port:
|
|
10440
|
-
host:
|
|
10441
|
-
backlog:
|
|
10442
|
-
path:
|
|
10443
|
-
exclusive:
|
|
10444
|
-
readableAll:
|
|
10445
|
-
writableAll:
|
|
10446
|
-
ipv6Only:
|
|
10623
|
+
var listenOptions = import_zod2.z.object({
|
|
10624
|
+
port: import_zod2.z.number().optional(),
|
|
10625
|
+
host: import_zod2.z.string().optional(),
|
|
10626
|
+
backlog: import_zod2.z.number().optional(),
|
|
10627
|
+
path: import_zod2.z.string().optional(),
|
|
10628
|
+
exclusive: import_zod2.z.boolean().optional(),
|
|
10629
|
+
readableAll: import_zod2.z.boolean().optional(),
|
|
10630
|
+
writableAll: import_zod2.z.boolean().optional(),
|
|
10631
|
+
ipv6Only: import_zod2.z.boolean().optional()
|
|
10447
10632
|
});
|
|
10448
|
-
var lazyCompilationOptions =
|
|
10449
|
-
backend:
|
|
10450
|
-
client:
|
|
10451
|
-
listen:
|
|
10452
|
-
protocol:
|
|
10633
|
+
var lazyCompilationOptions = import_zod2.z.object({
|
|
10634
|
+
backend: import_zod2.z.object({
|
|
10635
|
+
client: import_zod2.z.string().optional(),
|
|
10636
|
+
listen: import_zod2.z.number().optional().or(listenOptions),
|
|
10637
|
+
protocol: import_zod2.z.enum(["http", "https"]).optional()
|
|
10453
10638
|
}).optional(),
|
|
10454
|
-
imports:
|
|
10455
|
-
entries:
|
|
10456
|
-
test:
|
|
10639
|
+
imports: import_zod2.z.boolean().optional(),
|
|
10640
|
+
entries: import_zod2.z.boolean().optional(),
|
|
10641
|
+
test: import_zod2.z.instanceof(RegExp).or(import_zod2.z.function().args(import_zod2.z.custom()).returns(import_zod2.z.boolean())).optional()
|
|
10457
10642
|
});
|
|
10458
|
-
var incremental =
|
|
10459
|
-
make:
|
|
10460
|
-
emitAssets:
|
|
10461
|
-
inferAsyncModules:
|
|
10462
|
-
providedExports:
|
|
10463
|
-
dependenciesDiagnostics:
|
|
10464
|
-
modulesHashes:
|
|
10465
|
-
modulesCodegen:
|
|
10466
|
-
modulesRuntimeRequirements:
|
|
10467
|
-
buildChunkGraph:
|
|
10643
|
+
var incremental = import_zod2.z.strictObject({
|
|
10644
|
+
make: import_zod2.z.boolean().optional(),
|
|
10645
|
+
emitAssets: import_zod2.z.boolean().optional(),
|
|
10646
|
+
inferAsyncModules: import_zod2.z.boolean().optional(),
|
|
10647
|
+
providedExports: import_zod2.z.boolean().optional(),
|
|
10648
|
+
dependenciesDiagnostics: import_zod2.z.boolean().optional(),
|
|
10649
|
+
modulesHashes: import_zod2.z.boolean().optional(),
|
|
10650
|
+
modulesCodegen: import_zod2.z.boolean().optional(),
|
|
10651
|
+
modulesRuntimeRequirements: import_zod2.z.boolean().optional(),
|
|
10652
|
+
buildChunkGraph: import_zod2.z.boolean().optional()
|
|
10468
10653
|
});
|
|
10469
|
-
var experiments =
|
|
10470
|
-
lazyCompilation:
|
|
10471
|
-
asyncWebAssembly:
|
|
10472
|
-
outputModule:
|
|
10473
|
-
topLevelAwait:
|
|
10474
|
-
css:
|
|
10475
|
-
layers:
|
|
10476
|
-
incremental:
|
|
10477
|
-
futureDefaults:
|
|
10654
|
+
var experiments = import_zod2.z.strictObject({
|
|
10655
|
+
lazyCompilation: import_zod2.z.boolean().optional().or(lazyCompilationOptions),
|
|
10656
|
+
asyncWebAssembly: import_zod2.z.boolean().optional(),
|
|
10657
|
+
outputModule: import_zod2.z.boolean().optional(),
|
|
10658
|
+
topLevelAwait: import_zod2.z.boolean().optional(),
|
|
10659
|
+
css: import_zod2.z.boolean().optional(),
|
|
10660
|
+
layers: import_zod2.z.boolean().optional(),
|
|
10661
|
+
incremental: import_zod2.z.boolean().or(incremental).optional(),
|
|
10662
|
+
futureDefaults: import_zod2.z.boolean().optional(),
|
|
10478
10663
|
rspackFuture: rspackFutureOptions.optional()
|
|
10479
10664
|
});
|
|
10480
|
-
var watch =
|
|
10481
|
-
var watchOptions =
|
|
10482
|
-
aggregateTimeout:
|
|
10483
|
-
followSymlinks:
|
|
10484
|
-
ignored:
|
|
10485
|
-
poll:
|
|
10486
|
-
stdin:
|
|
10665
|
+
var watch = import_zod2.z.boolean();
|
|
10666
|
+
var watchOptions = import_zod2.z.strictObject({
|
|
10667
|
+
aggregateTimeout: import_zod2.z.number().optional(),
|
|
10668
|
+
followSymlinks: import_zod2.z.boolean().optional(),
|
|
10669
|
+
ignored: import_zod2.z.string().array().or(import_zod2.z.instanceof(RegExp)).or(import_zod2.z.string()).optional(),
|
|
10670
|
+
poll: import_zod2.z.number().or(import_zod2.z.boolean()).optional(),
|
|
10671
|
+
stdin: import_zod2.z.boolean().optional()
|
|
10487
10672
|
});
|
|
10488
|
-
var devServer =
|
|
10489
|
-
var ignoreWarnings =
|
|
10490
|
-
|
|
10673
|
+
var devServer = import_zod2.z.custom();
|
|
10674
|
+
var ignoreWarnings = import_zod2.z.instanceof(RegExp).or(
|
|
10675
|
+
import_zod2.z.function().args(import_zod2.z.instanceof(Error), import_zod2.z.custom()).returns(import_zod2.z.boolean())
|
|
10491
10676
|
).array();
|
|
10492
|
-
var profile =
|
|
10493
|
-
var bail =
|
|
10494
|
-
var performance =
|
|
10495
|
-
assetFilter:
|
|
10496
|
-
hints:
|
|
10497
|
-
maxAssetSize:
|
|
10498
|
-
maxEntrypointSize:
|
|
10499
|
-
}).or(
|
|
10500
|
-
var rspackOptions =
|
|
10677
|
+
var profile = import_zod2.z.boolean();
|
|
10678
|
+
var bail = import_zod2.z.boolean();
|
|
10679
|
+
var performance = import_zod2.z.strictObject({
|
|
10680
|
+
assetFilter: import_zod2.z.function().args(import_zod2.z.string()).returns(import_zod2.z.boolean()).optional(),
|
|
10681
|
+
hints: import_zod2.z.enum(["error", "warning"]).or(import_zod2.z.literal(false)).optional(),
|
|
10682
|
+
maxAssetSize: import_zod2.z.number().optional(),
|
|
10683
|
+
maxEntrypointSize: import_zod2.z.number().optional()
|
|
10684
|
+
}).or(import_zod2.z.literal(false));
|
|
10685
|
+
var rspackOptions = import_zod2.z.strictObject({
|
|
10501
10686
|
name: name.optional(),
|
|
10502
10687
|
dependencies: dependencies.optional(),
|
|
10503
10688
|
entry: entry.optional(),
|
|
@@ -10812,7 +10997,7 @@ var import_node_fs2 = __toESM(require("fs"));
|
|
|
10812
10997
|
var import_node_path8 = __toESM(require("path"));
|
|
10813
10998
|
var import_binding39 = require("@rspack/binding");
|
|
10814
10999
|
var liteTapable3 = __toESM(require("@rspack/lite-tapable"));
|
|
10815
|
-
var
|
|
11000
|
+
var import_zod3 = require("../compiled/zod/index.js");
|
|
10816
11001
|
|
|
10817
11002
|
// ../../node_modules/.pnpm/zod-validation-error@3.4.0_zod@3.23.8/node_modules/zod-validation-error/dist/index.mjs
|
|
10818
11003
|
var zod2 = __toESM(require("../compiled/zod/index.js"), 1);
|
|
@@ -11063,40 +11248,40 @@ function isValidate(opts, schema) {
|
|
|
11063
11248
|
}
|
|
11064
11249
|
|
|
11065
11250
|
// src/builtin-plugin/HtmlRspackPlugin.ts
|
|
11066
|
-
var templateRenderFunction =
|
|
11067
|
-
|
|
11251
|
+
var templateRenderFunction = import_zod3.z.function().args(import_zod3.z.record(import_zod3.z.string(), import_zod3.z.any())).returns(
|
|
11252
|
+
import_zod3.z.string().or(import_zod3.z.promise(import_zod3.z.string()))
|
|
11068
11253
|
);
|
|
11069
|
-
var templateParamFunction =
|
|
11070
|
-
|
|
11254
|
+
var templateParamFunction = import_zod3.z.function().args(import_zod3.z.record(import_zod3.z.string(), import_zod3.z.any())).returns(
|
|
11255
|
+
import_zod3.z.record(import_zod3.z.string(), import_zod3.z.any()).or(import_zod3.z.promise(import_zod3.z.record(import_zod3.z.string(), import_zod3.z.any())))
|
|
11071
11256
|
);
|
|
11072
|
-
var templateFilenameFunction =
|
|
11073
|
-
var htmlRspackPluginOptions =
|
|
11074
|
-
filename:
|
|
11075
|
-
template:
|
|
11257
|
+
var templateFilenameFunction = import_zod3.z.function().args(import_zod3.z.string()).returns(import_zod3.z.string());
|
|
11258
|
+
var htmlRspackPluginOptions = import_zod3.z.strictObject({
|
|
11259
|
+
filename: import_zod3.z.string().or(templateFilenameFunction).optional(),
|
|
11260
|
+
template: import_zod3.z.string().refine(
|
|
11076
11261
|
(val) => !val.includes("!"),
|
|
11077
11262
|
() => ({
|
|
11078
11263
|
message: "HtmlRspackPlugin does not support template path with loader yet"
|
|
11079
11264
|
})
|
|
11080
11265
|
).optional(),
|
|
11081
|
-
templateContent:
|
|
11082
|
-
templateParameters:
|
|
11083
|
-
inject:
|
|
11084
|
-
publicPath:
|
|
11085
|
-
base:
|
|
11086
|
-
|
|
11087
|
-
href:
|
|
11088
|
-
target:
|
|
11266
|
+
templateContent: import_zod3.z.string().or(templateRenderFunction).optional(),
|
|
11267
|
+
templateParameters: import_zod3.z.record(import_zod3.z.string()).or(import_zod3.z.boolean()).or(templateParamFunction).optional(),
|
|
11268
|
+
inject: import_zod3.z.enum(["head", "body"]).or(import_zod3.z.boolean()).optional(),
|
|
11269
|
+
publicPath: import_zod3.z.string().optional(),
|
|
11270
|
+
base: import_zod3.z.string().or(
|
|
11271
|
+
import_zod3.z.strictObject({
|
|
11272
|
+
href: import_zod3.z.string().optional(),
|
|
11273
|
+
target: import_zod3.z.enum(["_self", "_blank", "_parent", "_top"]).optional()
|
|
11089
11274
|
})
|
|
11090
11275
|
).optional(),
|
|
11091
|
-
scriptLoading:
|
|
11092
|
-
chunks:
|
|
11093
|
-
excludeChunks:
|
|
11094
|
-
sri:
|
|
11095
|
-
minify:
|
|
11096
|
-
title:
|
|
11097
|
-
favicon:
|
|
11098
|
-
meta:
|
|
11099
|
-
hash:
|
|
11276
|
+
scriptLoading: import_zod3.z.enum(["blocking", "defer", "module", "systemjs-module"]).optional(),
|
|
11277
|
+
chunks: import_zod3.z.string().array().optional(),
|
|
11278
|
+
excludeChunks: import_zod3.z.string().array().optional(),
|
|
11279
|
+
sri: import_zod3.z.enum(["sha256", "sha384", "sha512"]).optional(),
|
|
11280
|
+
minify: import_zod3.z.boolean().optional(),
|
|
11281
|
+
title: import_zod3.z.string().optional(),
|
|
11282
|
+
favicon: import_zod3.z.string().optional(),
|
|
11283
|
+
meta: import_zod3.z.record(import_zod3.z.string().or(import_zod3.z.record(import_zod3.z.string()))).optional(),
|
|
11284
|
+
hash: import_zod3.z.boolean().optional()
|
|
11100
11285
|
});
|
|
11101
11286
|
var HtmlRspackPluginImpl = create2(
|
|
11102
11287
|
import_binding39.BuiltinPluginName.HtmlRspackPlugin,
|
|
@@ -11349,14 +11534,14 @@ var HttpExternalsRspackPlugin = create2(
|
|
|
11349
11534
|
|
|
11350
11535
|
// src/builtin-plugin/IgnorePlugin.ts
|
|
11351
11536
|
var import_binding41 = require("@rspack/binding");
|
|
11352
|
-
var
|
|
11353
|
-
var IgnorePluginOptions =
|
|
11354
|
-
|
|
11355
|
-
contextRegExp:
|
|
11356
|
-
resourceRegExp:
|
|
11537
|
+
var import_zod4 = require("../compiled/zod/index.js");
|
|
11538
|
+
var IgnorePluginOptions = import_zod4.z.union([
|
|
11539
|
+
import_zod4.z.object({
|
|
11540
|
+
contextRegExp: import_zod4.z.instanceof(RegExp).optional(),
|
|
11541
|
+
resourceRegExp: import_zod4.z.instanceof(RegExp)
|
|
11357
11542
|
}),
|
|
11358
|
-
|
|
11359
|
-
checkResource:
|
|
11543
|
+
import_zod4.z.object({
|
|
11544
|
+
checkResource: import_zod4.z.function(import_zod4.z.tuple([import_zod4.z.string(), import_zod4.z.string()]), import_zod4.z.boolean())
|
|
11360
11545
|
})
|
|
11361
11546
|
]);
|
|
11362
11547
|
var IgnorePlugin = create2(
|
|
@@ -12216,6 +12401,43 @@ var ContextReplacementPlugin = create2(
|
|
|
12216
12401
|
}
|
|
12217
12402
|
);
|
|
12218
12403
|
|
|
12404
|
+
// src/builtin-plugin/LibManifestPlugin.ts
|
|
12405
|
+
var import_binding76 = require("@rspack/binding");
|
|
12406
|
+
var LibManifestPlugin = create2(
|
|
12407
|
+
import_binding76.BuiltinPluginName.LibManifestPlugin,
|
|
12408
|
+
(options) => {
|
|
12409
|
+
const { context: context2, entryOnly, format: format3, name: name2, path: path10, type } = options;
|
|
12410
|
+
return {
|
|
12411
|
+
context: context2,
|
|
12412
|
+
entryOnly,
|
|
12413
|
+
format: format3,
|
|
12414
|
+
name: name2,
|
|
12415
|
+
path: path10,
|
|
12416
|
+
type
|
|
12417
|
+
};
|
|
12418
|
+
}
|
|
12419
|
+
);
|
|
12420
|
+
|
|
12421
|
+
// src/builtin-plugin/DllEntryPlugin.ts
|
|
12422
|
+
var import_binding77 = require("@rspack/binding");
|
|
12423
|
+
var DllEntryPlugin = create2(
|
|
12424
|
+
import_binding77.BuiltinPluginName.DllEntryPlugin,
|
|
12425
|
+
(context2, entries, options) => {
|
|
12426
|
+
return {
|
|
12427
|
+
context: context2,
|
|
12428
|
+
entries,
|
|
12429
|
+
name: options.name
|
|
12430
|
+
};
|
|
12431
|
+
}
|
|
12432
|
+
);
|
|
12433
|
+
|
|
12434
|
+
// src/builtin-plugin/DllReferenceAgencyPlugin.ts
|
|
12435
|
+
var import_binding78 = require("@rspack/binding");
|
|
12436
|
+
var DllReferenceAgencyPlugin = create2(
|
|
12437
|
+
import_binding78.BuiltinPluginName.DllReferenceAgencyPlugin,
|
|
12438
|
+
(options) => options
|
|
12439
|
+
);
|
|
12440
|
+
|
|
12219
12441
|
// src/ContextModuleFactory.ts
|
|
12220
12442
|
var liteTapable5 = __toESM(require("@rspack/lite-tapable"));
|
|
12221
12443
|
var ContextModuleFactory = class {
|
|
@@ -12937,6 +13159,9 @@ var Compiler = class _Compiler {
|
|
|
12937
13159
|
this.watchMode = false;
|
|
12938
13160
|
new JsLoaderRspackPlugin(this).apply(this);
|
|
12939
13161
|
new ExecuteModulePlugin().apply(this);
|
|
13162
|
+
this.hooks.shutdown.tap("rspack:cleanup", () => {
|
|
13163
|
+
this.#instance = void 0;
|
|
13164
|
+
});
|
|
12940
13165
|
}
|
|
12941
13166
|
get recordsInputPath() {
|
|
12942
13167
|
return unsupported("Compiler.recordsInputPath");
|
|
@@ -13371,465 +13596,797 @@ var Compiler = class _Compiler {
|
|
|
13371
13596
|
this.#ruleSet.builtinReferences.entries()
|
|
13372
13597
|
);
|
|
13373
13598
|
const instanceBinding = require("@rspack/binding");
|
|
13599
|
+
const that = new WeakRef(this);
|
|
13374
13600
|
this.#registers = {
|
|
13375
13601
|
registerCompilerThisCompilationTaps: this.#createHookRegisterTaps(
|
|
13376
13602
|
binding2.RegisterJsTapKind.CompilerThisCompilation,
|
|
13377
|
-
|
|
13378
|
-
(
|
|
13379
|
-
|
|
13380
|
-
|
|
13603
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13604
|
+
function() {
|
|
13605
|
+
return that.deref().hooks.thisCompilation;
|
|
13606
|
+
},
|
|
13607
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13608
|
+
function(queried) {
|
|
13609
|
+
return function(native) {
|
|
13610
|
+
that.deref().#createCompilation(native);
|
|
13611
|
+
return queried.call(
|
|
13612
|
+
that.deref().#compilation,
|
|
13613
|
+
that.deref().#compilationParams
|
|
13614
|
+
);
|
|
13615
|
+
};
|
|
13381
13616
|
}
|
|
13382
13617
|
),
|
|
13383
13618
|
registerCompilerCompilationTaps: this.#createHookRegisterTaps(
|
|
13384
13619
|
binding2.RegisterJsTapKind.CompilerCompilation,
|
|
13385
|
-
|
|
13386
|
-
(
|
|
13620
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13621
|
+
function() {
|
|
13622
|
+
return that.deref().hooks.compilation;
|
|
13623
|
+
},
|
|
13624
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13625
|
+
function(queried) {
|
|
13626
|
+
return function() {
|
|
13627
|
+
return queried.call(
|
|
13628
|
+
that.deref().#compilation,
|
|
13629
|
+
that.deref().#compilationParams
|
|
13630
|
+
);
|
|
13631
|
+
};
|
|
13632
|
+
}
|
|
13387
13633
|
),
|
|
13388
13634
|
registerCompilerMakeTaps: this.#createHookRegisterTaps(
|
|
13389
13635
|
binding2.RegisterJsTapKind.CompilerMake,
|
|
13390
|
-
|
|
13391
|
-
(
|
|
13636
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13637
|
+
function() {
|
|
13638
|
+
return that.deref().hooks.make;
|
|
13639
|
+
},
|
|
13640
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13641
|
+
function(queried) {
|
|
13642
|
+
return async function() {
|
|
13643
|
+
return await queried.promise(that.deref().#compilation);
|
|
13644
|
+
};
|
|
13645
|
+
}
|
|
13392
13646
|
),
|
|
13393
13647
|
registerCompilerFinishMakeTaps: this.#createHookRegisterTaps(
|
|
13394
13648
|
binding2.RegisterJsTapKind.CompilerFinishMake,
|
|
13395
|
-
|
|
13396
|
-
(
|
|
13649
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13650
|
+
function() {
|
|
13651
|
+
return that.deref().hooks.finishMake;
|
|
13652
|
+
},
|
|
13653
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13654
|
+
function(queried) {
|
|
13655
|
+
return async function() {
|
|
13656
|
+
return await queried.promise(that.deref().#compilation);
|
|
13657
|
+
};
|
|
13658
|
+
}
|
|
13397
13659
|
),
|
|
13398
13660
|
registerCompilerShouldEmitTaps: this.#createHookRegisterTaps(
|
|
13399
13661
|
binding2.RegisterJsTapKind.CompilerShouldEmit,
|
|
13400
|
-
|
|
13401
|
-
(
|
|
13662
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13663
|
+
function() {
|
|
13664
|
+
return that.deref().hooks.shouldEmit;
|
|
13665
|
+
},
|
|
13666
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13667
|
+
function(queried) {
|
|
13668
|
+
return function() {
|
|
13669
|
+
return queried.call(that.deref().#compilation);
|
|
13670
|
+
};
|
|
13671
|
+
}
|
|
13402
13672
|
),
|
|
13403
13673
|
registerCompilerEmitTaps: this.#createHookRegisterTaps(
|
|
13404
13674
|
binding2.RegisterJsTapKind.CompilerEmit,
|
|
13405
|
-
|
|
13406
|
-
(
|
|
13675
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13676
|
+
function() {
|
|
13677
|
+
return that.deref().hooks.emit;
|
|
13678
|
+
},
|
|
13679
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13680
|
+
function(queried) {
|
|
13681
|
+
return async function() {
|
|
13682
|
+
return await queried.promise(that.deref().#compilation);
|
|
13683
|
+
};
|
|
13684
|
+
}
|
|
13407
13685
|
),
|
|
13408
13686
|
registerCompilerAfterEmitTaps: this.#createHookRegisterTaps(
|
|
13409
13687
|
binding2.RegisterJsTapKind.CompilerAfterEmit,
|
|
13410
|
-
|
|
13411
|
-
(
|
|
13688
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13689
|
+
function() {
|
|
13690
|
+
return that.deref().hooks.afterEmit;
|
|
13691
|
+
},
|
|
13692
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13693
|
+
function(queried) {
|
|
13694
|
+
return async function() {
|
|
13695
|
+
return await queried.promise(that.deref().#compilation);
|
|
13696
|
+
};
|
|
13697
|
+
}
|
|
13412
13698
|
),
|
|
13413
13699
|
registerCompilerAssetEmittedTaps: this.#createHookRegisterTaps(
|
|
13414
13700
|
binding2.RegisterJsTapKind.CompilerAssetEmitted,
|
|
13415
|
-
|
|
13416
|
-
(
|
|
13417
|
-
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
13421
|
-
return
|
|
13422
|
-
|
|
13701
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13702
|
+
function() {
|
|
13703
|
+
return that.deref().hooks.assetEmitted;
|
|
13704
|
+
},
|
|
13705
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13706
|
+
function(queried) {
|
|
13707
|
+
return async function({
|
|
13708
|
+
filename: filename2,
|
|
13423
13709
|
targetPath,
|
|
13424
|
-
outputPath
|
|
13425
|
-
|
|
13426
|
-
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13430
|
-
|
|
13431
|
-
|
|
13432
|
-
|
|
13433
|
-
|
|
13710
|
+
outputPath
|
|
13711
|
+
}) {
|
|
13712
|
+
return queried.promise(filename2, {
|
|
13713
|
+
compilation: that.deref().#compilation,
|
|
13714
|
+
targetPath,
|
|
13715
|
+
outputPath,
|
|
13716
|
+
get source() {
|
|
13717
|
+
var _a;
|
|
13718
|
+
return (_a = that.deref().#compilation.getAsset(filename2)) == null ? void 0 : _a.source;
|
|
13719
|
+
},
|
|
13720
|
+
get content() {
|
|
13721
|
+
var _a;
|
|
13722
|
+
return (_a = this.source) == null ? void 0 : _a.buffer();
|
|
13723
|
+
}
|
|
13724
|
+
});
|
|
13725
|
+
};
|
|
13434
13726
|
}
|
|
13435
13727
|
),
|
|
13436
13728
|
registerCompilationAdditionalTreeRuntimeRequirements: this.#createHookRegisterTaps(
|
|
13437
13729
|
binding2.RegisterJsTapKind.CompilationAdditionalTreeRuntimeRequirements,
|
|
13438
|
-
|
|
13439
|
-
(
|
|
13440
|
-
|
|
13441
|
-
|
|
13442
|
-
|
|
13443
|
-
|
|
13444
|
-
|
|
13445
|
-
|
|
13446
|
-
|
|
13447
|
-
)
|
|
13448
|
-
|
|
13449
|
-
|
|
13730
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13731
|
+
function() {
|
|
13732
|
+
return that.deref().#compilation.hooks.additionalTreeRuntimeRequirements;
|
|
13733
|
+
},
|
|
13734
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13735
|
+
function(queried) {
|
|
13736
|
+
return function({
|
|
13737
|
+
chunk,
|
|
13738
|
+
runtimeRequirements
|
|
13739
|
+
}) {
|
|
13740
|
+
const set = __from_binding_runtime_globals(runtimeRequirements);
|
|
13741
|
+
queried.call(
|
|
13742
|
+
Chunk.__from_binding(chunk, that.deref().#compilation),
|
|
13743
|
+
set
|
|
13744
|
+
);
|
|
13745
|
+
return {
|
|
13746
|
+
runtimeRequirements: __to_binding_runtime_globals(set)
|
|
13747
|
+
};
|
|
13450
13748
|
};
|
|
13451
13749
|
}
|
|
13452
13750
|
),
|
|
13453
13751
|
registerCompilationRuntimeRequirementInTree: this.#createHookMapRegisterTaps(
|
|
13454
13752
|
binding2.RegisterJsTapKind.CompilationRuntimeRequirementInTree,
|
|
13455
|
-
|
|
13456
|
-
(
|
|
13457
|
-
|
|
13458
|
-
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13462
|
-
|
|
13463
|
-
|
|
13464
|
-
}
|
|
13465
|
-
|
|
13466
|
-
|
|
13753
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13754
|
+
function() {
|
|
13755
|
+
return that.deref().#compilation.hooks.runtimeRequirementInTree;
|
|
13756
|
+
},
|
|
13757
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13758
|
+
function(queried) {
|
|
13759
|
+
return function({
|
|
13760
|
+
chunk: rawChunk,
|
|
13761
|
+
runtimeRequirements
|
|
13762
|
+
}) {
|
|
13763
|
+
const set = __from_binding_runtime_globals(runtimeRequirements);
|
|
13764
|
+
const chunk = Chunk.__from_binding(
|
|
13765
|
+
rawChunk,
|
|
13766
|
+
that.deref().#compilation
|
|
13767
|
+
);
|
|
13768
|
+
for (const r of set) {
|
|
13769
|
+
queried.for(r).call(chunk, set);
|
|
13770
|
+
}
|
|
13771
|
+
return {
|
|
13772
|
+
runtimeRequirements: __to_binding_runtime_globals(set)
|
|
13773
|
+
};
|
|
13467
13774
|
};
|
|
13468
13775
|
}
|
|
13469
13776
|
),
|
|
13470
13777
|
registerCompilationRuntimeModuleTaps: this.#createHookRegisterTaps(
|
|
13471
13778
|
binding2.RegisterJsTapKind.CompilationRuntimeModule,
|
|
13472
|
-
|
|
13473
|
-
(
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13779
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13780
|
+
function() {
|
|
13781
|
+
return that.deref().#compilation.hooks.runtimeModule;
|
|
13782
|
+
},
|
|
13783
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13784
|
+
function(queried) {
|
|
13785
|
+
return function({ module: module2, chunk }) {
|
|
13786
|
+
var _a, _b;
|
|
13787
|
+
const originSource = (_a = module2.source) == null ? void 0 : _a.source;
|
|
13788
|
+
queried.call(
|
|
13789
|
+
module2,
|
|
13790
|
+
Chunk.__from_binding(chunk, that.deref().#compilation)
|
|
13791
|
+
);
|
|
13792
|
+
const newSource = (_b = module2.source) == null ? void 0 : _b.source;
|
|
13793
|
+
if (newSource && newSource !== originSource) {
|
|
13794
|
+
return module2;
|
|
13795
|
+
}
|
|
13796
|
+
return;
|
|
13797
|
+
};
|
|
13485
13798
|
}
|
|
13486
13799
|
),
|
|
13487
13800
|
registerCompilationBuildModuleTaps: this.#createHookRegisterTaps(
|
|
13488
13801
|
binding2.RegisterJsTapKind.CompilationBuildModule,
|
|
13489
|
-
|
|
13490
|
-
(
|
|
13802
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13803
|
+
function() {
|
|
13804
|
+
return that.deref().#compilation.hooks.buildModule;
|
|
13805
|
+
},
|
|
13806
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13807
|
+
function(queried) {
|
|
13808
|
+
return function(m) {
|
|
13809
|
+
return queried.call(
|
|
13810
|
+
Module.__from_binding(m, that.deref().#compilation)
|
|
13811
|
+
);
|
|
13812
|
+
};
|
|
13813
|
+
}
|
|
13491
13814
|
),
|
|
13492
13815
|
registerCompilationStillValidModuleTaps: this.#createHookRegisterTaps(
|
|
13493
13816
|
binding2.RegisterJsTapKind.CompilationStillValidModule,
|
|
13494
|
-
|
|
13495
|
-
(
|
|
13817
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13818
|
+
function() {
|
|
13819
|
+
return that.deref().#compilation.hooks.stillValidModule;
|
|
13820
|
+
},
|
|
13821
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13822
|
+
function(queried) {
|
|
13823
|
+
return function(m) {
|
|
13824
|
+
return queried.call(
|
|
13825
|
+
Module.__from_binding(m, that.deref().#compilation)
|
|
13826
|
+
);
|
|
13827
|
+
};
|
|
13828
|
+
}
|
|
13496
13829
|
),
|
|
13497
13830
|
registerCompilationSucceedModuleTaps: this.#createHookRegisterTaps(
|
|
13498
13831
|
binding2.RegisterJsTapKind.CompilationSucceedModule,
|
|
13499
|
-
|
|
13500
|
-
(
|
|
13832
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13833
|
+
function() {
|
|
13834
|
+
return that.deref().#compilation.hooks.succeedModule;
|
|
13835
|
+
},
|
|
13836
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13837
|
+
function(queried) {
|
|
13838
|
+
return function(m) {
|
|
13839
|
+
return queried.call(
|
|
13840
|
+
Module.__from_binding(m, that.deref().#compilation)
|
|
13841
|
+
);
|
|
13842
|
+
};
|
|
13843
|
+
}
|
|
13501
13844
|
),
|
|
13502
13845
|
registerCompilationExecuteModuleTaps: this.#createHookRegisterTaps(
|
|
13503
13846
|
binding2.RegisterJsTapKind.CompilationExecuteModule,
|
|
13504
|
-
|
|
13505
|
-
(
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13512
|
-
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13847
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13848
|
+
function() {
|
|
13849
|
+
return that.deref().#compilation.hooks.executeModule;
|
|
13850
|
+
},
|
|
13851
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13852
|
+
function(queried) {
|
|
13853
|
+
return function({
|
|
13854
|
+
entry: entry2,
|
|
13855
|
+
id,
|
|
13856
|
+
codegenResults,
|
|
13857
|
+
runtimeModules
|
|
13858
|
+
}) {
|
|
13859
|
+
const __webpack_require__ = (id2) => {
|
|
13860
|
+
const cached = moduleCache[id2];
|
|
13861
|
+
if (cached !== void 0) {
|
|
13862
|
+
if (cached.error) throw cached.error;
|
|
13863
|
+
return cached.exports;
|
|
13864
|
+
}
|
|
13865
|
+
const execOptions = {
|
|
13520
13866
|
id: id2,
|
|
13521
|
-
|
|
13522
|
-
|
|
13523
|
-
|
|
13524
|
-
|
|
13525
|
-
|
|
13867
|
+
module: {
|
|
13868
|
+
id: id2,
|
|
13869
|
+
exports: {},
|
|
13870
|
+
loaded: false,
|
|
13871
|
+
error: void 0
|
|
13872
|
+
},
|
|
13873
|
+
require: __webpack_require__
|
|
13874
|
+
};
|
|
13875
|
+
for (const handler of interceptModuleExecution) {
|
|
13876
|
+
handler(execOptions);
|
|
13877
|
+
}
|
|
13878
|
+
const result2 = codegenResults.map[id2]["build time"];
|
|
13879
|
+
const moduleObject = execOptions.module;
|
|
13880
|
+
if (id2) moduleCache[id2] = moduleObject;
|
|
13881
|
+
tryRunOrWebpackError(
|
|
13882
|
+
() => queried.call(
|
|
13883
|
+
{
|
|
13884
|
+
codeGenerationResult: new CodeGenerationResult(result2),
|
|
13885
|
+
moduleObject
|
|
13886
|
+
},
|
|
13887
|
+
{ __webpack_require__ }
|
|
13888
|
+
),
|
|
13889
|
+
"Compilation.hooks.executeModule"
|
|
13890
|
+
);
|
|
13891
|
+
moduleObject.loaded = true;
|
|
13892
|
+
return moduleObject.exports;
|
|
13526
13893
|
};
|
|
13527
|
-
|
|
13528
|
-
|
|
13894
|
+
const moduleCache = __webpack_require__[RuntimeGlobals.moduleCache.replace(
|
|
13895
|
+
`${RuntimeGlobals.require}.`,
|
|
13896
|
+
""
|
|
13897
|
+
)] = {};
|
|
13898
|
+
const interceptModuleExecution = __webpack_require__[RuntimeGlobals.interceptModuleExecution.replace(
|
|
13899
|
+
`${RuntimeGlobals.require}.`,
|
|
13900
|
+
""
|
|
13901
|
+
)] = [];
|
|
13902
|
+
for (const runtimeModule of runtimeModules) {
|
|
13903
|
+
__webpack_require__(runtimeModule);
|
|
13529
13904
|
}
|
|
13530
|
-
const
|
|
13531
|
-
|
|
13532
|
-
if (id2) moduleCache[id2] = moduleObject;
|
|
13533
|
-
tryRunOrWebpackError(
|
|
13534
|
-
() => queried.call(
|
|
13535
|
-
{
|
|
13536
|
-
codeGenerationResult: new CodeGenerationResult(result2),
|
|
13537
|
-
moduleObject
|
|
13538
|
-
},
|
|
13539
|
-
{ __webpack_require__ }
|
|
13540
|
-
),
|
|
13541
|
-
"Compilation.hooks.executeModule"
|
|
13542
|
-
);
|
|
13543
|
-
moduleObject.loaded = true;
|
|
13544
|
-
return moduleObject.exports;
|
|
13905
|
+
const executeResult = __webpack_require__(entry2);
|
|
13906
|
+
that.deref().#moduleExecutionResultsMap.set(id, executeResult);
|
|
13545
13907
|
};
|
|
13546
|
-
const moduleCache = __webpack_require__[RuntimeGlobals.moduleCache.replace(
|
|
13547
|
-
`${RuntimeGlobals.require}.`,
|
|
13548
|
-
""
|
|
13549
|
-
)] = {};
|
|
13550
|
-
const interceptModuleExecution = __webpack_require__[RuntimeGlobals.interceptModuleExecution.replace(
|
|
13551
|
-
`${RuntimeGlobals.require}.`,
|
|
13552
|
-
""
|
|
13553
|
-
)] = [];
|
|
13554
|
-
for (const runtimeModule of runtimeModules) {
|
|
13555
|
-
__webpack_require__(runtimeModule);
|
|
13556
|
-
}
|
|
13557
|
-
const executeResult = __webpack_require__(entry2);
|
|
13558
|
-
this.#moduleExecutionResultsMap.set(id, executeResult);
|
|
13559
13908
|
}
|
|
13560
13909
|
),
|
|
13561
13910
|
registerCompilationFinishModulesTaps: this.#createHookRegisterTaps(
|
|
13562
13911
|
binding2.RegisterJsTapKind.CompilationFinishModules,
|
|
13563
|
-
|
|
13564
|
-
(
|
|
13912
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13913
|
+
function() {
|
|
13914
|
+
return that.deref().#compilation.hooks.finishModules;
|
|
13915
|
+
},
|
|
13916
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13917
|
+
function(queried) {
|
|
13918
|
+
return async function() {
|
|
13919
|
+
return await queried.promise(that.deref().#compilation.modules);
|
|
13920
|
+
};
|
|
13921
|
+
}
|
|
13565
13922
|
),
|
|
13566
13923
|
registerCompilationOptimizeModulesTaps: this.#createHookRegisterTaps(
|
|
13567
13924
|
binding2.RegisterJsTapKind.CompilationOptimizeModules,
|
|
13568
|
-
|
|
13569
|
-
(
|
|
13925
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13926
|
+
function() {
|
|
13927
|
+
return that.deref().#compilation.hooks.optimizeModules;
|
|
13928
|
+
},
|
|
13929
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13930
|
+
function(queried) {
|
|
13931
|
+
return function() {
|
|
13932
|
+
return queried.call(that.deref().#compilation.modules.values());
|
|
13933
|
+
};
|
|
13934
|
+
}
|
|
13570
13935
|
),
|
|
13571
13936
|
registerCompilationAfterOptimizeModulesTaps: this.#createHookRegisterTaps(
|
|
13572
13937
|
binding2.RegisterJsTapKind.CompilationAfterOptimizeModules,
|
|
13573
|
-
|
|
13574
|
-
(
|
|
13575
|
-
|
|
13938
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13939
|
+
function() {
|
|
13940
|
+
return that.deref().#compilation.hooks.afterOptimizeModules;
|
|
13941
|
+
},
|
|
13942
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13943
|
+
function(queried) {
|
|
13944
|
+
return function() {
|
|
13945
|
+
queried.call(that.deref().#compilation.modules.values());
|
|
13946
|
+
};
|
|
13576
13947
|
}
|
|
13577
13948
|
),
|
|
13578
13949
|
registerCompilationOptimizeTreeTaps: this.#createHookRegisterTaps(
|
|
13579
13950
|
binding2.RegisterJsTapKind.CompilationOptimizeTree,
|
|
13580
|
-
|
|
13581
|
-
(
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13951
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13952
|
+
function() {
|
|
13953
|
+
return that.deref().#compilation.hooks.optimizeTree;
|
|
13954
|
+
},
|
|
13955
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13956
|
+
function(queried) {
|
|
13957
|
+
return async function() {
|
|
13958
|
+
return await queried.promise(
|
|
13959
|
+
that.deref().#compilation.chunks,
|
|
13960
|
+
that.deref().#compilation.modules
|
|
13961
|
+
);
|
|
13962
|
+
};
|
|
13963
|
+
}
|
|
13585
13964
|
),
|
|
13586
13965
|
registerCompilationOptimizeChunkModulesTaps: this.#createHookRegisterTaps(
|
|
13587
13966
|
binding2.RegisterJsTapKind.CompilationOptimizeChunkModules,
|
|
13588
|
-
|
|
13589
|
-
(
|
|
13590
|
-
|
|
13591
|
-
|
|
13592
|
-
|
|
13967
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13968
|
+
function() {
|
|
13969
|
+
return that.deref().#compilation.hooks.optimizeChunkModules;
|
|
13970
|
+
},
|
|
13971
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13972
|
+
function(queried) {
|
|
13973
|
+
return async function() {
|
|
13974
|
+
return await queried.promise(
|
|
13975
|
+
that.deref().#compilation.chunks,
|
|
13976
|
+
that.deref().#compilation.modules
|
|
13977
|
+
);
|
|
13978
|
+
};
|
|
13979
|
+
}
|
|
13593
13980
|
),
|
|
13594
13981
|
registerCompilationChunkHashTaps: this.#createHookRegisterTaps(
|
|
13595
13982
|
binding2.RegisterJsTapKind.CompilationChunkHash,
|
|
13596
|
-
|
|
13597
|
-
(
|
|
13598
|
-
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
|
|
13983
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13984
|
+
function() {
|
|
13985
|
+
return that.deref().#compilation.hooks.chunkHash;
|
|
13986
|
+
},
|
|
13987
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
13988
|
+
function(queried) {
|
|
13989
|
+
return function(chunk) {
|
|
13990
|
+
if (!that.deref().options.output.hashFunction) {
|
|
13991
|
+
throw new Error("'output.hashFunction' cannot be undefined");
|
|
13992
|
+
}
|
|
13993
|
+
const hash = createHash(that.deref().options.output.hashFunction);
|
|
13994
|
+
queried.call(
|
|
13995
|
+
Chunk.__from_binding(chunk, that.deref().#compilation),
|
|
13996
|
+
hash
|
|
13997
|
+
);
|
|
13998
|
+
const digestResult = hash.digest(
|
|
13999
|
+
that.deref().options.output.hashDigest
|
|
14000
|
+
);
|
|
14001
|
+
return Buffer.from(digestResult);
|
|
14002
|
+
};
|
|
13605
14003
|
}
|
|
13606
14004
|
),
|
|
13607
14005
|
registerCompilationChunkAssetTaps: this.#createHookRegisterTaps(
|
|
13608
14006
|
binding2.RegisterJsTapKind.CompilationChunkAsset,
|
|
13609
|
-
|
|
13610
|
-
(
|
|
13611
|
-
|
|
13612
|
-
|
|
13613
|
-
|
|
14007
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14008
|
+
function() {
|
|
14009
|
+
return that.deref().#compilation.hooks.chunkAsset;
|
|
14010
|
+
},
|
|
14011
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14012
|
+
function(queried) {
|
|
14013
|
+
return function({ chunk, filename: filename2 }) {
|
|
14014
|
+
return queried.call(
|
|
14015
|
+
Chunk.__from_binding(chunk, that.deref().#compilation),
|
|
14016
|
+
filename2
|
|
14017
|
+
);
|
|
14018
|
+
};
|
|
14019
|
+
}
|
|
13614
14020
|
),
|
|
13615
14021
|
registerCompilationProcessAssetsTaps: this.#createHookRegisterTaps(
|
|
13616
14022
|
binding2.RegisterJsTapKind.CompilationProcessAssets,
|
|
13617
|
-
|
|
13618
|
-
(
|
|
14023
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14024
|
+
function() {
|
|
14025
|
+
return that.deref().#compilation.hooks.processAssets;
|
|
14026
|
+
},
|
|
14027
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14028
|
+
function(queried) {
|
|
14029
|
+
return async function() {
|
|
14030
|
+
return await queried.promise(that.deref().#compilation.assets);
|
|
14031
|
+
};
|
|
14032
|
+
}
|
|
13619
14033
|
),
|
|
13620
14034
|
registerCompilationAfterProcessAssetsTaps: this.#createHookRegisterTaps(
|
|
13621
14035
|
binding2.RegisterJsTapKind.CompilationAfterProcessAssets,
|
|
13622
|
-
|
|
13623
|
-
(
|
|
14036
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14037
|
+
function() {
|
|
14038
|
+
return that.deref().#compilation.hooks.afterProcessAssets;
|
|
14039
|
+
},
|
|
14040
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14041
|
+
function(queried) {
|
|
14042
|
+
return function() {
|
|
14043
|
+
return queried.call(that.deref().#compilation.assets);
|
|
14044
|
+
};
|
|
14045
|
+
}
|
|
13624
14046
|
),
|
|
13625
14047
|
registerCompilationSealTaps: this.#createHookRegisterTaps(
|
|
13626
14048
|
binding2.RegisterJsTapKind.CompilationSeal,
|
|
13627
|
-
|
|
13628
|
-
(
|
|
14049
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14050
|
+
function() {
|
|
14051
|
+
return that.deref().#compilation.hooks.seal;
|
|
14052
|
+
},
|
|
14053
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14054
|
+
function(queried) {
|
|
14055
|
+
return function() {
|
|
14056
|
+
return queried.call();
|
|
14057
|
+
};
|
|
14058
|
+
}
|
|
13629
14059
|
),
|
|
13630
14060
|
registerCompilationAfterSealTaps: this.#createHookRegisterTaps(
|
|
13631
14061
|
binding2.RegisterJsTapKind.CompilationAfterSeal,
|
|
13632
|
-
|
|
13633
|
-
(
|
|
14062
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14063
|
+
function() {
|
|
14064
|
+
return that.deref().#compilation.hooks.afterSeal;
|
|
14065
|
+
},
|
|
14066
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14067
|
+
function(queried) {
|
|
14068
|
+
return async function() {
|
|
14069
|
+
return await queried.promise();
|
|
14070
|
+
};
|
|
14071
|
+
}
|
|
13634
14072
|
),
|
|
13635
14073
|
registerNormalModuleFactoryBeforeResolveTaps: this.#createHookRegisterTaps(
|
|
13636
14074
|
binding2.RegisterJsTapKind.NormalModuleFactoryBeforeResolve,
|
|
13637
|
-
|
|
13638
|
-
(
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
14075
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14076
|
+
function() {
|
|
14077
|
+
return that.deref().#compilationParams.normalModuleFactory.hooks.beforeResolve;
|
|
14078
|
+
},
|
|
14079
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14080
|
+
function(queried) {
|
|
14081
|
+
return async function(resolveData) {
|
|
14082
|
+
const normalizedResolveData = {
|
|
14083
|
+
contextInfo: {
|
|
14084
|
+
issuer: resolveData.issuer
|
|
14085
|
+
},
|
|
14086
|
+
request: resolveData.request,
|
|
14087
|
+
context: resolveData.context,
|
|
14088
|
+
fileDependencies: [],
|
|
14089
|
+
missingDependencies: [],
|
|
14090
|
+
contextDependencies: []
|
|
14091
|
+
};
|
|
14092
|
+
const ret = await queried.promise(normalizedResolveData);
|
|
14093
|
+
resolveData.request = normalizedResolveData.request;
|
|
14094
|
+
resolveData.context = normalizedResolveData.context;
|
|
14095
|
+
return [ret, resolveData];
|
|
13648
14096
|
};
|
|
13649
|
-
const ret = await queried.promise(normalizedResolveData);
|
|
13650
|
-
resolveData.request = normalizedResolveData.request;
|
|
13651
|
-
resolveData.context = normalizedResolveData.context;
|
|
13652
|
-
return [ret, resolveData];
|
|
13653
14097
|
}
|
|
13654
14098
|
),
|
|
13655
14099
|
registerNormalModuleFactoryFactorizeTaps: this.#createHookRegisterTaps(
|
|
13656
14100
|
binding2.RegisterJsTapKind.NormalModuleFactoryFactorize,
|
|
13657
|
-
|
|
13658
|
-
(
|
|
13659
|
-
|
|
13660
|
-
|
|
13661
|
-
|
|
13662
|
-
|
|
13663
|
-
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
14101
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14102
|
+
function() {
|
|
14103
|
+
return that.deref().#compilationParams.normalModuleFactory.hooks.factorize;
|
|
14104
|
+
},
|
|
14105
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14106
|
+
function(queried) {
|
|
14107
|
+
return async function(resolveData) {
|
|
14108
|
+
const normalizedResolveData = {
|
|
14109
|
+
contextInfo: {
|
|
14110
|
+
issuer: resolveData.issuer
|
|
14111
|
+
},
|
|
14112
|
+
request: resolveData.request,
|
|
14113
|
+
context: resolveData.context,
|
|
14114
|
+
fileDependencies: [],
|
|
14115
|
+
missingDependencies: [],
|
|
14116
|
+
contextDependencies: []
|
|
14117
|
+
};
|
|
14118
|
+
await queried.promise(normalizedResolveData);
|
|
14119
|
+
resolveData.request = normalizedResolveData.request;
|
|
14120
|
+
resolveData.context = normalizedResolveData.context;
|
|
14121
|
+
return resolveData;
|
|
13668
14122
|
};
|
|
13669
|
-
await queried.promise(normalizedResolveData);
|
|
13670
|
-
resolveData.request = normalizedResolveData.request;
|
|
13671
|
-
resolveData.context = normalizedResolveData.context;
|
|
13672
|
-
return resolveData;
|
|
13673
14123
|
}
|
|
13674
14124
|
),
|
|
13675
14125
|
registerNormalModuleFactoryResolveTaps: this.#createHookRegisterTaps(
|
|
13676
14126
|
binding2.RegisterJsTapKind.NormalModuleFactoryResolve,
|
|
13677
|
-
|
|
13678
|
-
(
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
|
|
13686
|
-
|
|
13687
|
-
|
|
14127
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14128
|
+
function() {
|
|
14129
|
+
return that.deref().#compilationParams.normalModuleFactory.hooks.resolve;
|
|
14130
|
+
},
|
|
14131
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14132
|
+
function(queried) {
|
|
14133
|
+
return async function(resolveData) {
|
|
14134
|
+
const normalizedResolveData = {
|
|
14135
|
+
contextInfo: {
|
|
14136
|
+
issuer: resolveData.issuer
|
|
14137
|
+
},
|
|
14138
|
+
request: resolveData.request,
|
|
14139
|
+
context: resolveData.context,
|
|
14140
|
+
fileDependencies: [],
|
|
14141
|
+
missingDependencies: [],
|
|
14142
|
+
contextDependencies: []
|
|
14143
|
+
};
|
|
14144
|
+
await queried.promise(normalizedResolveData);
|
|
14145
|
+
resolveData.request = normalizedResolveData.request;
|
|
14146
|
+
resolveData.context = normalizedResolveData.context;
|
|
14147
|
+
return resolveData;
|
|
13688
14148
|
};
|
|
13689
|
-
await queried.promise(normalizedResolveData);
|
|
13690
|
-
resolveData.request = normalizedResolveData.request;
|
|
13691
|
-
resolveData.context = normalizedResolveData.context;
|
|
13692
|
-
return resolveData;
|
|
13693
14149
|
}
|
|
13694
14150
|
),
|
|
13695
14151
|
registerNormalModuleFactoryResolveForSchemeTaps: this.#createHookMapRegisterTaps(
|
|
13696
14152
|
binding2.RegisterJsTapKind.NormalModuleFactoryResolveForScheme,
|
|
13697
|
-
|
|
13698
|
-
(
|
|
13699
|
-
|
|
13700
|
-
|
|
14153
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14154
|
+
function() {
|
|
14155
|
+
return that.deref().#compilationParams.normalModuleFactory.hooks.resolveForScheme;
|
|
14156
|
+
},
|
|
14157
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14158
|
+
function(queried) {
|
|
14159
|
+
return async function(args) {
|
|
14160
|
+
const ret = await queried.for(args.scheme).promise(args.resourceData);
|
|
14161
|
+
return [ret, args.resourceData];
|
|
14162
|
+
};
|
|
13701
14163
|
}
|
|
13702
14164
|
),
|
|
13703
14165
|
registerNormalModuleFactoryAfterResolveTaps: this.#createHookRegisterTaps(
|
|
13704
14166
|
binding2.RegisterJsTapKind.NormalModuleFactoryAfterResolve,
|
|
13705
|
-
|
|
13706
|
-
(
|
|
13707
|
-
|
|
13708
|
-
|
|
13709
|
-
|
|
13710
|
-
|
|
13711
|
-
|
|
13712
|
-
|
|
13713
|
-
|
|
13714
|
-
|
|
13715
|
-
|
|
13716
|
-
|
|
14167
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14168
|
+
function() {
|
|
14169
|
+
return that.deref().#compilationParams.normalModuleFactory.hooks.afterResolve;
|
|
14170
|
+
},
|
|
14171
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14172
|
+
function(queried) {
|
|
14173
|
+
return async function(arg) {
|
|
14174
|
+
const data = {
|
|
14175
|
+
contextInfo: {
|
|
14176
|
+
issuer: arg.issuer
|
|
14177
|
+
},
|
|
14178
|
+
request: arg.request,
|
|
14179
|
+
context: arg.context,
|
|
14180
|
+
fileDependencies: arg.fileDependencies,
|
|
14181
|
+
missingDependencies: arg.missingDependencies,
|
|
14182
|
+
contextDependencies: arg.contextDependencies,
|
|
14183
|
+
createData: arg.createData
|
|
14184
|
+
};
|
|
14185
|
+
const ret = await queried.promise(data);
|
|
14186
|
+
return [ret, data.createData];
|
|
13717
14187
|
};
|
|
13718
|
-
const ret = await queried.promise(data);
|
|
13719
|
-
return [ret, data.createData];
|
|
13720
14188
|
}
|
|
13721
14189
|
),
|
|
13722
14190
|
registerNormalModuleFactoryCreateModuleTaps: this.#createHookRegisterTaps(
|
|
13723
14191
|
binding2.RegisterJsTapKind.NormalModuleFactoryCreateModule,
|
|
13724
|
-
|
|
13725
|
-
(
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
|
|
14192
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14193
|
+
function() {
|
|
14194
|
+
return that.deref().#compilationParams.normalModuleFactory.hooks.createModule;
|
|
14195
|
+
},
|
|
14196
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14197
|
+
function(queried) {
|
|
14198
|
+
return async function(args) {
|
|
14199
|
+
const data = {
|
|
14200
|
+
...args,
|
|
14201
|
+
settings: {}
|
|
14202
|
+
};
|
|
14203
|
+
await queried.promise(data, {});
|
|
13729
14204
|
};
|
|
13730
|
-
await queried.promise(data, {});
|
|
13731
14205
|
}
|
|
13732
14206
|
),
|
|
13733
14207
|
registerContextModuleFactoryBeforeResolveTaps: this.#createHookRegisterTaps(
|
|
13734
14208
|
binding2.RegisterJsTapKind.ContextModuleFactoryBeforeResolve,
|
|
13735
|
-
|
|
13736
|
-
(
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
return
|
|
14209
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14210
|
+
function() {
|
|
14211
|
+
return that.deref().#compilationParams.contextModuleFactory.hooks.beforeResolve;
|
|
14212
|
+
},
|
|
14213
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14214
|
+
function(queried) {
|
|
14215
|
+
return async function(bindingData) {
|
|
14216
|
+
const data = bindingData ? ContextModuleFactoryBeforeResolveData.__from_binding(
|
|
14217
|
+
bindingData
|
|
14218
|
+
) : false;
|
|
14219
|
+
const result2 = await queried.promise(data);
|
|
14220
|
+
return result2 ? ContextModuleFactoryBeforeResolveData.__to_binding(result2) : false;
|
|
14221
|
+
};
|
|
13742
14222
|
}
|
|
13743
14223
|
),
|
|
13744
14224
|
registerContextModuleFactoryAfterResolveTaps: this.#createHookRegisterTaps(
|
|
13745
14225
|
binding2.RegisterJsTapKind.ContextModuleFactoryAfterResolve,
|
|
13746
|
-
|
|
13747
|
-
(
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
return
|
|
14226
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14227
|
+
function() {
|
|
14228
|
+
return that.deref().#compilationParams.contextModuleFactory.hooks.afterResolve;
|
|
14229
|
+
},
|
|
14230
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14231
|
+
function(queried) {
|
|
14232
|
+
return async function(bindingData) {
|
|
14233
|
+
const data = bindingData ? ContextModuleFactoryAfterResolveData.__from_binding(
|
|
14234
|
+
bindingData
|
|
14235
|
+
) : false;
|
|
14236
|
+
const result2 = await queried.promise(data);
|
|
14237
|
+
return result2 ? ContextModuleFactoryAfterResolveData.__to_binding(result2) : false;
|
|
14238
|
+
};
|
|
13753
14239
|
}
|
|
13754
14240
|
),
|
|
13755
14241
|
registerJavascriptModulesChunkHashTaps: this.#createHookRegisterTaps(
|
|
13756
14242
|
binding2.RegisterJsTapKind.JavascriptModulesChunkHash,
|
|
13757
|
-
|
|
13758
|
-
(
|
|
13759
|
-
|
|
13760
|
-
|
|
13761
|
-
|
|
13762
|
-
|
|
13763
|
-
|
|
13764
|
-
|
|
13765
|
-
return
|
|
14243
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14244
|
+
function() {
|
|
14245
|
+
return JavascriptModulesPlugin.getCompilationHooks(
|
|
14246
|
+
that.deref().#compilation
|
|
14247
|
+
).chunkHash;
|
|
14248
|
+
},
|
|
14249
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14250
|
+
function(queried) {
|
|
14251
|
+
return function(chunk) {
|
|
14252
|
+
if (!that.deref().options.output.hashFunction) {
|
|
14253
|
+
throw new Error("'output.hashFunction' cannot be undefined");
|
|
14254
|
+
}
|
|
14255
|
+
const hash = createHash(that.deref().options.output.hashFunction);
|
|
14256
|
+
queried.call(
|
|
14257
|
+
Chunk.__from_binding(chunk, that.deref().#compilation),
|
|
14258
|
+
hash
|
|
14259
|
+
);
|
|
14260
|
+
const digestResult = hash.digest(
|
|
14261
|
+
that.deref().options.output.hashDigest
|
|
14262
|
+
);
|
|
14263
|
+
return Buffer.from(digestResult);
|
|
14264
|
+
};
|
|
13766
14265
|
}
|
|
13767
14266
|
),
|
|
13768
14267
|
registerHtmlPluginBeforeAssetTagGenerationTaps: this.#createHookRegisterTaps(
|
|
13769
14268
|
binding2.RegisterJsTapKind.HtmlPluginBeforeAssetTagGeneration,
|
|
13770
|
-
|
|
13771
|
-
(
|
|
13772
|
-
return
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
|
|
13776
|
-
|
|
13777
|
-
|
|
14269
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14270
|
+
function() {
|
|
14271
|
+
return HtmlRspackPlugin.getCompilationHooks(
|
|
14272
|
+
that.deref().#compilation
|
|
14273
|
+
).beforeAssetTagGeneration;
|
|
14274
|
+
},
|
|
14275
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14276
|
+
function(queried) {
|
|
14277
|
+
return async function(data) {
|
|
14278
|
+
return await queried.promise({
|
|
14279
|
+
...data,
|
|
14280
|
+
plugin: {
|
|
14281
|
+
options: HtmlRspackPlugin.getCompilationOptions(
|
|
14282
|
+
that.deref().#compilation
|
|
14283
|
+
) || {}
|
|
14284
|
+
}
|
|
14285
|
+
});
|
|
14286
|
+
};
|
|
13778
14287
|
}
|
|
13779
14288
|
),
|
|
13780
14289
|
registerHtmlPluginAlterAssetTagsTaps: this.#createHookRegisterTaps(
|
|
13781
14290
|
binding2.RegisterJsTapKind.HtmlPluginAlterAssetTags,
|
|
13782
|
-
|
|
13783
|
-
(
|
|
13784
|
-
return
|
|
14291
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14292
|
+
function() {
|
|
14293
|
+
return HtmlRspackPlugin.getCompilationHooks(
|
|
14294
|
+
that.deref().#compilation
|
|
14295
|
+
).alterAssetTags;
|
|
14296
|
+
},
|
|
14297
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14298
|
+
function(queried) {
|
|
14299
|
+
return async function(data) {
|
|
14300
|
+
return await queried.promise(data);
|
|
14301
|
+
};
|
|
13785
14302
|
}
|
|
13786
14303
|
),
|
|
13787
14304
|
registerHtmlPluginAlterAssetTagGroupsTaps: this.#createHookRegisterTaps(
|
|
13788
14305
|
binding2.RegisterJsTapKind.HtmlPluginAlterAssetTagGroups,
|
|
13789
|
-
|
|
13790
|
-
(
|
|
13791
|
-
return
|
|
13792
|
-
|
|
13793
|
-
|
|
13794
|
-
|
|
13795
|
-
|
|
13796
|
-
|
|
14306
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14307
|
+
function() {
|
|
14308
|
+
return HtmlRspackPlugin.getCompilationHooks(
|
|
14309
|
+
that.deref().#compilation
|
|
14310
|
+
).alterAssetTagGroups;
|
|
14311
|
+
},
|
|
14312
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14313
|
+
function(queried) {
|
|
14314
|
+
return async function(data) {
|
|
14315
|
+
return await queried.promise({
|
|
14316
|
+
...data,
|
|
14317
|
+
plugin: {
|
|
14318
|
+
options: HtmlRspackPlugin.getCompilationOptions(
|
|
14319
|
+
that.deref().#compilation
|
|
14320
|
+
) || {}
|
|
14321
|
+
}
|
|
14322
|
+
});
|
|
14323
|
+
};
|
|
13797
14324
|
}
|
|
13798
14325
|
),
|
|
13799
14326
|
registerHtmlPluginAfterTemplateExecutionTaps: this.#createHookRegisterTaps(
|
|
13800
14327
|
binding2.RegisterJsTapKind.HtmlPluginAfterTemplateExecution,
|
|
13801
|
-
|
|
13802
|
-
(
|
|
13803
|
-
return
|
|
13804
|
-
|
|
13805
|
-
|
|
13806
|
-
|
|
13807
|
-
|
|
13808
|
-
|
|
14328
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14329
|
+
function() {
|
|
14330
|
+
return HtmlRspackPlugin.getCompilationHooks(
|
|
14331
|
+
that.deref().#compilation
|
|
14332
|
+
).afterTemplateExecution;
|
|
14333
|
+
},
|
|
14334
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14335
|
+
function(queried) {
|
|
14336
|
+
return async function(data) {
|
|
14337
|
+
return await queried.promise({
|
|
14338
|
+
...data,
|
|
14339
|
+
plugin: {
|
|
14340
|
+
options: HtmlRspackPlugin.getCompilationOptions(
|
|
14341
|
+
that.deref().#compilation
|
|
14342
|
+
) || {}
|
|
14343
|
+
}
|
|
14344
|
+
});
|
|
14345
|
+
};
|
|
13809
14346
|
}
|
|
13810
14347
|
),
|
|
13811
14348
|
registerHtmlPluginBeforeEmitTaps: this.#createHookRegisterTaps(
|
|
13812
14349
|
binding2.RegisterJsTapKind.HtmlPluginBeforeEmit,
|
|
13813
|
-
|
|
13814
|
-
(
|
|
13815
|
-
return
|
|
13816
|
-
|
|
13817
|
-
|
|
13818
|
-
|
|
13819
|
-
|
|
13820
|
-
|
|
14350
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14351
|
+
function() {
|
|
14352
|
+
return HtmlRspackPlugin.getCompilationHooks(
|
|
14353
|
+
that.deref().#compilation
|
|
14354
|
+
).beforeEmit;
|
|
14355
|
+
},
|
|
14356
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14357
|
+
function(queried) {
|
|
14358
|
+
return async function(data) {
|
|
14359
|
+
return await queried.promise({
|
|
14360
|
+
...data,
|
|
14361
|
+
plugin: {
|
|
14362
|
+
options: HtmlRspackPlugin.getCompilationOptions(
|
|
14363
|
+
that.deref().#compilation
|
|
14364
|
+
) || {}
|
|
14365
|
+
}
|
|
14366
|
+
});
|
|
14367
|
+
};
|
|
13821
14368
|
}
|
|
13822
14369
|
),
|
|
13823
14370
|
registerHtmlPluginAfterEmitTaps: this.#createHookRegisterTaps(
|
|
13824
14371
|
binding2.RegisterJsTapKind.HtmlPluginAfterEmit,
|
|
13825
|
-
|
|
13826
|
-
(
|
|
13827
|
-
return
|
|
13828
|
-
|
|
13829
|
-
|
|
13830
|
-
|
|
13831
|
-
|
|
13832
|
-
|
|
14372
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14373
|
+
function() {
|
|
14374
|
+
return HtmlRspackPlugin.getCompilationHooks(
|
|
14375
|
+
that.deref().#compilation
|
|
14376
|
+
).afterEmit;
|
|
14377
|
+
},
|
|
14378
|
+
// biome-ignore lint/complexity/useArrowFunction: <explanation>
|
|
14379
|
+
function(queried) {
|
|
14380
|
+
return async function(data) {
|
|
14381
|
+
return await queried.promise({
|
|
14382
|
+
...data,
|
|
14383
|
+
plugin: {
|
|
14384
|
+
options: HtmlRspackPlugin.getCompilationOptions(
|
|
14385
|
+
that.deref().#compilation
|
|
14386
|
+
) || {}
|
|
14387
|
+
}
|
|
14388
|
+
});
|
|
14389
|
+
};
|
|
13833
14390
|
}
|
|
13834
14391
|
)
|
|
13835
14392
|
};
|
|
@@ -13878,7 +14435,9 @@ var Compiler = class _Compiler {
|
|
|
13878
14435
|
}
|
|
13879
14436
|
}
|
|
13880
14437
|
#createHookRegisterTaps(registerKind, getHook, createTap) {
|
|
14438
|
+
const that = new WeakRef(this);
|
|
13881
14439
|
const getTaps = (stages) => {
|
|
14440
|
+
const compiler = that.deref();
|
|
13882
14441
|
const hook = getHook();
|
|
13883
14442
|
if (!hook.isUsed()) return [];
|
|
13884
14443
|
const breakpoints = [
|
|
@@ -13898,7 +14457,7 @@ var Compiler = class _Compiler {
|
|
|
13898
14457
|
stage: liteTapable7.safeStage(from + 1)
|
|
13899
14458
|
});
|
|
13900
14459
|
}
|
|
13901
|
-
|
|
14460
|
+
compiler.#decorateJsTaps(jsTaps);
|
|
13902
14461
|
return jsTaps;
|
|
13903
14462
|
};
|
|
13904
14463
|
getTaps.registerKind = registerKind;
|
|
@@ -13906,7 +14465,9 @@ var Compiler = class _Compiler {
|
|
|
13906
14465
|
return getTaps;
|
|
13907
14466
|
}
|
|
13908
14467
|
#createHookMapRegisterTaps(registerKind, getHookMap, createTap) {
|
|
14468
|
+
const that = new WeakRef(this);
|
|
13909
14469
|
const getTaps = (stages) => {
|
|
14470
|
+
const compiler = that.deref();
|
|
13910
14471
|
const map = getHookMap();
|
|
13911
14472
|
if (!map.isUsed()) return [];
|
|
13912
14473
|
const breakpoints = [
|
|
@@ -13926,7 +14487,7 @@ var Compiler = class _Compiler {
|
|
|
13926
14487
|
stage: liteTapable7.safeStage(from + 1)
|
|
13927
14488
|
});
|
|
13928
14489
|
}
|
|
13929
|
-
|
|
14490
|
+
compiler.#decorateJsTaps(jsTaps);
|
|
13930
14491
|
return jsTaps;
|
|
13931
14492
|
};
|
|
13932
14493
|
getTaps.registerKind = registerKind;
|
|
@@ -17755,6 +18316,203 @@ var RspackOptionsApply = class {
|
|
|
17755
18316
|
}
|
|
17756
18317
|
};
|
|
17757
18318
|
|
|
18319
|
+
// src/lib/DllPlugin.ts
|
|
18320
|
+
var import_zod5 = __toESM(require("../compiled/zod/index.js"));
|
|
18321
|
+
|
|
18322
|
+
// src/builtin-plugin/FlagAllModulesAsUsedPlugin.ts
|
|
18323
|
+
var import_binding79 = require("@rspack/binding");
|
|
18324
|
+
var FlagAllModulesAsUsedPlugin = create2(
|
|
18325
|
+
import_binding79.BuiltinPluginName.FlagAllModulesAsUsedPlugin,
|
|
18326
|
+
(explanation) => {
|
|
18327
|
+
return {
|
|
18328
|
+
explanation
|
|
18329
|
+
};
|
|
18330
|
+
}
|
|
18331
|
+
);
|
|
18332
|
+
|
|
18333
|
+
// src/lib/DllPlugin.ts
|
|
18334
|
+
var dllPluginOptions = import_zod5.default.object({
|
|
18335
|
+
context: import_zod5.default.string().optional(),
|
|
18336
|
+
entryOnly: import_zod5.default.boolean().optional(),
|
|
18337
|
+
format: import_zod5.default.boolean().optional(),
|
|
18338
|
+
name: import_zod5.default.string().optional(),
|
|
18339
|
+
path: import_zod5.default.string(),
|
|
18340
|
+
type: import_zod5.default.string().optional()
|
|
18341
|
+
});
|
|
18342
|
+
var DllPlugin = class _DllPlugin {
|
|
18343
|
+
constructor(options) {
|
|
18344
|
+
validate(options, dllPluginOptions);
|
|
18345
|
+
this.options = {
|
|
18346
|
+
...options,
|
|
18347
|
+
entryOnly: options.entryOnly !== false
|
|
18348
|
+
};
|
|
18349
|
+
}
|
|
18350
|
+
apply(compiler) {
|
|
18351
|
+
compiler.hooks.entryOption.tap(_DllPlugin.name, (context2, entry2) => {
|
|
18352
|
+
if (typeof entry2 === "function") {
|
|
18353
|
+
throw new Error(
|
|
18354
|
+
"DllPlugin doesn't support dynamic entry (function) yet"
|
|
18355
|
+
);
|
|
18356
|
+
}
|
|
18357
|
+
for (const name2 of Object.keys(entry2)) {
|
|
18358
|
+
const options = {
|
|
18359
|
+
name: name2
|
|
18360
|
+
};
|
|
18361
|
+
const entries = entry2[name2].import || [];
|
|
18362
|
+
new DllEntryPlugin(context2, entries, options).apply(compiler);
|
|
18363
|
+
}
|
|
18364
|
+
return true;
|
|
18365
|
+
});
|
|
18366
|
+
new LibManifestPlugin(this.options).apply(compiler);
|
|
18367
|
+
if (!this.options.entryOnly) {
|
|
18368
|
+
new FlagAllModulesAsUsedPlugin("DllPlugin").apply(compiler);
|
|
18369
|
+
}
|
|
18370
|
+
}
|
|
18371
|
+
};
|
|
18372
|
+
|
|
18373
|
+
// src/lib/DllReferencePlugin.ts
|
|
18374
|
+
var import_zod6 = __toESM(require("../compiled/zod/index.js"));
|
|
18375
|
+
var dllReferencePluginOptionsContentItem = import_zod6.default.object({
|
|
18376
|
+
buildMeta: import_zod6.default.custom().optional(),
|
|
18377
|
+
exports: import_zod6.default.array(import_zod6.default.string()).or(import_zod6.default.literal(true)).optional(),
|
|
18378
|
+
id: import_zod6.default.string().optional()
|
|
18379
|
+
});
|
|
18380
|
+
var dllReferencePluginOptionsContent = import_zod6.default.record(
|
|
18381
|
+
dllReferencePluginOptionsContentItem
|
|
18382
|
+
);
|
|
18383
|
+
var dllReferencePluginOptionsSourceType = import_zod6.default.enum([
|
|
18384
|
+
"var",
|
|
18385
|
+
"assign",
|
|
18386
|
+
"this",
|
|
18387
|
+
"window",
|
|
18388
|
+
"global",
|
|
18389
|
+
"commonjs",
|
|
18390
|
+
"commonjs2",
|
|
18391
|
+
"commonjs-module",
|
|
18392
|
+
"amd",
|
|
18393
|
+
"amd-require",
|
|
18394
|
+
"umd",
|
|
18395
|
+
"umd2",
|
|
18396
|
+
"jsonp",
|
|
18397
|
+
"system"
|
|
18398
|
+
]);
|
|
18399
|
+
var dllReferencePluginOptionsManifest = import_zod6.default.object({
|
|
18400
|
+
content: dllReferencePluginOptionsContent,
|
|
18401
|
+
name: import_zod6.default.string().optional(),
|
|
18402
|
+
type: dllReferencePluginOptionsSourceType.optional()
|
|
18403
|
+
});
|
|
18404
|
+
var dllReferencePluginOptions = import_zod6.default.union([
|
|
18405
|
+
import_zod6.default.object({
|
|
18406
|
+
context: import_zod6.default.string().optional(),
|
|
18407
|
+
extensions: import_zod6.default.array(import_zod6.default.string()).optional(),
|
|
18408
|
+
manifest: import_zod6.default.string().or(dllReferencePluginOptionsManifest),
|
|
18409
|
+
name: import_zod6.default.string().optional(),
|
|
18410
|
+
scope: import_zod6.default.string().optional(),
|
|
18411
|
+
sourceType: dllReferencePluginOptionsSourceType.optional(),
|
|
18412
|
+
type: import_zod6.default.enum(["require", "object"]).optional()
|
|
18413
|
+
}),
|
|
18414
|
+
import_zod6.default.object({
|
|
18415
|
+
content: dllReferencePluginOptionsContent,
|
|
18416
|
+
context: import_zod6.default.string().optional(),
|
|
18417
|
+
extensions: import_zod6.default.array(import_zod6.default.string()).optional(),
|
|
18418
|
+
name: import_zod6.default.string(),
|
|
18419
|
+
scope: import_zod6.default.string().optional(),
|
|
18420
|
+
sourceType: dllReferencePluginOptionsSourceType.optional(),
|
|
18421
|
+
type: import_zod6.default.enum(["require", "object"]).optional()
|
|
18422
|
+
})
|
|
18423
|
+
]);
|
|
18424
|
+
var DllReferencePlugin = class _DllReferencePlugin {
|
|
18425
|
+
constructor(options) {
|
|
18426
|
+
validate(options, dllReferencePluginOptions);
|
|
18427
|
+
this.options = options;
|
|
18428
|
+
this.errors = /* @__PURE__ */ new WeakMap();
|
|
18429
|
+
}
|
|
18430
|
+
apply(compiler) {
|
|
18431
|
+
compiler.hooks.beforeCompile.tapPromise(
|
|
18432
|
+
_DllReferencePlugin.name,
|
|
18433
|
+
async (params) => {
|
|
18434
|
+
const manifest = await new Promise((resolve2, reject) => {
|
|
18435
|
+
var _a;
|
|
18436
|
+
if ("manifest" in this.options) {
|
|
18437
|
+
const manifest2 = this.options.manifest;
|
|
18438
|
+
if (typeof manifest2 === "string") {
|
|
18439
|
+
const manifestParameter = manifest2;
|
|
18440
|
+
(_a = compiler.inputFileSystem) == null ? void 0 : _a.readFile(
|
|
18441
|
+
manifestParameter,
|
|
18442
|
+
"utf8",
|
|
18443
|
+
(err, result2) => {
|
|
18444
|
+
if (err) return reject(err);
|
|
18445
|
+
if (!result2)
|
|
18446
|
+
return reject(
|
|
18447
|
+
new DllManifestError(
|
|
18448
|
+
manifestParameter,
|
|
18449
|
+
`Can't read anything from ${manifestParameter}`
|
|
18450
|
+
)
|
|
18451
|
+
);
|
|
18452
|
+
try {
|
|
18453
|
+
const manifest3 = JSON.parse(result2);
|
|
18454
|
+
resolve2(manifest3);
|
|
18455
|
+
} catch (parseError) {
|
|
18456
|
+
const manifestPath = makePathsRelative(
|
|
18457
|
+
compiler.context,
|
|
18458
|
+
manifestParameter,
|
|
18459
|
+
compiler.root
|
|
18460
|
+
);
|
|
18461
|
+
this.errors.set(
|
|
18462
|
+
params,
|
|
18463
|
+
new DllManifestError(
|
|
18464
|
+
manifestPath,
|
|
18465
|
+
parseError.message
|
|
18466
|
+
)
|
|
18467
|
+
);
|
|
18468
|
+
}
|
|
18469
|
+
}
|
|
18470
|
+
);
|
|
18471
|
+
} else {
|
|
18472
|
+
resolve2(manifest2);
|
|
18473
|
+
}
|
|
18474
|
+
} else {
|
|
18475
|
+
resolve2(void 0);
|
|
18476
|
+
}
|
|
18477
|
+
});
|
|
18478
|
+
if (!this.errors.has(params)) {
|
|
18479
|
+
new DllReferenceAgencyPlugin({
|
|
18480
|
+
...this.options,
|
|
18481
|
+
type: this.options.type || "require",
|
|
18482
|
+
extensions: this.options.extensions || [
|
|
18483
|
+
"",
|
|
18484
|
+
".js",
|
|
18485
|
+
".json",
|
|
18486
|
+
".wasm"
|
|
18487
|
+
],
|
|
18488
|
+
manifest
|
|
18489
|
+
}).apply(compiler);
|
|
18490
|
+
}
|
|
18491
|
+
}
|
|
18492
|
+
);
|
|
18493
|
+
compiler.hooks.compilation.tap(
|
|
18494
|
+
_DllReferencePlugin.name,
|
|
18495
|
+
(compilation, params) => {
|
|
18496
|
+
if ("manifest" in this.options && typeof this.options.manifest === "string") {
|
|
18497
|
+
const error = this.errors.get(params);
|
|
18498
|
+
if (error) {
|
|
18499
|
+
compilation.errors.push(error);
|
|
18500
|
+
}
|
|
18501
|
+
compilation.fileDependencies.add(this.options.manifest);
|
|
18502
|
+
}
|
|
18503
|
+
}
|
|
18504
|
+
);
|
|
18505
|
+
}
|
|
18506
|
+
};
|
|
18507
|
+
var DllManifestError = class extends WebpackError_default {
|
|
18508
|
+
constructor(filename2, message) {
|
|
18509
|
+
super();
|
|
18510
|
+
this.name = "DllManifestError";
|
|
18511
|
+
this.message = `Dll manifest ${filename2}
|
|
18512
|
+
${message}`;
|
|
18513
|
+
}
|
|
18514
|
+
};
|
|
18515
|
+
|
|
17758
18516
|
// src/lib/EnvironmentPlugin.ts
|
|
17759
18517
|
var EnvironmentPlugin = class {
|
|
17760
18518
|
constructor(...keys) {
|
|
@@ -18453,9 +19211,9 @@ var NodeTemplatePlugin = class {
|
|
|
18453
19211
|
};
|
|
18454
19212
|
|
|
18455
19213
|
// src/container/ModuleFederationRuntimePlugin.ts
|
|
18456
|
-
var
|
|
19214
|
+
var import_binding80 = require("@rspack/binding");
|
|
18457
19215
|
var ModuleFederationRuntimePlugin = create2(
|
|
18458
|
-
|
|
19216
|
+
import_binding80.BuiltinPluginName.ModuleFederationRuntimePlugin,
|
|
18459
19217
|
() => {
|
|
18460
19218
|
}
|
|
18461
19219
|
);
|
|
@@ -18651,10 +19409,10 @@ function getDefaultEntryRuntime(paths, options, compiler) {
|
|
|
18651
19409
|
}
|
|
18652
19410
|
|
|
18653
19411
|
// src/sharing/ConsumeSharedPlugin.ts
|
|
18654
|
-
var
|
|
19412
|
+
var import_binding82 = require("@rspack/binding");
|
|
18655
19413
|
|
|
18656
19414
|
// src/sharing/ShareRuntimePlugin.ts
|
|
18657
|
-
var
|
|
19415
|
+
var import_binding81 = require("@rspack/binding");
|
|
18658
19416
|
var compilerSet = /* @__PURE__ */ new WeakSet();
|
|
18659
19417
|
function isSingleton(compiler) {
|
|
18660
19418
|
return compilerSet.has(compiler);
|
|
@@ -18666,7 +19424,7 @@ var ShareRuntimePlugin = class extends RspackBuiltinPlugin {
|
|
|
18666
19424
|
constructor(enhanced = false) {
|
|
18667
19425
|
super();
|
|
18668
19426
|
this.enhanced = enhanced;
|
|
18669
|
-
this.name =
|
|
19427
|
+
this.name = import_binding81.BuiltinPluginName.ShareRuntimePlugin;
|
|
18670
19428
|
}
|
|
18671
19429
|
raw(compiler) {
|
|
18672
19430
|
if (isSingleton(compiler)) return;
|
|
@@ -18685,7 +19443,7 @@ function isRequiredVersion(str) {
|
|
|
18685
19443
|
var ConsumeSharedPlugin = class extends RspackBuiltinPlugin {
|
|
18686
19444
|
constructor(options) {
|
|
18687
19445
|
super();
|
|
18688
|
-
this.name =
|
|
19446
|
+
this.name = import_binding82.BuiltinPluginName.ConsumeSharedPlugin;
|
|
18689
19447
|
this._options = {
|
|
18690
19448
|
consumes: parseOptions(
|
|
18691
19449
|
options.consumes,
|
|
@@ -18748,11 +19506,11 @@ var ConsumeSharedPlugin = class extends RspackBuiltinPlugin {
|
|
|
18748
19506
|
};
|
|
18749
19507
|
|
|
18750
19508
|
// src/sharing/ProvideSharedPlugin.ts
|
|
18751
|
-
var
|
|
19509
|
+
var import_binding83 = require("@rspack/binding");
|
|
18752
19510
|
var ProvideSharedPlugin = class extends RspackBuiltinPlugin {
|
|
18753
19511
|
constructor(options) {
|
|
18754
19512
|
super();
|
|
18755
|
-
this.name =
|
|
19513
|
+
this.name = import_binding83.BuiltinPluginName.ProvideSharedPlugin;
|
|
18756
19514
|
this._provides = parseOptions(
|
|
18757
19515
|
options.provides,
|
|
18758
19516
|
(item) => {
|
|
@@ -18857,11 +19615,11 @@ var SharePlugin = class {
|
|
|
18857
19615
|
};
|
|
18858
19616
|
|
|
18859
19617
|
// src/container/ContainerPlugin.ts
|
|
18860
|
-
var
|
|
19618
|
+
var import_binding84 = require("@rspack/binding");
|
|
18861
19619
|
var ContainerPlugin = class extends RspackBuiltinPlugin {
|
|
18862
19620
|
constructor(options) {
|
|
18863
19621
|
super();
|
|
18864
|
-
this.name =
|
|
19622
|
+
this.name = import_binding84.BuiltinPluginName.ContainerPlugin;
|
|
18865
19623
|
this._options = {
|
|
18866
19624
|
name: options.name,
|
|
18867
19625
|
shareScope: options.shareScope || "default",
|
|
@@ -18905,11 +19663,11 @@ var ContainerPlugin = class extends RspackBuiltinPlugin {
|
|
|
18905
19663
|
};
|
|
18906
19664
|
|
|
18907
19665
|
// src/container/ContainerReferencePlugin.ts
|
|
18908
|
-
var
|
|
19666
|
+
var import_binding85 = require("@rspack/binding");
|
|
18909
19667
|
var ContainerReferencePlugin = class extends RspackBuiltinPlugin {
|
|
18910
19668
|
constructor(options) {
|
|
18911
19669
|
super();
|
|
18912
|
-
this.name =
|
|
19670
|
+
this.name = import_binding85.BuiltinPluginName.ContainerReferencePlugin;
|
|
18913
19671
|
this._options = {
|
|
18914
19672
|
remoteType: options.remoteType,
|
|
18915
19673
|
remotes: parseOptions(
|
|
@@ -18994,7 +19752,7 @@ var ModuleFederationPluginV1 = class {
|
|
|
18994
19752
|
};
|
|
18995
19753
|
|
|
18996
19754
|
// src/exports.ts
|
|
18997
|
-
var
|
|
19755
|
+
var import_binding86 = require("@rspack/binding");
|
|
18998
19756
|
var rspackVersion = import_package.version;
|
|
18999
19757
|
var version = import_package.webpackVersion;
|
|
19000
19758
|
var WebpackError2 = Error;
|
|
@@ -19040,8 +19798,8 @@ var sharing = {
|
|
|
19040
19798
|
};
|
|
19041
19799
|
var experiments2 = {
|
|
19042
19800
|
globalTrace: {
|
|
19043
|
-
register:
|
|
19044
|
-
cleanup:
|
|
19801
|
+
register: import_binding86.registerGlobalTrace,
|
|
19802
|
+
cleanup: import_binding86.cleanupGlobalTrace
|
|
19045
19803
|
},
|
|
19046
19804
|
RemoveDuplicateModulesPlugin
|
|
19047
19805
|
};
|
|
@@ -19162,6 +19920,8 @@ module.exports = rspack;
|
|
|
19162
19920
|
CopyRspackPlugin,
|
|
19163
19921
|
CssExtractRspackPlugin,
|
|
19164
19922
|
DefinePlugin,
|
|
19923
|
+
DllPlugin,
|
|
19924
|
+
DllReferencePlugin,
|
|
19165
19925
|
DynamicEntryPlugin,
|
|
19166
19926
|
EntryOptionPlugin,
|
|
19167
19927
|
EntryPlugin,
|