@rspack/core 0.7.5-canary-1ab2ea8-20240624100353 → 0.7.5-canary-0d03907-20240624125011
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Compilation.d.ts +9 -7
- package/dist/Compilation.js +12 -27
- package/dist/Module.d.ts +2 -1
- package/dist/Module.js +1 -0
- package/dist/RspackError.d.ts +8 -0
- package/dist/RspackError.js +21 -0
- package/dist/builtin-plugin/css-extract/index.d.ts +2 -2
- package/dist/config/adapter.js +11 -1
- package/dist/config/defaults.js +1 -0
- package/dist/config/zod.d.ts +107 -0
- package/dist/config/zod.js +3 -1
- package/dist/loader-runner/index.js +27 -6
- package/dist/stats/DefaultStatsPrinterPlugin.js +2 -2
- package/dist/util/index.d.ts +2 -2
- package/dist/util/index.js +4 -3
- package/package.json +4 -4
package/dist/Compilation.d.ts
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type
|
|
10
|
+
import type * as binding from "@rspack/binding";
|
|
11
|
+
import { type ExternalObject, type JsCompilation, type JsModule, type JsPathData, type JsRuntimeModule } from "@rspack/binding";
|
|
11
12
|
import * as tapable from "tapable";
|
|
12
13
|
import { Source } from "webpack-sources";
|
|
13
14
|
import { ContextModuleFactory } from "./ContextModuleFactory";
|
|
@@ -26,6 +27,7 @@ import { StatsFactory } from "./stats/StatsFactory";
|
|
|
26
27
|
import { StatsPrinter } from "./stats/StatsPrinter";
|
|
27
28
|
import { type AssetInfo } from "./util/AssetInfo";
|
|
28
29
|
import Hash = require("./util/hash");
|
|
30
|
+
import { RspackError } from "./RspackError";
|
|
29
31
|
export { type AssetInfo } from "./util/AssetInfo";
|
|
30
32
|
export type Assets = Record<string, Source>;
|
|
31
33
|
export interface Asset {
|
|
@@ -215,19 +217,19 @@ export declare class Compilation {
|
|
|
215
217
|
*
|
|
216
218
|
* @internal
|
|
217
219
|
*/
|
|
218
|
-
__internal__pushDiagnostic(
|
|
220
|
+
__internal__pushDiagnostic(diagnostic: binding.JsDiagnostic): void;
|
|
219
221
|
/**
|
|
220
222
|
* Note: This is not a webpack public API, maybe removed in future.
|
|
221
223
|
*
|
|
222
224
|
* @internal
|
|
223
225
|
*/
|
|
224
226
|
__internal__pushNativeDiagnostics(diagnostics: ExternalObject<"Diagnostic[]">): void;
|
|
225
|
-
get errors():
|
|
226
|
-
get warnings():
|
|
227
|
+
get errors(): RspackError[];
|
|
228
|
+
get warnings(): RspackError[];
|
|
227
229
|
getPath(filename: Filename, data?: PathData): string;
|
|
228
|
-
getPathWithInfo(filename: Filename, data?: PathData):
|
|
230
|
+
getPathWithInfo(filename: Filename, data?: PathData): binding.PathWithInfo;
|
|
229
231
|
getAssetPath(filename: Filename, data?: PathData): string;
|
|
230
|
-
getAssetPathWithInfo(filename: Filename, data?: PathData):
|
|
232
|
+
getAssetPathWithInfo(filename: Filename, data?: PathData): binding.PathWithInfo;
|
|
231
233
|
getLogger(name: string | (() => string)): Logger;
|
|
232
234
|
fileDependencies: {
|
|
233
235
|
[Symbol.iterator](): Generator<string, void, unknown>;
|
|
@@ -313,7 +315,7 @@ export declare class Compilation {
|
|
|
313
315
|
*
|
|
314
316
|
* @internal
|
|
315
317
|
*/
|
|
316
|
-
__internal_getInner(): JsCompilation;
|
|
318
|
+
__internal_getInner(): binding.JsCompilation;
|
|
317
319
|
seal(): void;
|
|
318
320
|
unseal(): void;
|
|
319
321
|
static PROCESS_ASSETS_STAGE_ADDITIONAL: number;
|
package/dist/Compilation.js
CHANGED
|
@@ -39,6 +39,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
var _Compilation_instances, _Compilation_inner, _Compilation_cachedAssets, _Compilation_customModules, _Compilation_createCachedAssets, _Compilation_rebuildModuleCaller;
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.Compilation = void 0;
|
|
42
|
+
const binding_1 = require("@rspack/binding");
|
|
42
43
|
const tapable = __importStar(require("tapable"));
|
|
43
44
|
const liteTapable = __importStar(require("./lite-tapable"));
|
|
44
45
|
const Chunk_1 = require("./Chunk");
|
|
@@ -50,12 +51,12 @@ const Stats_1 = require("./Stats");
|
|
|
50
51
|
const Logger_1 = require("./logging/Logger");
|
|
51
52
|
const StatsFactory_1 = require("./stats/StatsFactory");
|
|
52
53
|
const StatsPrinter_1 = require("./stats/StatsPrinter");
|
|
53
|
-
const util_1 = require("./util");
|
|
54
54
|
const AssetInfo_1 = require("./util/AssetInfo");
|
|
55
55
|
const MergeCaller_1 = __importDefault(require("./util/MergeCaller"));
|
|
56
56
|
const fake_1 = require("./util/fake");
|
|
57
57
|
const memoize_1 = require("./util/memoize");
|
|
58
58
|
const source_1 = require("./util/source");
|
|
59
|
+
const RspackError_1 = require("./RspackError");
|
|
59
60
|
class Compilation {
|
|
60
61
|
constructor(compiler, inner) {
|
|
61
62
|
_Compilation_instances.add(this);
|
|
@@ -339,8 +340,8 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
339
340
|
*
|
|
340
341
|
* @internal
|
|
341
342
|
*/
|
|
342
|
-
__internal__pushDiagnostic(
|
|
343
|
-
__classPrivateFieldGet(this, _Compilation_inner, "f").pushDiagnostic(
|
|
343
|
+
__internal__pushDiagnostic(diagnostic) {
|
|
344
|
+
__classPrivateFieldGet(this, _Compilation_inner, "f").pushDiagnostic(diagnostic);
|
|
344
345
|
}
|
|
345
346
|
/**
|
|
346
347
|
* Note: This is not a webpack public API, maybe removed in future.
|
|
@@ -352,14 +353,14 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
352
353
|
}
|
|
353
354
|
get errors() {
|
|
354
355
|
const inner = __classPrivateFieldGet(this, _Compilation_inner, "f");
|
|
355
|
-
const errors = inner.
|
|
356
|
+
const errors = inner.getErrors();
|
|
356
357
|
const proxyMethod = [
|
|
357
358
|
{
|
|
358
359
|
method: "push",
|
|
359
360
|
handler(target, thisArg, errs) {
|
|
360
361
|
for (let i = 0; i < errs.length; i++) {
|
|
361
362
|
const error = errs[i];
|
|
362
|
-
inner.pushDiagnostic(
|
|
363
|
+
inner.pushDiagnostic(RspackError_1.JsDiagnostic.__to_binding(error, binding_1.JsRspackSeverity.Error));
|
|
363
364
|
}
|
|
364
365
|
return Reflect.apply(target, thisArg, errs);
|
|
365
366
|
}
|
|
@@ -382,11 +383,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
382
383
|
method: "unshift",
|
|
383
384
|
handler(target, thisArg, errs) {
|
|
384
385
|
const errList = errs.map(error => {
|
|
385
|
-
return
|
|
386
|
-
severity: "error",
|
|
387
|
-
title: error instanceof Error ? error.name : "Error",
|
|
388
|
-
message: (0, util_1.concatErrorMsgAndStack)(error)
|
|
389
|
-
};
|
|
386
|
+
return RspackError_1.JsDiagnostic.__to_binding(error, binding_1.JsRspackSeverity.Error);
|
|
390
387
|
});
|
|
391
388
|
inner.spliceDiagnostic(0, 0, errList);
|
|
392
389
|
return Reflect.apply(target, thisArg, errs);
|
|
@@ -396,11 +393,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
396
393
|
method: "splice",
|
|
397
394
|
handler(target, thisArg, [startIdx, delCount, ...errors]) {
|
|
398
395
|
const errList = errors.map(error => {
|
|
399
|
-
return
|
|
400
|
-
severity: "error",
|
|
401
|
-
title: error instanceof Error ? error.name : "Error",
|
|
402
|
-
message: (0, util_1.concatErrorMsgAndStack)(error)
|
|
403
|
-
};
|
|
396
|
+
return RspackError_1.JsDiagnostic.__to_binding(error, binding_1.JsRspackSeverity.Error);
|
|
404
397
|
});
|
|
405
398
|
inner.spliceDiagnostic(startIdx, startIdx + delCount, errList);
|
|
406
399
|
return Reflect.apply(target, thisArg, [
|
|
@@ -422,7 +415,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
422
415
|
get warnings() {
|
|
423
416
|
const inner = __classPrivateFieldGet(this, _Compilation_inner, "f");
|
|
424
417
|
const processWarningsHook = this.hooks.processWarnings;
|
|
425
|
-
const warnings = inner.
|
|
418
|
+
const warnings = inner.getWarnings();
|
|
426
419
|
const proxyMethod = [
|
|
427
420
|
{
|
|
428
421
|
method: "push",
|
|
@@ -430,7 +423,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
430
423
|
warns = processWarningsHook.call(warns);
|
|
431
424
|
for (let i = 0; i < warns.length; i++) {
|
|
432
425
|
const warn = warns[i];
|
|
433
|
-
inner.pushDiagnostic(
|
|
426
|
+
inner.pushDiagnostic(RspackError_1.JsDiagnostic.__to_binding(warn, binding_1.JsRspackSeverity.Warn));
|
|
434
427
|
}
|
|
435
428
|
return Reflect.apply(target, thisArg, warns);
|
|
436
429
|
}
|
|
@@ -454,11 +447,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
454
447
|
handler(target, thisArg, warns) {
|
|
455
448
|
warns = processWarningsHook.call(warns);
|
|
456
449
|
const warnList = warns.map(warn => {
|
|
457
|
-
return
|
|
458
|
-
severity: "warning",
|
|
459
|
-
title: warn instanceof Error ? warn.name : "Warning",
|
|
460
|
-
message: (0, util_1.concatErrorMsgAndStack)(warn)
|
|
461
|
-
};
|
|
450
|
+
return RspackError_1.JsDiagnostic.__to_binding(warn, binding_1.JsRspackSeverity.Warn);
|
|
462
451
|
});
|
|
463
452
|
inner.spliceDiagnostic(0, 0, warnList);
|
|
464
453
|
return Reflect.apply(target, thisArg, warns);
|
|
@@ -469,11 +458,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
469
458
|
handler(target, thisArg, [startIdx, delCount, ...warns]) {
|
|
470
459
|
warns = processWarningsHook.call(warns);
|
|
471
460
|
const warnList = warns.map(warn => {
|
|
472
|
-
return
|
|
473
|
-
severity: "warning",
|
|
474
|
-
title: warn instanceof Error ? warn.name : "Warning",
|
|
475
|
-
message: (0, util_1.concatErrorMsgAndStack)(warn)
|
|
476
|
-
};
|
|
461
|
+
return RspackError_1.JsDiagnostic.__to_binding(warn, binding_1.JsRspackSeverity.Warn);
|
|
477
462
|
});
|
|
478
463
|
inner.spliceDiagnostic(startIdx, startIdx + delCount, warnList);
|
|
479
464
|
return Reflect.apply(target, thisArg, [
|
package/dist/Module.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JsCodegenerationResult, JsCodegenerationResults, JsCreateData, JsModule } from "@rspack/binding";
|
|
1
|
+
import { JsCodegenerationResult, JsCodegenerationResults, JsCreateData, JsFactoryMeta, JsModule } from "@rspack/binding";
|
|
2
2
|
import { Source } from "webpack-sources";
|
|
3
3
|
import { Compilation } from "./Compilation";
|
|
4
4
|
export type ResourceData = {
|
|
@@ -37,6 +37,7 @@ export declare class Module {
|
|
|
37
37
|
request?: Readonly<string>;
|
|
38
38
|
userRequest?: Readonly<string>;
|
|
39
39
|
rawRequest?: Readonly<string>;
|
|
40
|
+
factoryMeta?: Readonly<JsFactoryMeta>;
|
|
40
41
|
/**
|
|
41
42
|
* Records the dynamically added fields for Module on the JavaScript side.
|
|
42
43
|
* These fields are generally used within a plugin, so they do not need to be passed back to the Rust side.
|
package/dist/Module.js
CHANGED
|
@@ -27,6 +27,7 @@ class Module {
|
|
|
27
27
|
this.request = module.request;
|
|
28
28
|
this.userRequest = module.userRequest;
|
|
29
29
|
this.rawRequest = module.rawRequest;
|
|
30
|
+
this.factoryMeta = module.factoryMeta;
|
|
30
31
|
const customModule = compilation?.__internal__getCustomModule(module.moduleIdentifier);
|
|
31
32
|
this.buildInfo = customModule?.buildInfo || {};
|
|
32
33
|
this.buildMeta = customModule?.buildMeta || {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as binding from "@rspack/binding";
|
|
2
|
+
export type RspackError = binding.JsRspackError;
|
|
3
|
+
export declare class JsDiagnostic {
|
|
4
|
+
static __to_binding(error: Error | RspackError, severity: binding.JsRspackSeverity): binding.JsDiagnostic;
|
|
5
|
+
}
|
|
6
|
+
export declare class NonErrorEmittedError extends Error {
|
|
7
|
+
constructor(error: Error);
|
|
8
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NonErrorEmittedError = exports.JsDiagnostic = void 0;
|
|
4
|
+
const util_1 = require("./util");
|
|
5
|
+
class JsDiagnostic {
|
|
6
|
+
static __to_binding(error, severity) {
|
|
7
|
+
return {
|
|
8
|
+
error: (0, util_1.concatErrorMsgAndStack)(error),
|
|
9
|
+
severity
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.JsDiagnostic = JsDiagnostic;
|
|
14
|
+
class NonErrorEmittedError extends Error {
|
|
15
|
+
constructor(error) {
|
|
16
|
+
super();
|
|
17
|
+
this.name = "NonErrorEmittedError";
|
|
18
|
+
this.message = "(Emitted value instead of an instance of Error) " + error;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.NonErrorEmittedError = NonErrorEmittedError;
|
|
@@ -3,8 +3,8 @@ import { Compiler } from "../..";
|
|
|
3
3
|
export * from "./loader";
|
|
4
4
|
export type { CssExtractRspackLoaderOptions } from "./loader";
|
|
5
5
|
export interface CssExtractRspackPluginOptions {
|
|
6
|
-
filename?:
|
|
7
|
-
chunkFilename?:
|
|
6
|
+
filename?: RawCssExtractPluginOption["filename"];
|
|
7
|
+
chunkFilename?: RawCssExtractPluginOption["chunkFilename"];
|
|
8
8
|
ignoreOrder?: boolean;
|
|
9
9
|
insert?: string | ((linkTag: HTMLLinkElement) => void);
|
|
10
10
|
attributes?: Record<string, string>;
|
package/dist/config/adapter.js
CHANGED
|
@@ -467,9 +467,19 @@ function getRawJavascriptParserOptions(parser) {
|
|
|
467
467
|
reexportExportsPresence: parser.reexportExportsPresence === false
|
|
468
468
|
? "false"
|
|
469
469
|
: parser.reexportExportsPresence,
|
|
470
|
-
strictExportPresence: parser.strictExportPresence ?? false
|
|
470
|
+
strictExportPresence: parser.strictExportPresence ?? false,
|
|
471
|
+
worker: getRawJavascriptParserOptionsWorker(parser.worker)
|
|
471
472
|
};
|
|
472
473
|
}
|
|
474
|
+
function getRawJavascriptParserOptionsWorker(worker) {
|
|
475
|
+
const DEFAULT_SYNTAX = [
|
|
476
|
+
"Worker",
|
|
477
|
+
"SharedWorker",
|
|
478
|
+
// "navigator.serviceWorker.register()",
|
|
479
|
+
"Worker from worker_threads"
|
|
480
|
+
];
|
|
481
|
+
return (worker === false ? [] : Array.isArray(worker) ? worker : ["..."]).flatMap(item => (item === "..." ? DEFAULT_SYNTAX : item));
|
|
482
|
+
}
|
|
473
483
|
function getRawAssetParserOptions(parser) {
|
|
474
484
|
return {
|
|
475
485
|
dataUrlCondition: parser.dataUrlCondition
|
package/dist/config/defaults.js
CHANGED
|
@@ -155,6 +155,7 @@ const applyJavascriptParserOptionsDefaults = (parserOptions, fallback) => {
|
|
|
155
155
|
D(parserOptions, "importExportsPresence", fallback?.importExportsPresence);
|
|
156
156
|
D(parserOptions, "reexportExportsPresence", fallback?.reexportExportsPresence);
|
|
157
157
|
D(parserOptions, "strictExportPresence", fallback?.strictExportPresence ?? false);
|
|
158
|
+
D(parserOptions, "worker", fallback?.worker ?? ["..."]);
|
|
158
159
|
};
|
|
159
160
|
const applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties }) => {
|
|
160
161
|
(0, assertNotNil_1.assertNotNill)(module.parser);
|
package/dist/config/zod.d.ts
CHANGED
|
@@ -1805,6 +1805,7 @@ declare const javascriptParserOptions: z.ZodObject<{
|
|
|
1805
1805
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
1806
1806
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
1807
1807
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
1808
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
1808
1809
|
}, "strict", z.ZodTypeAny, {
|
|
1809
1810
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
1810
1811
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -1816,6 +1817,7 @@ declare const javascriptParserOptions: z.ZodObject<{
|
|
|
1816
1817
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1817
1818
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1818
1819
|
strictExportPresence?: boolean | undefined;
|
|
1820
|
+
worker?: boolean | string[] | undefined;
|
|
1819
1821
|
}, {
|
|
1820
1822
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
1821
1823
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -1827,6 +1829,7 @@ declare const javascriptParserOptions: z.ZodObject<{
|
|
|
1827
1829
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1828
1830
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1829
1831
|
strictExportPresence?: boolean | undefined;
|
|
1832
|
+
worker?: boolean | string[] | undefined;
|
|
1830
1833
|
}>;
|
|
1831
1834
|
export type JavascriptParserOptions = z.infer<typeof javascriptParserOptions>;
|
|
1832
1835
|
declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
@@ -1879,6 +1882,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1879
1882
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
1880
1883
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
1881
1884
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
1885
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
1882
1886
|
}, "strict", z.ZodTypeAny, {
|
|
1883
1887
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
1884
1888
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -1890,6 +1894,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1890
1894
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1891
1895
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1892
1896
|
strictExportPresence?: boolean | undefined;
|
|
1897
|
+
worker?: boolean | string[] | undefined;
|
|
1893
1898
|
}, {
|
|
1894
1899
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
1895
1900
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -1901,6 +1906,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1901
1906
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1902
1907
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1903
1908
|
strictExportPresence?: boolean | undefined;
|
|
1909
|
+
worker?: boolean | string[] | undefined;
|
|
1904
1910
|
}>>;
|
|
1905
1911
|
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
|
1906
1912
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy", "weak", "lazy-once"]>>;
|
|
@@ -1913,6 +1919,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1913
1919
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
1914
1920
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
1915
1921
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
1922
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
1916
1923
|
}, "strict", z.ZodTypeAny, {
|
|
1917
1924
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
1918
1925
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -1924,6 +1931,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1924
1931
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1925
1932
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1926
1933
|
strictExportPresence?: boolean | undefined;
|
|
1934
|
+
worker?: boolean | string[] | undefined;
|
|
1927
1935
|
}, {
|
|
1928
1936
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
1929
1937
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -1935,6 +1943,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1935
1943
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1936
1944
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1937
1945
|
strictExportPresence?: boolean | undefined;
|
|
1946
|
+
worker?: boolean | string[] | undefined;
|
|
1938
1947
|
}>>;
|
|
1939
1948
|
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
|
1940
1949
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy", "weak", "lazy-once"]>>;
|
|
@@ -1947,6 +1956,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1947
1956
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
1948
1957
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
1949
1958
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
1959
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
1950
1960
|
}, "strict", z.ZodTypeAny, {
|
|
1951
1961
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
1952
1962
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -1958,6 +1968,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1958
1968
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1959
1969
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1960
1970
|
strictExportPresence?: boolean | undefined;
|
|
1971
|
+
worker?: boolean | string[] | undefined;
|
|
1961
1972
|
}, {
|
|
1962
1973
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
1963
1974
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -1969,6 +1980,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1969
1980
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1970
1981
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1971
1982
|
strictExportPresence?: boolean | undefined;
|
|
1983
|
+
worker?: boolean | string[] | undefined;
|
|
1972
1984
|
}>>;
|
|
1973
1985
|
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
|
1974
1986
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy", "weak", "lazy-once"]>>;
|
|
@@ -1981,6 +1993,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1981
1993
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
1982
1994
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
1983
1995
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
1996
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
1984
1997
|
}, "strict", z.ZodTypeAny, {
|
|
1985
1998
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
1986
1999
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -1992,6 +2005,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1992
2005
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1993
2006
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
1994
2007
|
strictExportPresence?: boolean | undefined;
|
|
2008
|
+
worker?: boolean | string[] | undefined;
|
|
1995
2009
|
}, {
|
|
1996
2010
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
1997
2011
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -2003,6 +2017,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2003
2017
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2004
2018
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2005
2019
|
strictExportPresence?: boolean | undefined;
|
|
2020
|
+
worker?: boolean | string[] | undefined;
|
|
2006
2021
|
}>>;
|
|
2007
2022
|
}, "strict", z.ZodTypeAny, {
|
|
2008
2023
|
asset?: {
|
|
@@ -2030,6 +2045,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2030
2045
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2031
2046
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2032
2047
|
strictExportPresence?: boolean | undefined;
|
|
2048
|
+
worker?: boolean | string[] | undefined;
|
|
2033
2049
|
} | undefined;
|
|
2034
2050
|
"javascript/auto"?: {
|
|
2035
2051
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -2042,6 +2058,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2042
2058
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2043
2059
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2044
2060
|
strictExportPresence?: boolean | undefined;
|
|
2061
|
+
worker?: boolean | string[] | undefined;
|
|
2045
2062
|
} | undefined;
|
|
2046
2063
|
"javascript/dynamic"?: {
|
|
2047
2064
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -2054,6 +2071,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2054
2071
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2055
2072
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2056
2073
|
strictExportPresence?: boolean | undefined;
|
|
2074
|
+
worker?: boolean | string[] | undefined;
|
|
2057
2075
|
} | undefined;
|
|
2058
2076
|
"javascript/esm"?: {
|
|
2059
2077
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -2066,6 +2084,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2066
2084
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2067
2085
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2068
2086
|
strictExportPresence?: boolean | undefined;
|
|
2087
|
+
worker?: boolean | string[] | undefined;
|
|
2069
2088
|
} | undefined;
|
|
2070
2089
|
}, {
|
|
2071
2090
|
asset?: {
|
|
@@ -2093,6 +2112,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2093
2112
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2094
2113
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2095
2114
|
strictExportPresence?: boolean | undefined;
|
|
2115
|
+
worker?: boolean | string[] | undefined;
|
|
2096
2116
|
} | undefined;
|
|
2097
2117
|
"javascript/auto"?: {
|
|
2098
2118
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -2105,6 +2125,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2105
2125
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2106
2126
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2107
2127
|
strictExportPresence?: boolean | undefined;
|
|
2128
|
+
worker?: boolean | string[] | undefined;
|
|
2108
2129
|
} | undefined;
|
|
2109
2130
|
"javascript/dynamic"?: {
|
|
2110
2131
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -2117,6 +2138,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2117
2138
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2118
2139
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2119
2140
|
strictExportPresence?: boolean | undefined;
|
|
2141
|
+
worker?: boolean | string[] | undefined;
|
|
2120
2142
|
} | undefined;
|
|
2121
2143
|
"javascript/esm"?: {
|
|
2122
2144
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -2129,6 +2151,7 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2129
2151
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2130
2152
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2131
2153
|
strictExportPresence?: boolean | undefined;
|
|
2154
|
+
worker?: boolean | string[] | undefined;
|
|
2132
2155
|
} | undefined;
|
|
2133
2156
|
}>;
|
|
2134
2157
|
export type ParserOptionsByModuleTypeKnown = z.infer<typeof parserOptionsByModuleTypeKnown>;
|
|
@@ -2184,6 +2207,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2184
2207
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
2185
2208
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
2186
2209
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
2210
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
2187
2211
|
}, "strict", z.ZodTypeAny, {
|
|
2188
2212
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2189
2213
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -2195,6 +2219,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2195
2219
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2196
2220
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2197
2221
|
strictExportPresence?: boolean | undefined;
|
|
2222
|
+
worker?: boolean | string[] | undefined;
|
|
2198
2223
|
}, {
|
|
2199
2224
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2200
2225
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -2206,6 +2231,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2206
2231
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2207
2232
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2208
2233
|
strictExportPresence?: boolean | undefined;
|
|
2234
|
+
worker?: boolean | string[] | undefined;
|
|
2209
2235
|
}>>;
|
|
2210
2236
|
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
|
2211
2237
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy", "weak", "lazy-once"]>>;
|
|
@@ -2218,6 +2244,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2218
2244
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
2219
2245
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
2220
2246
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
2247
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
2221
2248
|
}, "strict", z.ZodTypeAny, {
|
|
2222
2249
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2223
2250
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -2229,6 +2256,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2229
2256
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2230
2257
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2231
2258
|
strictExportPresence?: boolean | undefined;
|
|
2259
|
+
worker?: boolean | string[] | undefined;
|
|
2232
2260
|
}, {
|
|
2233
2261
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2234
2262
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -2240,6 +2268,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2240
2268
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2241
2269
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2242
2270
|
strictExportPresence?: boolean | undefined;
|
|
2271
|
+
worker?: boolean | string[] | undefined;
|
|
2243
2272
|
}>>;
|
|
2244
2273
|
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
|
2245
2274
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy", "weak", "lazy-once"]>>;
|
|
@@ -2252,6 +2281,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2252
2281
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
2253
2282
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
2254
2283
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
2284
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
2255
2285
|
}, "strict", z.ZodTypeAny, {
|
|
2256
2286
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2257
2287
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -2263,6 +2293,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2263
2293
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2264
2294
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2265
2295
|
strictExportPresence?: boolean | undefined;
|
|
2296
|
+
worker?: boolean | string[] | undefined;
|
|
2266
2297
|
}, {
|
|
2267
2298
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2268
2299
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -2274,6 +2305,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2274
2305
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2275
2306
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2276
2307
|
strictExportPresence?: boolean | undefined;
|
|
2308
|
+
worker?: boolean | string[] | undefined;
|
|
2277
2309
|
}>>;
|
|
2278
2310
|
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
|
2279
2311
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy", "weak", "lazy-once"]>>;
|
|
@@ -2286,6 +2318,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2286
2318
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
2287
2319
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
2288
2320
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
2321
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
2289
2322
|
}, "strict", z.ZodTypeAny, {
|
|
2290
2323
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2291
2324
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -2297,6 +2330,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2297
2330
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2298
2331
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2299
2332
|
strictExportPresence?: boolean | undefined;
|
|
2333
|
+
worker?: boolean | string[] | undefined;
|
|
2300
2334
|
}, {
|
|
2301
2335
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
2302
2336
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -2308,6 +2342,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2308
2342
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2309
2343
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2310
2344
|
strictExportPresence?: boolean | undefined;
|
|
2345
|
+
worker?: boolean | string[] | undefined;
|
|
2311
2346
|
}>>;
|
|
2312
2347
|
}, "strict", z.ZodTypeAny, {
|
|
2313
2348
|
asset?: {
|
|
@@ -2335,6 +2370,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2335
2370
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2336
2371
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2337
2372
|
strictExportPresence?: boolean | undefined;
|
|
2373
|
+
worker?: boolean | string[] | undefined;
|
|
2338
2374
|
} | undefined;
|
|
2339
2375
|
"javascript/auto"?: {
|
|
2340
2376
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -2347,6 +2383,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2347
2383
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2348
2384
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2349
2385
|
strictExportPresence?: boolean | undefined;
|
|
2386
|
+
worker?: boolean | string[] | undefined;
|
|
2350
2387
|
} | undefined;
|
|
2351
2388
|
"javascript/dynamic"?: {
|
|
2352
2389
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -2359,6 +2396,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2359
2396
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2360
2397
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2361
2398
|
strictExportPresence?: boolean | undefined;
|
|
2399
|
+
worker?: boolean | string[] | undefined;
|
|
2362
2400
|
} | undefined;
|
|
2363
2401
|
"javascript/esm"?: {
|
|
2364
2402
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -2371,6 +2409,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2371
2409
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2372
2410
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2373
2411
|
strictExportPresence?: boolean | undefined;
|
|
2412
|
+
worker?: boolean | string[] | undefined;
|
|
2374
2413
|
} | undefined;
|
|
2375
2414
|
}, {
|
|
2376
2415
|
asset?: {
|
|
@@ -2398,6 +2437,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2398
2437
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2399
2438
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2400
2439
|
strictExportPresence?: boolean | undefined;
|
|
2440
|
+
worker?: boolean | string[] | undefined;
|
|
2401
2441
|
} | undefined;
|
|
2402
2442
|
"javascript/auto"?: {
|
|
2403
2443
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -2410,6 +2450,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2410
2450
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2411
2451
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2412
2452
|
strictExportPresence?: boolean | undefined;
|
|
2453
|
+
worker?: boolean | string[] | undefined;
|
|
2413
2454
|
} | undefined;
|
|
2414
2455
|
"javascript/dynamic"?: {
|
|
2415
2456
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -2422,6 +2463,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2422
2463
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2423
2464
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2424
2465
|
strictExportPresence?: boolean | undefined;
|
|
2466
|
+
worker?: boolean | string[] | undefined;
|
|
2425
2467
|
} | undefined;
|
|
2426
2468
|
"javascript/esm"?: {
|
|
2427
2469
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -2434,6 +2476,7 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2434
2476
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2435
2477
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
2436
2478
|
strictExportPresence?: boolean | undefined;
|
|
2479
|
+
worker?: boolean | string[] | undefined;
|
|
2437
2480
|
} | undefined;
|
|
2438
2481
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>;
|
|
2439
2482
|
export type ParserOptionsByModuleType = z.infer<typeof parserOptionsByModuleType>;
|
|
@@ -3142,6 +3185,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3142
3185
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
3143
3186
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
3144
3187
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
3188
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
3145
3189
|
}, "strict", z.ZodTypeAny, {
|
|
3146
3190
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3147
3191
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -3153,6 +3197,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3153
3197
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3154
3198
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3155
3199
|
strictExportPresence?: boolean | undefined;
|
|
3200
|
+
worker?: boolean | string[] | undefined;
|
|
3156
3201
|
}, {
|
|
3157
3202
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3158
3203
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -3164,6 +3209,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3164
3209
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3165
3210
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3166
3211
|
strictExportPresence?: boolean | undefined;
|
|
3212
|
+
worker?: boolean | string[] | undefined;
|
|
3167
3213
|
}>>;
|
|
3168
3214
|
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
|
3169
3215
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy", "weak", "lazy-once"]>>;
|
|
@@ -3176,6 +3222,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3176
3222
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
3177
3223
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
3178
3224
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
3225
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
3179
3226
|
}, "strict", z.ZodTypeAny, {
|
|
3180
3227
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3181
3228
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -3187,6 +3234,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3187
3234
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3188
3235
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3189
3236
|
strictExportPresence?: boolean | undefined;
|
|
3237
|
+
worker?: boolean | string[] | undefined;
|
|
3190
3238
|
}, {
|
|
3191
3239
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3192
3240
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -3198,6 +3246,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3198
3246
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3199
3247
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3200
3248
|
strictExportPresence?: boolean | undefined;
|
|
3249
|
+
worker?: boolean | string[] | undefined;
|
|
3201
3250
|
}>>;
|
|
3202
3251
|
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
|
3203
3252
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy", "weak", "lazy-once"]>>;
|
|
@@ -3210,6 +3259,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3210
3259
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
3211
3260
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
3212
3261
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
3262
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
3213
3263
|
}, "strict", z.ZodTypeAny, {
|
|
3214
3264
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3215
3265
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -3221,6 +3271,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3221
3271
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3222
3272
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3223
3273
|
strictExportPresence?: boolean | undefined;
|
|
3274
|
+
worker?: boolean | string[] | undefined;
|
|
3224
3275
|
}, {
|
|
3225
3276
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3226
3277
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -3232,6 +3283,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3232
3283
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3233
3284
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3234
3285
|
strictExportPresence?: boolean | undefined;
|
|
3286
|
+
worker?: boolean | string[] | undefined;
|
|
3235
3287
|
}>>;
|
|
3236
3288
|
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
|
3237
3289
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy", "weak", "lazy-once"]>>;
|
|
@@ -3244,6 +3296,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3244
3296
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
3245
3297
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
3246
3298
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
3299
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
3247
3300
|
}, "strict", z.ZodTypeAny, {
|
|
3248
3301
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3249
3302
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -3255,6 +3308,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3255
3308
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3256
3309
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3257
3310
|
strictExportPresence?: boolean | undefined;
|
|
3311
|
+
worker?: boolean | string[] | undefined;
|
|
3258
3312
|
}, {
|
|
3259
3313
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
3260
3314
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -3266,6 +3320,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3266
3320
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3267
3321
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3268
3322
|
strictExportPresence?: boolean | undefined;
|
|
3323
|
+
worker?: boolean | string[] | undefined;
|
|
3269
3324
|
}>>;
|
|
3270
3325
|
}, "strict", z.ZodTypeAny, {
|
|
3271
3326
|
asset?: {
|
|
@@ -3293,6 +3348,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3293
3348
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3294
3349
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3295
3350
|
strictExportPresence?: boolean | undefined;
|
|
3351
|
+
worker?: boolean | string[] | undefined;
|
|
3296
3352
|
} | undefined;
|
|
3297
3353
|
"javascript/auto"?: {
|
|
3298
3354
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -3305,6 +3361,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3305
3361
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3306
3362
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3307
3363
|
strictExportPresence?: boolean | undefined;
|
|
3364
|
+
worker?: boolean | string[] | undefined;
|
|
3308
3365
|
} | undefined;
|
|
3309
3366
|
"javascript/dynamic"?: {
|
|
3310
3367
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -3317,6 +3374,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3317
3374
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3318
3375
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3319
3376
|
strictExportPresence?: boolean | undefined;
|
|
3377
|
+
worker?: boolean | string[] | undefined;
|
|
3320
3378
|
} | undefined;
|
|
3321
3379
|
"javascript/esm"?: {
|
|
3322
3380
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -3329,6 +3387,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3329
3387
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3330
3388
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3331
3389
|
strictExportPresence?: boolean | undefined;
|
|
3390
|
+
worker?: boolean | string[] | undefined;
|
|
3332
3391
|
} | undefined;
|
|
3333
3392
|
}, {
|
|
3334
3393
|
asset?: {
|
|
@@ -3356,6 +3415,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3356
3415
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3357
3416
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3358
3417
|
strictExportPresence?: boolean | undefined;
|
|
3418
|
+
worker?: boolean | string[] | undefined;
|
|
3359
3419
|
} | undefined;
|
|
3360
3420
|
"javascript/auto"?: {
|
|
3361
3421
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -3368,6 +3428,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3368
3428
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3369
3429
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3370
3430
|
strictExportPresence?: boolean | undefined;
|
|
3431
|
+
worker?: boolean | string[] | undefined;
|
|
3371
3432
|
} | undefined;
|
|
3372
3433
|
"javascript/dynamic"?: {
|
|
3373
3434
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -3380,6 +3441,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3380
3441
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3381
3442
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3382
3443
|
strictExportPresence?: boolean | undefined;
|
|
3444
|
+
worker?: boolean | string[] | undefined;
|
|
3383
3445
|
} | undefined;
|
|
3384
3446
|
"javascript/esm"?: {
|
|
3385
3447
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -3392,6 +3454,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3392
3454
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3393
3455
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3394
3456
|
strictExportPresence?: boolean | undefined;
|
|
3457
|
+
worker?: boolean | string[] | undefined;
|
|
3395
3458
|
} | undefined;
|
|
3396
3459
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>>;
|
|
3397
3460
|
generator: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -3650,6 +3713,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3650
3713
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3651
3714
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3652
3715
|
strictExportPresence?: boolean | undefined;
|
|
3716
|
+
worker?: boolean | string[] | undefined;
|
|
3653
3717
|
} | undefined;
|
|
3654
3718
|
"javascript/auto"?: {
|
|
3655
3719
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -3662,6 +3726,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3662
3726
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3663
3727
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3664
3728
|
strictExportPresence?: boolean | undefined;
|
|
3729
|
+
worker?: boolean | string[] | undefined;
|
|
3665
3730
|
} | undefined;
|
|
3666
3731
|
"javascript/dynamic"?: {
|
|
3667
3732
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -3674,6 +3739,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3674
3739
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3675
3740
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3676
3741
|
strictExportPresence?: boolean | undefined;
|
|
3742
|
+
worker?: boolean | string[] | undefined;
|
|
3677
3743
|
} | undefined;
|
|
3678
3744
|
"javascript/esm"?: {
|
|
3679
3745
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -3686,6 +3752,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3686
3752
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3687
3753
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3688
3754
|
strictExportPresence?: boolean | undefined;
|
|
3755
|
+
worker?: boolean | string[] | undefined;
|
|
3689
3756
|
} | undefined;
|
|
3690
3757
|
} | Record<string, Record<string, any>> | undefined;
|
|
3691
3758
|
generator?: Record<string, Record<string, any>> | {
|
|
@@ -3762,6 +3829,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3762
3829
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3763
3830
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3764
3831
|
strictExportPresence?: boolean | undefined;
|
|
3832
|
+
worker?: boolean | string[] | undefined;
|
|
3765
3833
|
} | undefined;
|
|
3766
3834
|
"javascript/auto"?: {
|
|
3767
3835
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -3774,6 +3842,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3774
3842
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3775
3843
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3776
3844
|
strictExportPresence?: boolean | undefined;
|
|
3845
|
+
worker?: boolean | string[] | undefined;
|
|
3777
3846
|
} | undefined;
|
|
3778
3847
|
"javascript/dynamic"?: {
|
|
3779
3848
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -3786,6 +3855,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3786
3855
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3787
3856
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3788
3857
|
strictExportPresence?: boolean | undefined;
|
|
3858
|
+
worker?: boolean | string[] | undefined;
|
|
3789
3859
|
} | undefined;
|
|
3790
3860
|
"javascript/esm"?: {
|
|
3791
3861
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -3798,6 +3868,7 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3798
3868
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3799
3869
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
3800
3870
|
strictExportPresence?: boolean | undefined;
|
|
3871
|
+
worker?: boolean | string[] | undefined;
|
|
3801
3872
|
} | undefined;
|
|
3802
3873
|
} | Record<string, Record<string, any>> | undefined;
|
|
3803
3874
|
generator?: Record<string, Record<string, any>> | {
|
|
@@ -6656,6 +6727,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6656
6727
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
6657
6728
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
6658
6729
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
6730
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
6659
6731
|
}, "strict", z.ZodTypeAny, {
|
|
6660
6732
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
6661
6733
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -6667,6 +6739,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6667
6739
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6668
6740
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6669
6741
|
strictExportPresence?: boolean | undefined;
|
|
6742
|
+
worker?: boolean | string[] | undefined;
|
|
6670
6743
|
}, {
|
|
6671
6744
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
6672
6745
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -6678,6 +6751,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6678
6751
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6679
6752
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6680
6753
|
strictExportPresence?: boolean | undefined;
|
|
6754
|
+
worker?: boolean | string[] | undefined;
|
|
6681
6755
|
}>>;
|
|
6682
6756
|
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
|
6683
6757
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy", "weak", "lazy-once"]>>;
|
|
@@ -6690,6 +6764,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6690
6764
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
6691
6765
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
6692
6766
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
6767
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
6693
6768
|
}, "strict", z.ZodTypeAny, {
|
|
6694
6769
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
6695
6770
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -6701,6 +6776,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6701
6776
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6702
6777
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6703
6778
|
strictExportPresence?: boolean | undefined;
|
|
6779
|
+
worker?: boolean | string[] | undefined;
|
|
6704
6780
|
}, {
|
|
6705
6781
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
6706
6782
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -6712,6 +6788,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6712
6788
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6713
6789
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6714
6790
|
strictExportPresence?: boolean | undefined;
|
|
6791
|
+
worker?: boolean | string[] | undefined;
|
|
6715
6792
|
}>>;
|
|
6716
6793
|
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
|
6717
6794
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy", "weak", "lazy-once"]>>;
|
|
@@ -6724,6 +6801,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6724
6801
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
6725
6802
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
6726
6803
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
6804
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
6727
6805
|
}, "strict", z.ZodTypeAny, {
|
|
6728
6806
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
6729
6807
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -6735,6 +6813,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6735
6813
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6736
6814
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6737
6815
|
strictExportPresence?: boolean | undefined;
|
|
6816
|
+
worker?: boolean | string[] | undefined;
|
|
6738
6817
|
}, {
|
|
6739
6818
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
6740
6819
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -6746,6 +6825,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6746
6825
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6747
6826
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6748
6827
|
strictExportPresence?: boolean | undefined;
|
|
6828
|
+
worker?: boolean | string[] | undefined;
|
|
6749
6829
|
}>>;
|
|
6750
6830
|
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
|
6751
6831
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy", "weak", "lazy-once"]>>;
|
|
@@ -6758,6 +6838,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6758
6838
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
6759
6839
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
|
6760
6840
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
|
6841
|
+
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodBoolean]>>;
|
|
6761
6842
|
}, "strict", z.ZodTypeAny, {
|
|
6762
6843
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
6763
6844
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -6769,6 +6850,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6769
6850
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6770
6851
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6771
6852
|
strictExportPresence?: boolean | undefined;
|
|
6853
|
+
worker?: boolean | string[] | undefined;
|
|
6772
6854
|
}, {
|
|
6773
6855
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
6774
6856
|
dynamicImportPreload?: number | boolean | undefined;
|
|
@@ -6780,6 +6862,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6780
6862
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6781
6863
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6782
6864
|
strictExportPresence?: boolean | undefined;
|
|
6865
|
+
worker?: boolean | string[] | undefined;
|
|
6783
6866
|
}>>;
|
|
6784
6867
|
}, "strict", z.ZodTypeAny, {
|
|
6785
6868
|
asset?: {
|
|
@@ -6807,6 +6890,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6807
6890
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6808
6891
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6809
6892
|
strictExportPresence?: boolean | undefined;
|
|
6893
|
+
worker?: boolean | string[] | undefined;
|
|
6810
6894
|
} | undefined;
|
|
6811
6895
|
"javascript/auto"?: {
|
|
6812
6896
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -6819,6 +6903,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6819
6903
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6820
6904
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6821
6905
|
strictExportPresence?: boolean | undefined;
|
|
6906
|
+
worker?: boolean | string[] | undefined;
|
|
6822
6907
|
} | undefined;
|
|
6823
6908
|
"javascript/dynamic"?: {
|
|
6824
6909
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -6831,6 +6916,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6831
6916
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6832
6917
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6833
6918
|
strictExportPresence?: boolean | undefined;
|
|
6919
|
+
worker?: boolean | string[] | undefined;
|
|
6834
6920
|
} | undefined;
|
|
6835
6921
|
"javascript/esm"?: {
|
|
6836
6922
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -6843,6 +6929,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6843
6929
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6844
6930
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6845
6931
|
strictExportPresence?: boolean | undefined;
|
|
6932
|
+
worker?: boolean | string[] | undefined;
|
|
6846
6933
|
} | undefined;
|
|
6847
6934
|
}, {
|
|
6848
6935
|
asset?: {
|
|
@@ -6870,6 +6957,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6870
6957
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6871
6958
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6872
6959
|
strictExportPresence?: boolean | undefined;
|
|
6960
|
+
worker?: boolean | string[] | undefined;
|
|
6873
6961
|
} | undefined;
|
|
6874
6962
|
"javascript/auto"?: {
|
|
6875
6963
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -6882,6 +6970,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6882
6970
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6883
6971
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6884
6972
|
strictExportPresence?: boolean | undefined;
|
|
6973
|
+
worker?: boolean | string[] | undefined;
|
|
6885
6974
|
} | undefined;
|
|
6886
6975
|
"javascript/dynamic"?: {
|
|
6887
6976
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -6894,6 +6983,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6894
6983
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6895
6984
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6896
6985
|
strictExportPresence?: boolean | undefined;
|
|
6986
|
+
worker?: boolean | string[] | undefined;
|
|
6897
6987
|
} | undefined;
|
|
6898
6988
|
"javascript/esm"?: {
|
|
6899
6989
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -6906,6 +6996,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6906
6996
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6907
6997
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
6908
6998
|
strictExportPresence?: boolean | undefined;
|
|
6999
|
+
worker?: boolean | string[] | undefined;
|
|
6909
7000
|
} | undefined;
|
|
6910
7001
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>>;
|
|
6911
7002
|
generator: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -7164,6 +7255,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7164
7255
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7165
7256
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7166
7257
|
strictExportPresence?: boolean | undefined;
|
|
7258
|
+
worker?: boolean | string[] | undefined;
|
|
7167
7259
|
} | undefined;
|
|
7168
7260
|
"javascript/auto"?: {
|
|
7169
7261
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -7176,6 +7268,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7176
7268
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7177
7269
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7178
7270
|
strictExportPresence?: boolean | undefined;
|
|
7271
|
+
worker?: boolean | string[] | undefined;
|
|
7179
7272
|
} | undefined;
|
|
7180
7273
|
"javascript/dynamic"?: {
|
|
7181
7274
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -7188,6 +7281,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7188
7281
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7189
7282
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7190
7283
|
strictExportPresence?: boolean | undefined;
|
|
7284
|
+
worker?: boolean | string[] | undefined;
|
|
7191
7285
|
} | undefined;
|
|
7192
7286
|
"javascript/esm"?: {
|
|
7193
7287
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -7200,6 +7294,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7200
7294
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7201
7295
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7202
7296
|
strictExportPresence?: boolean | undefined;
|
|
7297
|
+
worker?: boolean | string[] | undefined;
|
|
7203
7298
|
} | undefined;
|
|
7204
7299
|
} | Record<string, Record<string, any>> | undefined;
|
|
7205
7300
|
generator?: Record<string, Record<string, any>> | {
|
|
@@ -7276,6 +7371,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7276
7371
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7277
7372
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7278
7373
|
strictExportPresence?: boolean | undefined;
|
|
7374
|
+
worker?: boolean | string[] | undefined;
|
|
7279
7375
|
} | undefined;
|
|
7280
7376
|
"javascript/auto"?: {
|
|
7281
7377
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -7288,6 +7384,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7288
7384
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7289
7385
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7290
7386
|
strictExportPresence?: boolean | undefined;
|
|
7387
|
+
worker?: boolean | string[] | undefined;
|
|
7291
7388
|
} | undefined;
|
|
7292
7389
|
"javascript/dynamic"?: {
|
|
7293
7390
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -7300,6 +7397,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7300
7397
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7301
7398
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7302
7399
|
strictExportPresence?: boolean | undefined;
|
|
7400
|
+
worker?: boolean | string[] | undefined;
|
|
7303
7401
|
} | undefined;
|
|
7304
7402
|
"javascript/esm"?: {
|
|
7305
7403
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -7312,6 +7410,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7312
7410
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7313
7411
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7314
7412
|
strictExportPresence?: boolean | undefined;
|
|
7413
|
+
worker?: boolean | string[] | undefined;
|
|
7315
7414
|
} | undefined;
|
|
7316
7415
|
} | Record<string, Record<string, any>> | undefined;
|
|
7317
7416
|
generator?: Record<string, Record<string, any>> | {
|
|
@@ -7771,6 +7870,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7771
7870
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7772
7871
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7773
7872
|
strictExportPresence?: boolean | undefined;
|
|
7873
|
+
worker?: boolean | string[] | undefined;
|
|
7774
7874
|
} | undefined;
|
|
7775
7875
|
"javascript/auto"?: {
|
|
7776
7876
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -7783,6 +7883,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7783
7883
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7784
7884
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7785
7885
|
strictExportPresence?: boolean | undefined;
|
|
7886
|
+
worker?: boolean | string[] | undefined;
|
|
7786
7887
|
} | undefined;
|
|
7787
7888
|
"javascript/dynamic"?: {
|
|
7788
7889
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -7795,6 +7896,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7795
7896
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7796
7897
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7797
7898
|
strictExportPresence?: boolean | undefined;
|
|
7899
|
+
worker?: boolean | string[] | undefined;
|
|
7798
7900
|
} | undefined;
|
|
7799
7901
|
"javascript/esm"?: {
|
|
7800
7902
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -7807,6 +7909,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7807
7909
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7808
7910
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
7809
7911
|
strictExportPresence?: boolean | undefined;
|
|
7912
|
+
worker?: boolean | string[] | undefined;
|
|
7810
7913
|
} | undefined;
|
|
7811
7914
|
} | Record<string, Record<string, any>> | undefined;
|
|
7812
7915
|
generator?: Record<string, Record<string, any>> | {
|
|
@@ -8256,6 +8359,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
8256
8359
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
8257
8360
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
8258
8361
|
strictExportPresence?: boolean | undefined;
|
|
8362
|
+
worker?: boolean | string[] | undefined;
|
|
8259
8363
|
} | undefined;
|
|
8260
8364
|
"javascript/auto"?: {
|
|
8261
8365
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -8268,6 +8372,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
8268
8372
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
8269
8373
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
8270
8374
|
strictExportPresence?: boolean | undefined;
|
|
8375
|
+
worker?: boolean | string[] | undefined;
|
|
8271
8376
|
} | undefined;
|
|
8272
8377
|
"javascript/dynamic"?: {
|
|
8273
8378
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -8280,6 +8385,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
8280
8385
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
8281
8386
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
8282
8387
|
strictExportPresence?: boolean | undefined;
|
|
8388
|
+
worker?: boolean | string[] | undefined;
|
|
8283
8389
|
} | undefined;
|
|
8284
8390
|
"javascript/esm"?: {
|
|
8285
8391
|
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
|
|
@@ -8292,6 +8398,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
8292
8398
|
importExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
8293
8399
|
reexportExportsPresence?: false | "error" | "warn" | "auto" | undefined;
|
|
8294
8400
|
strictExportPresence?: boolean | undefined;
|
|
8401
|
+
worker?: boolean | string[] | undefined;
|
|
8295
8402
|
} | undefined;
|
|
8296
8403
|
} | Record<string, Record<string, any>> | undefined;
|
|
8297
8404
|
generator?: Record<string, Record<string, any>> | {
|
package/dist/config/zod.js
CHANGED
|
@@ -345,6 +345,7 @@ const reexportExportsPresence = zod_1.z
|
|
|
345
345
|
.enum(["error", "warn", "auto"])
|
|
346
346
|
.or(zod_1.z.literal(false));
|
|
347
347
|
const strictExportPresence = zod_1.z.boolean();
|
|
348
|
+
const worker = zod_1.z.array(zod_1.z.string()).or(zod_1.z.boolean());
|
|
348
349
|
const javascriptParserOptions = zod_1.z.strictObject({
|
|
349
350
|
dynamicImportMode: dynamicImportMode.optional(),
|
|
350
351
|
dynamicImportPreload: dynamicImportPreload.optional(),
|
|
@@ -355,7 +356,8 @@ const javascriptParserOptions = zod_1.z.strictObject({
|
|
|
355
356
|
exportsPresence: exportsPresence.optional(),
|
|
356
357
|
importExportsPresence: importExportsPresence.optional(),
|
|
357
358
|
reexportExportsPresence: reexportExportsPresence.optional(),
|
|
358
|
-
strictExportPresence: strictExportPresence.optional()
|
|
359
|
+
strictExportPresence: strictExportPresence.optional(),
|
|
360
|
+
worker: worker.optional()
|
|
359
361
|
});
|
|
360
362
|
const parserOptionsByModuleTypeKnown = zod_1.z.strictObject({
|
|
361
363
|
asset: assetParserOptions.optional(),
|
|
@@ -32,6 +32,7 @@ const binding_1 = require("@rspack/binding");
|
|
|
32
32
|
const webpack_sources_1 = require("webpack-sources");
|
|
33
33
|
const Module_1 = require("../Module");
|
|
34
34
|
const NormalModule_1 = require("../NormalModule");
|
|
35
|
+
const RspackError_1 = require("../RspackError");
|
|
35
36
|
const adapterRuleUse_1 = require("../config/adapterRuleUse");
|
|
36
37
|
const util_2 = require("../util");
|
|
37
38
|
const createHash_1 = require("../util/createHash");
|
|
@@ -517,14 +518,34 @@ async function runLoaders(compiler, context) {
|
|
|
517
518
|
};
|
|
518
519
|
loaderContext.rootContext = compiler.context;
|
|
519
520
|
loaderContext.emitError = function emitError(error) {
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
521
|
+
if (!(error instanceof Error)) {
|
|
522
|
+
error = new RspackError_1.NonErrorEmittedError(error);
|
|
523
|
+
}
|
|
524
|
+
let hasStack = !!error.stack;
|
|
525
|
+
error.name = "ModuleError";
|
|
526
|
+
error.message = `${error.message} (from: ${(0, util_2.stringifyLoaderObject)(loaderContext.loaders[loaderContext.loaderIndex])})`;
|
|
527
|
+
hasStack && Error.captureStackTrace(error);
|
|
528
|
+
error = (0, util_2.concatErrorMsgAndStack)(error);
|
|
529
|
+
error.moduleIdentifier = this._module.identifier();
|
|
530
|
+
compiler._lastCompilation.__internal__pushDiagnostic({
|
|
531
|
+
error,
|
|
532
|
+
severity: binding_1.JsRspackSeverity.Error
|
|
533
|
+
});
|
|
523
534
|
};
|
|
524
535
|
loaderContext.emitWarning = function emitWarning(warning) {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
536
|
+
if (!(warning instanceof Error)) {
|
|
537
|
+
warning = new RspackError_1.NonErrorEmittedError(warning);
|
|
538
|
+
}
|
|
539
|
+
let hasStack = !!warning.stack;
|
|
540
|
+
warning.name = "ModuleWarning";
|
|
541
|
+
warning.message = `${warning.message} (from: ${(0, util_2.stringifyLoaderObject)(loaderContext.loaders[loaderContext.loaderIndex])})`;
|
|
542
|
+
hasStack && Error.captureStackTrace(warning);
|
|
543
|
+
warning = (0, util_2.concatErrorMsgAndStack)(warning);
|
|
544
|
+
warning.moduleIdentifier = this._module.identifier();
|
|
545
|
+
compiler._lastCompilation.__internal__pushDiagnostic({
|
|
546
|
+
error: warning,
|
|
547
|
+
severity: binding_1.JsRspackSeverity.Warn
|
|
548
|
+
});
|
|
528
549
|
};
|
|
529
550
|
loaderContext.emitFile = function emitFile(name, content, sourceMap, assetInfo) {
|
|
530
551
|
let source;
|
|
@@ -357,13 +357,13 @@ const SIMPLE_PRINTERS = {
|
|
|
357
357
|
// chunkEntry ? formatFlag("entry") : undefined,
|
|
358
358
|
// "error.chunkInitial": (chunkInitial, { formatFlag }) =>
|
|
359
359
|
// chunkInitial ? formatFlag("initial") : undefined,
|
|
360
|
-
|
|
360
|
+
"error.file": (file, { bold }) => bold(file),
|
|
361
361
|
"error.moduleName": (moduleName, { bold }) => {
|
|
362
362
|
return moduleName.includes("!")
|
|
363
363
|
? `${bold(moduleName.replace(/^(\s|\S)*!/, ""))} (${moduleName})`
|
|
364
364
|
: `${bold(moduleName)}`;
|
|
365
365
|
},
|
|
366
|
-
|
|
366
|
+
"error.loc": (loc, { green }) => green(loc),
|
|
367
367
|
"error.message": (message, { bold, formatError }) => message.includes("\u001b[") ? message : bold(formatError(message)),
|
|
368
368
|
// "error.details": (details, { formatError }) => formatError(details),
|
|
369
369
|
// "error.stack": stack => stack,
|
package/dist/util/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import type { JsStatsError } from "@rspack/binding";
|
|
2
|
+
import type { JsRspackError, JsStatsError } from "@rspack/binding";
|
|
3
3
|
import { LoaderObject } from "../loader-runner";
|
|
4
4
|
export declare function mapValues(record: Record<string, string>, fn: (key: string) => string): {
|
|
5
5
|
[k: string]: string;
|
|
@@ -10,7 +10,7 @@ export declare const toObject: (input: string | Buffer | object) => object;
|
|
|
10
10
|
export declare function serializeObject(map: string | object | undefined | null): Buffer | undefined;
|
|
11
11
|
export declare function isPromiseLike(value: unknown): value is Promise<any>;
|
|
12
12
|
export declare function isJsStatsError(err: any): err is JsStatsError;
|
|
13
|
-
export declare function concatErrorMsgAndStack(err: Error |
|
|
13
|
+
export declare function concatErrorMsgAndStack(err: Error | JsRspackError | string): JsRspackError;
|
|
14
14
|
export declare function indent(str: string, prefix: string): string;
|
|
15
15
|
export declare function stringifyLoaderObject(o: LoaderObject): string;
|
|
16
16
|
export declare function asArray<T>(item: T[]): T[];
|
package/dist/util/index.js
CHANGED
|
@@ -61,12 +61,13 @@ function isJsStatsError(err) {
|
|
|
61
61
|
exports.isJsStatsError = isJsStatsError;
|
|
62
62
|
function concatErrorMsgAndStack(err) {
|
|
63
63
|
if (typeof err === "string") {
|
|
64
|
-
return err;
|
|
64
|
+
return new Error(err);
|
|
65
65
|
}
|
|
66
66
|
if ("stack" in err) {
|
|
67
|
-
|
|
67
|
+
err.message = err.stack || err.message;
|
|
68
|
+
return err;
|
|
68
69
|
}
|
|
69
|
-
return err
|
|
70
|
+
return err;
|
|
70
71
|
}
|
|
71
72
|
exports.concatErrorMsgAndStack = concatErrorMsgAndStack;
|
|
72
73
|
function indent(str, prefix) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "0.7.5-canary-
|
|
3
|
+
"version": "0.7.5-canary-0d03907-20240624125011",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -78,15 +78,15 @@
|
|
|
78
78
|
"watchpack": "^2.4.0",
|
|
79
79
|
"zod": "^3.21.4",
|
|
80
80
|
"zod-validation-error": "1.3.1",
|
|
81
|
-
"@rspack/plugin-minify": "^0.7.5-canary-
|
|
82
|
-
"@rspack/core": "0.7.5-canary-
|
|
81
|
+
"@rspack/plugin-minify": "^0.7.5-canary-0d03907-20240624125011",
|
|
82
|
+
"@rspack/core": "0.7.5-canary-0d03907-20240624125011"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@module-federation/runtime-tools": "0.1.6",
|
|
86
86
|
"caniuse-lite": "^1.0.30001616",
|
|
87
87
|
"tapable": "2.2.1",
|
|
88
88
|
"webpack-sources": "3.2.3",
|
|
89
|
-
"@rspack/binding": "0.7.5-canary-
|
|
89
|
+
"@rspack/binding": "0.7.5-canary-0d03907-20240624125011"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"@swc/helpers": ">=0.5.1"
|