@rspack/core 0.6.3-canary-332b127-20240424004510 → 0.6.3-canary-bc61872-20240425005651
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 +3 -26
- package/dist/Compilation.js +165 -52
- package/dist/Compiler.js +15 -13
- package/dist/config/adapter.js +22 -2
- package/dist/config/defaults.js +17 -2
- package/dist/config/zod.d.ts +658 -0
- package/dist/config/zod.js +9 -2
- package/package.json +4 -4
package/dist/Compilation.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import * as tapable from "tapable";
|
|
12
12
|
import { Source } from "webpack-sources";
|
|
13
|
-
import type { ExternalObject, JsAssetInfo, JsCompilation, JsModule, JsRuntimeModule, JsStatsChunk,
|
|
13
|
+
import type { ExternalObject, JsAssetInfo, JsCompilation, JsModule, JsRuntimeModule, JsStatsChunk, JsPathData, JsStatsWarning } from "@rspack/binding";
|
|
14
14
|
import { RspackOptionsNormalized, StatsOptions, OutputNormalized, StatsValue, RspackPluginInstance, Filename } from "./config";
|
|
15
15
|
import * as liteTapable from "./lite-tapable";
|
|
16
16
|
import { ContextModuleFactory } from "./ContextModuleFactory";
|
|
@@ -162,31 +162,8 @@ export declare class Compilation {
|
|
|
162
162
|
getAsset(name: string): Asset | void;
|
|
163
163
|
pushDiagnostic(severity: "error" | "warning", title: string, message: string): void;
|
|
164
164
|
__internal__pushNativeDiagnostics(diagnostics: ExternalObject<any>): void;
|
|
165
|
-
get errors():
|
|
166
|
-
|
|
167
|
-
readonly length: number;
|
|
168
|
-
[Symbol.iterator](): {
|
|
169
|
-
next(): {
|
|
170
|
-
done: boolean;
|
|
171
|
-
value?: undefined;
|
|
172
|
-
} | {
|
|
173
|
-
value: JsStatsError;
|
|
174
|
-
done: boolean;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
get warnings(): {
|
|
179
|
-
push: (...warns: (Error | JsStatsError)[]) => void;
|
|
180
|
-
[Symbol.iterator](): {
|
|
181
|
-
next(): {
|
|
182
|
-
done: boolean;
|
|
183
|
-
value?: undefined;
|
|
184
|
-
} | {
|
|
185
|
-
value: import("@rspack/binding").JsStatsWarning[];
|
|
186
|
-
done: boolean;
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
};
|
|
165
|
+
get errors(): any;
|
|
166
|
+
get warnings(): JsStatsWarning[];
|
|
190
167
|
getPath(filename: Filename, data?: PathData): string;
|
|
191
168
|
getPathWithInfo(filename: Filename, data?: PathData): import("@rspack/binding").PathWithInfo;
|
|
192
169
|
getAssetPath(filename: Filename, data?: PathData): string;
|
package/dist/Compilation.js
CHANGED
|
@@ -362,72 +362,185 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
362
362
|
}
|
|
363
363
|
get errors() {
|
|
364
364
|
const inner = __classPrivateFieldGet(this, _Compilation_inner, "f");
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
365
|
+
const errors = inner.getStats().getErrors();
|
|
366
|
+
const proxyMethod = [
|
|
367
|
+
{
|
|
368
|
+
method: "push",
|
|
369
|
+
handler(target, thisArg, errs) {
|
|
370
|
+
for (let i = 0; i < errs.length; i++) {
|
|
371
|
+
const error = errs[i];
|
|
372
|
+
if ((0, util_1.isJsStatsError)(error)) {
|
|
373
|
+
inner.pushDiagnostic("error", "Error", (0, util_1.concatErrorMsgAndStack)(error));
|
|
374
|
+
}
|
|
375
|
+
else if (typeof error === "string") {
|
|
376
|
+
inner.pushDiagnostic("error", "Error", error);
|
|
377
|
+
}
|
|
378
|
+
else {
|
|
379
|
+
inner.pushDiagnostic("error", error.name, (0, util_1.concatErrorMsgAndStack)(error));
|
|
380
|
+
}
|
|
378
381
|
}
|
|
382
|
+
return Reflect.apply(target, thisArg, errs);
|
|
379
383
|
}
|
|
380
384
|
},
|
|
381
|
-
|
|
382
|
-
|
|
385
|
+
{
|
|
386
|
+
method: "pop",
|
|
387
|
+
handler(target, thisArg) {
|
|
388
|
+
inner.spliceDiagnostic(errors.length - 1, errors.length, []);
|
|
389
|
+
return Reflect.apply(target, thisArg, []);
|
|
390
|
+
}
|
|
383
391
|
},
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
+
{
|
|
393
|
+
method: "shift",
|
|
394
|
+
handler(target, thisArg) {
|
|
395
|
+
inner.spliceDiagnostic(0, 1, []);
|
|
396
|
+
return Reflect.apply(target, thisArg, []);
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
method: "unshift",
|
|
401
|
+
handler(target, thisArg, errs) {
|
|
402
|
+
const errList = errs.map(error => {
|
|
403
|
+
if ((0, util_1.isJsStatsError)(error)) {
|
|
404
|
+
return {
|
|
405
|
+
severity: "error",
|
|
406
|
+
title: "Error",
|
|
407
|
+
message: (0, util_1.concatErrorMsgAndStack)(error)
|
|
408
|
+
};
|
|
392
409
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
410
|
+
else if (typeof error === "string") {
|
|
411
|
+
return {
|
|
412
|
+
severity: "error",
|
|
413
|
+
title: "Error",
|
|
414
|
+
message: error
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
else {
|
|
418
|
+
return {
|
|
419
|
+
severity: "error",
|
|
420
|
+
title: error.name,
|
|
421
|
+
message: (0, util_1.concatErrorMsgAndStack)(error)
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
inner.spliceDiagnostic(0, 0, errList);
|
|
426
|
+
return Reflect.apply(target, thisArg, errs);
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
method: "splice",
|
|
431
|
+
handler(target, thisArg, [startIdx, delCount, ...errors]) {
|
|
432
|
+
const errList = errors.map(error => {
|
|
433
|
+
if ((0, util_1.isJsStatsError)(error)) {
|
|
434
|
+
return {
|
|
435
|
+
severity: "error",
|
|
436
|
+
title: "Error",
|
|
437
|
+
message: (0, util_1.concatErrorMsgAndStack)(error)
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
else if (typeof error === "string") {
|
|
441
|
+
return {
|
|
442
|
+
severity: "error",
|
|
443
|
+
title: "Error",
|
|
444
|
+
message: error
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
return {
|
|
449
|
+
severity: "error",
|
|
450
|
+
title: error.name,
|
|
451
|
+
message: (0, util_1.concatErrorMsgAndStack)(error)
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
inner.spliceDiagnostic(startIdx, startIdx + delCount, errList);
|
|
456
|
+
return Reflect.apply(target, thisArg, [
|
|
457
|
+
startIdx,
|
|
458
|
+
delCount,
|
|
459
|
+
...errors
|
|
460
|
+
]);
|
|
461
|
+
}
|
|
399
462
|
}
|
|
400
|
-
|
|
463
|
+
];
|
|
464
|
+
proxyMethod.forEach(item => {
|
|
465
|
+
const proxyedMethod = new Proxy(errors[item.method], {
|
|
466
|
+
apply: item.handler
|
|
467
|
+
});
|
|
468
|
+
errors[item.method] = proxyedMethod;
|
|
469
|
+
});
|
|
470
|
+
return errors;
|
|
401
471
|
}
|
|
402
472
|
get warnings() {
|
|
403
473
|
const inner = __classPrivateFieldGet(this, _Compilation_inner, "f");
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
474
|
+
const processWarningsHook = this.hooks.processWarnings;
|
|
475
|
+
const warnings = inner.getStats().getWarnings();
|
|
476
|
+
const proxyMethod = [
|
|
477
|
+
{
|
|
478
|
+
method: "push",
|
|
479
|
+
handler(target, thisArg, warns) {
|
|
480
|
+
warns = processWarningsHook.call(warns);
|
|
481
|
+
for (let i = 0; i < warns.length; i++) {
|
|
482
|
+
const warn = warns[i];
|
|
483
|
+
inner.pushDiagnostic("warning", (0, util_1.isJsStatsError)(warn) ? "Warning" : warn.name, (0, util_1.concatErrorMsgAndStack)(warn));
|
|
484
|
+
}
|
|
485
|
+
return Reflect.apply(target, thisArg, warns);
|
|
412
486
|
}
|
|
413
487
|
},
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
488
|
+
{
|
|
489
|
+
method: "pop",
|
|
490
|
+
handler(target, thisArg) {
|
|
491
|
+
inner.spliceDiagnostic(warnings.length - 1, warnings.length, []);
|
|
492
|
+
return Reflect.apply(target, thisArg, []);
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
method: "shift",
|
|
497
|
+
handler(target, thisArg) {
|
|
498
|
+
inner.spliceDiagnostic(0, 1, []);
|
|
499
|
+
return Reflect.apply(target, thisArg, []);
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
method: "unshift",
|
|
504
|
+
handler(target, thisArg, warns) {
|
|
505
|
+
warns = processWarningsHook.call(warns);
|
|
506
|
+
const warnList = warns.map(warn => {
|
|
423
507
|
return {
|
|
424
|
-
|
|
425
|
-
|
|
508
|
+
severity: "warning",
|
|
509
|
+
title: (0, util_1.isJsStatsError)(warn) ? "Warning" : warn.name,
|
|
510
|
+
message: (0, util_1.concatErrorMsgAndStack)(warn)
|
|
426
511
|
};
|
|
427
|
-
}
|
|
428
|
-
|
|
512
|
+
});
|
|
513
|
+
inner.spliceDiagnostic(0, 0, warnList);
|
|
514
|
+
return Reflect.apply(target, thisArg, warns);
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
method: "splice",
|
|
519
|
+
handler(target, thisArg, [startIdx, delCount, ...warns]) {
|
|
520
|
+
warns = processWarningsHook.call(warns);
|
|
521
|
+
const warnList = warns.map(warn => {
|
|
522
|
+
return {
|
|
523
|
+
severity: "warning",
|
|
524
|
+
title: (0, util_1.isJsStatsError)(warn) ? "Warning" : warn.name,
|
|
525
|
+
message: (0, util_1.concatErrorMsgAndStack)(warn)
|
|
526
|
+
};
|
|
527
|
+
});
|
|
528
|
+
inner.spliceDiagnostic(startIdx, startIdx + delCount, warnList);
|
|
529
|
+
return Reflect.apply(target, thisArg, [
|
|
530
|
+
startIdx,
|
|
531
|
+
delCount,
|
|
532
|
+
...warnList
|
|
533
|
+
]);
|
|
534
|
+
}
|
|
429
535
|
}
|
|
430
|
-
|
|
536
|
+
];
|
|
537
|
+
proxyMethod.forEach(item => {
|
|
538
|
+
const proxyedMethod = new Proxy(warnings[item.method], {
|
|
539
|
+
apply: item.handler
|
|
540
|
+
});
|
|
541
|
+
warnings[item.method] = proxyedMethod;
|
|
542
|
+
});
|
|
543
|
+
return warnings;
|
|
431
544
|
}
|
|
432
545
|
getPath(filename, data = {}) {
|
|
433
546
|
return __classPrivateFieldGet(this, _Compilation_inner, "f").getPath(filename, data);
|
package/dist/Compiler.js
CHANGED
|
@@ -496,19 +496,21 @@ _Compiler_instance = new WeakMap(), _Compiler_initial = new WeakMap(), _Compiler
|
|
|
496
496
|
registerCompilerShouldEmitTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createHookRegisterTaps).call(this, binding.RegisterJsTapKind.CompilerShouldEmit, () => this.hooks.shouldEmit, queried => () => queried.call(this.compilation)),
|
|
497
497
|
registerCompilerEmitTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createHookRegisterTaps).call(this, binding.RegisterJsTapKind.CompilerEmit, () => this.hooks.emit, queried => async () => await queried.promise(this.compilation)),
|
|
498
498
|
registerCompilerAfterEmitTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createHookRegisterTaps).call(this, binding.RegisterJsTapKind.CompilerAfterEmit, () => this.hooks.afterEmit, queried => async () => await queried.promise(this.compilation)),
|
|
499
|
-
registerCompilerAssetEmittedTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createHookRegisterTaps).call(this, binding.RegisterJsTapKind.CompilerAssetEmitted, () => this.hooks.assetEmitted, queried => async ({ filename, targetPath, outputPath }) =>
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
499
|
+
registerCompilerAssetEmittedTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createHookRegisterTaps).call(this, binding.RegisterJsTapKind.CompilerAssetEmitted, () => this.hooks.assetEmitted, queried => async ({ filename, targetPath, outputPath }) => {
|
|
500
|
+
return queried.promise(filename, {
|
|
501
|
+
compilation: this.compilation,
|
|
502
|
+
targetPath,
|
|
503
|
+
outputPath,
|
|
504
|
+
get source() {
|
|
505
|
+
var _a;
|
|
506
|
+
return (_a = this.compilation.getAsset(filename)) === null || _a === void 0 ? void 0 : _a.source;
|
|
507
|
+
},
|
|
508
|
+
get content() {
|
|
509
|
+
var _a;
|
|
510
|
+
return (_a = this.source) === null || _a === void 0 ? void 0 : _a.buffer();
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
}),
|
|
512
514
|
registerCompilationRuntimeModuleTaps: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createHookRegisterTaps).call(this, binding.RegisterJsTapKind.CompilationRuntimeModule, () => this.compilation.hooks.runtimeModule, queried => ({ module, chunk }) => {
|
|
513
515
|
var _a, _b;
|
|
514
516
|
const originSource = (_a = module.source) === null || _a === void 0 ? void 0 : _a.source;
|
package/dist/config/adapter.js
CHANGED
|
@@ -409,6 +409,24 @@ function getRawParserOptions(parser, type) {
|
|
|
409
409
|
javascript: getRawJavascriptParserOptions(parser)
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
+
else if (type === "javascript/auto") {
|
|
413
|
+
return {
|
|
414
|
+
type: "javascript/auto",
|
|
415
|
+
javascript: getRawJavascriptParserOptions(parser)
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
else if (type === "javascript/dynamic") {
|
|
419
|
+
return {
|
|
420
|
+
type: "javascript/dynamic",
|
|
421
|
+
javascript: getRawJavascriptParserOptions(parser)
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
else if (type === "javascript/esm") {
|
|
425
|
+
return {
|
|
426
|
+
type: "javascript/esm",
|
|
427
|
+
javascript: getRawJavascriptParserOptions(parser)
|
|
428
|
+
};
|
|
429
|
+
}
|
|
412
430
|
else if (type === "css") {
|
|
413
431
|
return {
|
|
414
432
|
type: "css",
|
|
@@ -431,7 +449,7 @@ function getRawParserOptions(parser, type) {
|
|
|
431
449
|
throw new Error(`unreachable: unknow module type: ${type}`);
|
|
432
450
|
}
|
|
433
451
|
function getRawJavascriptParserOptions(parser) {
|
|
434
|
-
var _a, _b, _c, _d, _e;
|
|
452
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
435
453
|
return {
|
|
436
454
|
dynamicImportMode: (_a = parser.dynamicImportMode) !== null && _a !== void 0 ? _a : "lazy",
|
|
437
455
|
dynamicImportPreload: (_c = (_b = parser.dynamicImportPreload) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : "false",
|
|
@@ -440,7 +458,9 @@ function getRawJavascriptParserOptions(parser) {
|
|
|
440
458
|
? "false"
|
|
441
459
|
: parser.url === "relative"
|
|
442
460
|
? parser.url
|
|
443
|
-
: "true"
|
|
461
|
+
: "true",
|
|
462
|
+
exprContextCritical: (_f = parser.exprContextCritical) !== null && _f !== void 0 ? _f : true,
|
|
463
|
+
wrappedContextCritical: (_g = parser.wrappedContextCritical) !== null && _g !== void 0 ? _g : false
|
|
444
464
|
};
|
|
445
465
|
}
|
|
446
466
|
function getRawAssetParserOptions(parser) {
|
package/dist/config/defaults.js
CHANGED
|
@@ -132,8 +132,14 @@ const applySnapshotDefaults = (snapshot, { production }) => {
|
|
|
132
132
|
? { timestamp: true, hash: true }
|
|
133
133
|
: { timestamp: true, hash: false });
|
|
134
134
|
};
|
|
135
|
-
const applyJavascriptParserOptionsDefaults = (parserOptions) => {
|
|
136
|
-
|
|
135
|
+
const applyJavascriptParserOptionsDefaults = (parserOptions, fallback) => {
|
|
136
|
+
var _a, _b, _c, _d, _e, _f;
|
|
137
|
+
D(parserOptions, "dynamicImportMode", (_a = fallback === null || fallback === void 0 ? void 0 : fallback.dynamicImportMode) !== null && _a !== void 0 ? _a : "lazy");
|
|
138
|
+
D(parserOptions, "dynamicImportPrefetch", (_b = fallback === null || fallback === void 0 ? void 0 : fallback.dynamicImportPrefetch) !== null && _b !== void 0 ? _b : false);
|
|
139
|
+
D(parserOptions, "dynamicImportPreload", (_c = fallback === null || fallback === void 0 ? void 0 : fallback.dynamicImportPreload) !== null && _c !== void 0 ? _c : false);
|
|
140
|
+
D(parserOptions, "url", (_d = fallback === null || fallback === void 0 ? void 0 : fallback.url) !== null && _d !== void 0 ? _d : true);
|
|
141
|
+
D(parserOptions, "exprContextCritical", (_e = fallback === null || fallback === void 0 ? void 0 : fallback.exprContextCritical) !== null && _e !== void 0 ? _e : true);
|
|
142
|
+
D(parserOptions, "wrappedContextCritical", (_f = fallback === null || fallback === void 0 ? void 0 : fallback.wrappedContextCritical) !== null && _f !== void 0 ? _f : false);
|
|
137
143
|
};
|
|
138
144
|
const applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties }) => {
|
|
139
145
|
(0, assertNotNil_1.assertNotNill)(module.parser);
|
|
@@ -147,6 +153,15 @@ const applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties }
|
|
|
147
153
|
F(module.parser, "javascript", () => ({}));
|
|
148
154
|
(0, assertNotNil_1.assertNotNill)(module.parser.javascript);
|
|
149
155
|
applyJavascriptParserOptionsDefaults(module.parser.javascript);
|
|
156
|
+
F(module.parser, "javascript/auto", () => ({}));
|
|
157
|
+
(0, assertNotNil_1.assertNotNill)(module.parser["javascript/auto"]);
|
|
158
|
+
applyJavascriptParserOptionsDefaults(module.parser["javascript/auto"], module.parser.javascript);
|
|
159
|
+
F(module.parser, "javascript/dynamic", () => ({}));
|
|
160
|
+
(0, assertNotNil_1.assertNotNill)(module.parser["javascript/dynamic"]);
|
|
161
|
+
applyJavascriptParserOptionsDefaults(module.parser["javascript/dynamic"], module.parser.javascript);
|
|
162
|
+
F(module.parser, "javascript/esm", () => ({}));
|
|
163
|
+
(0, assertNotNil_1.assertNotNill)(module.parser["javascript/esm"]);
|
|
164
|
+
applyJavascriptParserOptionsDefaults(module.parser["javascript/esm"], module.parser.javascript);
|
|
150
165
|
if (css) {
|
|
151
166
|
F(module.parser, "css", () => ({}));
|
|
152
167
|
(0, assertNotNil_1.assertNotNill)(module.parser.css);
|
package/dist/config/zod.d.ts
CHANGED
|
@@ -1671,16 +1671,22 @@ declare const javascriptParserOptions: z.ZodObject<{
|
|
|
1671
1671
|
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1672
1672
|
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1673
1673
|
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
1674
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1675
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1674
1676
|
}, "strict", z.ZodTypeAny, {
|
|
1675
1677
|
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1676
1678
|
dynamicImportPreload?: number | boolean | undefined;
|
|
1677
1679
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1678
1680
|
url?: boolean | "relative" | undefined;
|
|
1681
|
+
exprContextCritical?: boolean | undefined;
|
|
1682
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1679
1683
|
}, {
|
|
1680
1684
|
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1681
1685
|
dynamicImportPreload?: number | boolean | undefined;
|
|
1682
1686
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1683
1687
|
url?: boolean | "relative" | undefined;
|
|
1688
|
+
exprContextCritical?: boolean | undefined;
|
|
1689
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1684
1690
|
}>;
|
|
1685
1691
|
export type JavascriptParserOptions = z.infer<typeof javascriptParserOptions>;
|
|
1686
1692
|
declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
@@ -1727,16 +1733,88 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1727
1733
|
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1728
1734
|
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1729
1735
|
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
1736
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1737
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1730
1738
|
}, "strict", z.ZodTypeAny, {
|
|
1731
1739
|
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1732
1740
|
dynamicImportPreload?: number | boolean | undefined;
|
|
1733
1741
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1734
1742
|
url?: boolean | "relative" | undefined;
|
|
1743
|
+
exprContextCritical?: boolean | undefined;
|
|
1744
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1735
1745
|
}, {
|
|
1736
1746
|
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1737
1747
|
dynamicImportPreload?: number | boolean | undefined;
|
|
1738
1748
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1739
1749
|
url?: boolean | "relative" | undefined;
|
|
1750
|
+
exprContextCritical?: boolean | undefined;
|
|
1751
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1752
|
+
}>>;
|
|
1753
|
+
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
|
1754
|
+
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy"]>>;
|
|
1755
|
+
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1756
|
+
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1757
|
+
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
1758
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1759
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1760
|
+
}, "strict", z.ZodTypeAny, {
|
|
1761
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1762
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1763
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1764
|
+
url?: boolean | "relative" | undefined;
|
|
1765
|
+
exprContextCritical?: boolean | undefined;
|
|
1766
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1767
|
+
}, {
|
|
1768
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1769
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1770
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1771
|
+
url?: boolean | "relative" | undefined;
|
|
1772
|
+
exprContextCritical?: boolean | undefined;
|
|
1773
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1774
|
+
}>>;
|
|
1775
|
+
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
|
1776
|
+
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy"]>>;
|
|
1777
|
+
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1778
|
+
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1779
|
+
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
1780
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1781
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1782
|
+
}, "strict", z.ZodTypeAny, {
|
|
1783
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1784
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1785
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1786
|
+
url?: boolean | "relative" | undefined;
|
|
1787
|
+
exprContextCritical?: boolean | undefined;
|
|
1788
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1789
|
+
}, {
|
|
1790
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1791
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1792
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1793
|
+
url?: boolean | "relative" | undefined;
|
|
1794
|
+
exprContextCritical?: boolean | undefined;
|
|
1795
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1796
|
+
}>>;
|
|
1797
|
+
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
|
1798
|
+
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy"]>>;
|
|
1799
|
+
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1800
|
+
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1801
|
+
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
1802
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1803
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1804
|
+
}, "strict", z.ZodTypeAny, {
|
|
1805
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1806
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1807
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1808
|
+
url?: boolean | "relative" | undefined;
|
|
1809
|
+
exprContextCritical?: boolean | undefined;
|
|
1810
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1811
|
+
}, {
|
|
1812
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1813
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1814
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1815
|
+
url?: boolean | "relative" | undefined;
|
|
1816
|
+
exprContextCritical?: boolean | undefined;
|
|
1817
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1740
1818
|
}>>;
|
|
1741
1819
|
}, "strict", z.ZodTypeAny, {
|
|
1742
1820
|
asset?: {
|
|
@@ -1758,6 +1836,32 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1758
1836
|
dynamicImportPreload?: number | boolean | undefined;
|
|
1759
1837
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1760
1838
|
url?: boolean | "relative" | undefined;
|
|
1839
|
+
exprContextCritical?: boolean | undefined;
|
|
1840
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1841
|
+
} | undefined;
|
|
1842
|
+
"javascript/auto"?: {
|
|
1843
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1844
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1845
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1846
|
+
url?: boolean | "relative" | undefined;
|
|
1847
|
+
exprContextCritical?: boolean | undefined;
|
|
1848
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1849
|
+
} | undefined;
|
|
1850
|
+
"javascript/dynamic"?: {
|
|
1851
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1852
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1853
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1854
|
+
url?: boolean | "relative" | undefined;
|
|
1855
|
+
exprContextCritical?: boolean | undefined;
|
|
1856
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1857
|
+
} | undefined;
|
|
1858
|
+
"javascript/esm"?: {
|
|
1859
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1860
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1861
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1862
|
+
url?: boolean | "relative" | undefined;
|
|
1863
|
+
exprContextCritical?: boolean | undefined;
|
|
1864
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1761
1865
|
} | undefined;
|
|
1762
1866
|
}, {
|
|
1763
1867
|
asset?: {
|
|
@@ -1779,6 +1883,32 @@ declare const parserOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
1779
1883
|
dynamicImportPreload?: number | boolean | undefined;
|
|
1780
1884
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1781
1885
|
url?: boolean | "relative" | undefined;
|
|
1886
|
+
exprContextCritical?: boolean | undefined;
|
|
1887
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1888
|
+
} | undefined;
|
|
1889
|
+
"javascript/auto"?: {
|
|
1890
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1891
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1892
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1893
|
+
url?: boolean | "relative" | undefined;
|
|
1894
|
+
exprContextCritical?: boolean | undefined;
|
|
1895
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1896
|
+
} | undefined;
|
|
1897
|
+
"javascript/dynamic"?: {
|
|
1898
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1899
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1900
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1901
|
+
url?: boolean | "relative" | undefined;
|
|
1902
|
+
exprContextCritical?: boolean | undefined;
|
|
1903
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1904
|
+
} | undefined;
|
|
1905
|
+
"javascript/esm"?: {
|
|
1906
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1907
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1908
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1909
|
+
url?: boolean | "relative" | undefined;
|
|
1910
|
+
exprContextCritical?: boolean | undefined;
|
|
1911
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1782
1912
|
} | undefined;
|
|
1783
1913
|
}>;
|
|
1784
1914
|
export type ParserOptionsByModuleTypeKnown = z.infer<typeof parserOptionsByModuleTypeKnown>;
|
|
@@ -1828,16 +1958,88 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
1828
1958
|
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1829
1959
|
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1830
1960
|
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
1961
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1962
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1963
|
+
}, "strict", z.ZodTypeAny, {
|
|
1964
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1965
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1966
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1967
|
+
url?: boolean | "relative" | undefined;
|
|
1968
|
+
exprContextCritical?: boolean | undefined;
|
|
1969
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1970
|
+
}, {
|
|
1971
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1972
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
1973
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1974
|
+
url?: boolean | "relative" | undefined;
|
|
1975
|
+
exprContextCritical?: boolean | undefined;
|
|
1976
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1977
|
+
}>>;
|
|
1978
|
+
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
|
1979
|
+
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy"]>>;
|
|
1980
|
+
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1981
|
+
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
1982
|
+
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
1983
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1984
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
1831
1985
|
}, "strict", z.ZodTypeAny, {
|
|
1832
1986
|
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1833
1987
|
dynamicImportPreload?: number | boolean | undefined;
|
|
1834
1988
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1835
1989
|
url?: boolean | "relative" | undefined;
|
|
1990
|
+
exprContextCritical?: boolean | undefined;
|
|
1991
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1836
1992
|
}, {
|
|
1837
1993
|
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
1838
1994
|
dynamicImportPreload?: number | boolean | undefined;
|
|
1839
1995
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1840
1996
|
url?: boolean | "relative" | undefined;
|
|
1997
|
+
exprContextCritical?: boolean | undefined;
|
|
1998
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1999
|
+
}>>;
|
|
2000
|
+
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
|
2001
|
+
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy"]>>;
|
|
2002
|
+
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
2003
|
+
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
2004
|
+
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
2005
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
2006
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
2007
|
+
}, "strict", z.ZodTypeAny, {
|
|
2008
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2009
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2010
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2011
|
+
url?: boolean | "relative" | undefined;
|
|
2012
|
+
exprContextCritical?: boolean | undefined;
|
|
2013
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2014
|
+
}, {
|
|
2015
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2016
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2017
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2018
|
+
url?: boolean | "relative" | undefined;
|
|
2019
|
+
exprContextCritical?: boolean | undefined;
|
|
2020
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2021
|
+
}>>;
|
|
2022
|
+
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
|
2023
|
+
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy"]>>;
|
|
2024
|
+
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
2025
|
+
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
2026
|
+
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
2027
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
2028
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
2029
|
+
}, "strict", z.ZodTypeAny, {
|
|
2030
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2031
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2032
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2033
|
+
url?: boolean | "relative" | undefined;
|
|
2034
|
+
exprContextCritical?: boolean | undefined;
|
|
2035
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2036
|
+
}, {
|
|
2037
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2038
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2039
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2040
|
+
url?: boolean | "relative" | undefined;
|
|
2041
|
+
exprContextCritical?: boolean | undefined;
|
|
2042
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1841
2043
|
}>>;
|
|
1842
2044
|
}, "strict", z.ZodTypeAny, {
|
|
1843
2045
|
asset?: {
|
|
@@ -1859,6 +2061,32 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
1859
2061
|
dynamicImportPreload?: number | boolean | undefined;
|
|
1860
2062
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1861
2063
|
url?: boolean | "relative" | undefined;
|
|
2064
|
+
exprContextCritical?: boolean | undefined;
|
|
2065
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2066
|
+
} | undefined;
|
|
2067
|
+
"javascript/auto"?: {
|
|
2068
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2069
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2070
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2071
|
+
url?: boolean | "relative" | undefined;
|
|
2072
|
+
exprContextCritical?: boolean | undefined;
|
|
2073
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2074
|
+
} | undefined;
|
|
2075
|
+
"javascript/dynamic"?: {
|
|
2076
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2077
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2078
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2079
|
+
url?: boolean | "relative" | undefined;
|
|
2080
|
+
exprContextCritical?: boolean | undefined;
|
|
2081
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2082
|
+
} | undefined;
|
|
2083
|
+
"javascript/esm"?: {
|
|
2084
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2085
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2086
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2087
|
+
url?: boolean | "relative" | undefined;
|
|
2088
|
+
exprContextCritical?: boolean | undefined;
|
|
2089
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1862
2090
|
} | undefined;
|
|
1863
2091
|
}, {
|
|
1864
2092
|
asset?: {
|
|
@@ -1880,6 +2108,32 @@ declare const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
1880
2108
|
dynamicImportPreload?: number | boolean | undefined;
|
|
1881
2109
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
1882
2110
|
url?: boolean | "relative" | undefined;
|
|
2111
|
+
exprContextCritical?: boolean | undefined;
|
|
2112
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2113
|
+
} | undefined;
|
|
2114
|
+
"javascript/auto"?: {
|
|
2115
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2116
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2117
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2118
|
+
url?: boolean | "relative" | undefined;
|
|
2119
|
+
exprContextCritical?: boolean | undefined;
|
|
2120
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2121
|
+
} | undefined;
|
|
2122
|
+
"javascript/dynamic"?: {
|
|
2123
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2124
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2125
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2126
|
+
url?: boolean | "relative" | undefined;
|
|
2127
|
+
exprContextCritical?: boolean | undefined;
|
|
2128
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2129
|
+
} | undefined;
|
|
2130
|
+
"javascript/esm"?: {
|
|
2131
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2132
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2133
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2134
|
+
url?: boolean | "relative" | undefined;
|
|
2135
|
+
exprContextCritical?: boolean | undefined;
|
|
2136
|
+
wrappedContextCritical?: boolean | undefined;
|
|
1883
2137
|
} | undefined;
|
|
1884
2138
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>;
|
|
1885
2139
|
export type ParserOptionsByModuleType = z.infer<typeof parserOptionsByModuleType>;
|
|
@@ -2554,16 +2808,88 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
2554
2808
|
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
2555
2809
|
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
2556
2810
|
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
2811
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
2812
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
2813
|
+
}, "strict", z.ZodTypeAny, {
|
|
2814
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2815
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2816
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2817
|
+
url?: boolean | "relative" | undefined;
|
|
2818
|
+
exprContextCritical?: boolean | undefined;
|
|
2819
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2820
|
+
}, {
|
|
2821
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2822
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2823
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2824
|
+
url?: boolean | "relative" | undefined;
|
|
2825
|
+
exprContextCritical?: boolean | undefined;
|
|
2826
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2827
|
+
}>>;
|
|
2828
|
+
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
|
2829
|
+
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy"]>>;
|
|
2830
|
+
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
2831
|
+
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
2832
|
+
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
2833
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
2834
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
2835
|
+
}, "strict", z.ZodTypeAny, {
|
|
2836
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2837
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2838
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2839
|
+
url?: boolean | "relative" | undefined;
|
|
2840
|
+
exprContextCritical?: boolean | undefined;
|
|
2841
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2842
|
+
}, {
|
|
2843
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2844
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2845
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2846
|
+
url?: boolean | "relative" | undefined;
|
|
2847
|
+
exprContextCritical?: boolean | undefined;
|
|
2848
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2849
|
+
}>>;
|
|
2850
|
+
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
|
2851
|
+
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy"]>>;
|
|
2852
|
+
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
2853
|
+
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
2854
|
+
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
2855
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
2856
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
2857
|
+
}, "strict", z.ZodTypeAny, {
|
|
2858
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2859
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2860
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2861
|
+
url?: boolean | "relative" | undefined;
|
|
2862
|
+
exprContextCritical?: boolean | undefined;
|
|
2863
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2864
|
+
}, {
|
|
2865
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2866
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2867
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2868
|
+
url?: boolean | "relative" | undefined;
|
|
2869
|
+
exprContextCritical?: boolean | undefined;
|
|
2870
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2871
|
+
}>>;
|
|
2872
|
+
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
|
2873
|
+
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy"]>>;
|
|
2874
|
+
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
2875
|
+
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
2876
|
+
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
2877
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
2878
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
2557
2879
|
}, "strict", z.ZodTypeAny, {
|
|
2558
2880
|
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2559
2881
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2560
2882
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2561
2883
|
url?: boolean | "relative" | undefined;
|
|
2884
|
+
exprContextCritical?: boolean | undefined;
|
|
2885
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2562
2886
|
}, {
|
|
2563
2887
|
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2564
2888
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2565
2889
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2566
2890
|
url?: boolean | "relative" | undefined;
|
|
2891
|
+
exprContextCritical?: boolean | undefined;
|
|
2892
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2567
2893
|
}>>;
|
|
2568
2894
|
}, "strict", z.ZodTypeAny, {
|
|
2569
2895
|
asset?: {
|
|
@@ -2585,6 +2911,32 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
2585
2911
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2586
2912
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2587
2913
|
url?: boolean | "relative" | undefined;
|
|
2914
|
+
exprContextCritical?: boolean | undefined;
|
|
2915
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2916
|
+
} | undefined;
|
|
2917
|
+
"javascript/auto"?: {
|
|
2918
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2919
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2920
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2921
|
+
url?: boolean | "relative" | undefined;
|
|
2922
|
+
exprContextCritical?: boolean | undefined;
|
|
2923
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2924
|
+
} | undefined;
|
|
2925
|
+
"javascript/dynamic"?: {
|
|
2926
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2927
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2928
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2929
|
+
url?: boolean | "relative" | undefined;
|
|
2930
|
+
exprContextCritical?: boolean | undefined;
|
|
2931
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2932
|
+
} | undefined;
|
|
2933
|
+
"javascript/esm"?: {
|
|
2934
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2935
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2936
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2937
|
+
url?: boolean | "relative" | undefined;
|
|
2938
|
+
exprContextCritical?: boolean | undefined;
|
|
2939
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2588
2940
|
} | undefined;
|
|
2589
2941
|
}, {
|
|
2590
2942
|
asset?: {
|
|
@@ -2606,6 +2958,32 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
2606
2958
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2607
2959
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2608
2960
|
url?: boolean | "relative" | undefined;
|
|
2961
|
+
exprContextCritical?: boolean | undefined;
|
|
2962
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2963
|
+
} | undefined;
|
|
2964
|
+
"javascript/auto"?: {
|
|
2965
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2966
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2967
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2968
|
+
url?: boolean | "relative" | undefined;
|
|
2969
|
+
exprContextCritical?: boolean | undefined;
|
|
2970
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2971
|
+
} | undefined;
|
|
2972
|
+
"javascript/dynamic"?: {
|
|
2973
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2974
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2975
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2976
|
+
url?: boolean | "relative" | undefined;
|
|
2977
|
+
exprContextCritical?: boolean | undefined;
|
|
2978
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2979
|
+
} | undefined;
|
|
2980
|
+
"javascript/esm"?: {
|
|
2981
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
2982
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
2983
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2984
|
+
url?: boolean | "relative" | undefined;
|
|
2985
|
+
exprContextCritical?: boolean | undefined;
|
|
2986
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2609
2987
|
} | undefined;
|
|
2610
2988
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>>;
|
|
2611
2989
|
generator: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -2848,6 +3226,32 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
2848
3226
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2849
3227
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2850
3228
|
url?: boolean | "relative" | undefined;
|
|
3229
|
+
exprContextCritical?: boolean | undefined;
|
|
3230
|
+
wrappedContextCritical?: boolean | undefined;
|
|
3231
|
+
} | undefined;
|
|
3232
|
+
"javascript/auto"?: {
|
|
3233
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
3234
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
3235
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3236
|
+
url?: boolean | "relative" | undefined;
|
|
3237
|
+
exprContextCritical?: boolean | undefined;
|
|
3238
|
+
wrappedContextCritical?: boolean | undefined;
|
|
3239
|
+
} | undefined;
|
|
3240
|
+
"javascript/dynamic"?: {
|
|
3241
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
3242
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
3243
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3244
|
+
url?: boolean | "relative" | undefined;
|
|
3245
|
+
exprContextCritical?: boolean | undefined;
|
|
3246
|
+
wrappedContextCritical?: boolean | undefined;
|
|
3247
|
+
} | undefined;
|
|
3248
|
+
"javascript/esm"?: {
|
|
3249
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
3250
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
3251
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3252
|
+
url?: boolean | "relative" | undefined;
|
|
3253
|
+
exprContextCritical?: boolean | undefined;
|
|
3254
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2851
3255
|
} | undefined;
|
|
2852
3256
|
} | Record<string, Record<string, any>> | undefined;
|
|
2853
3257
|
generator?: Record<string, Record<string, any>> | {
|
|
@@ -2916,6 +3320,32 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
2916
3320
|
dynamicImportPreload?: number | boolean | undefined;
|
|
2917
3321
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
2918
3322
|
url?: boolean | "relative" | undefined;
|
|
3323
|
+
exprContextCritical?: boolean | undefined;
|
|
3324
|
+
wrappedContextCritical?: boolean | undefined;
|
|
3325
|
+
} | undefined;
|
|
3326
|
+
"javascript/auto"?: {
|
|
3327
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
3328
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
3329
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3330
|
+
url?: boolean | "relative" | undefined;
|
|
3331
|
+
exprContextCritical?: boolean | undefined;
|
|
3332
|
+
wrappedContextCritical?: boolean | undefined;
|
|
3333
|
+
} | undefined;
|
|
3334
|
+
"javascript/dynamic"?: {
|
|
3335
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
3336
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
3337
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3338
|
+
url?: boolean | "relative" | undefined;
|
|
3339
|
+
exprContextCritical?: boolean | undefined;
|
|
3340
|
+
wrappedContextCritical?: boolean | undefined;
|
|
3341
|
+
} | undefined;
|
|
3342
|
+
"javascript/esm"?: {
|
|
3343
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
3344
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
3345
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
3346
|
+
url?: boolean | "relative" | undefined;
|
|
3347
|
+
exprContextCritical?: boolean | undefined;
|
|
3348
|
+
wrappedContextCritical?: boolean | undefined;
|
|
2919
3349
|
} | undefined;
|
|
2920
3350
|
} | Record<string, Record<string, any>> | undefined;
|
|
2921
3351
|
generator?: Record<string, Record<string, any>> | {
|
|
@@ -5349,16 +5779,88 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5349
5779
|
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
5350
5780
|
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
5351
5781
|
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
5782
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
5783
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
5352
5784
|
}, "strict", z.ZodTypeAny, {
|
|
5353
5785
|
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5354
5786
|
dynamicImportPreload?: number | boolean | undefined;
|
|
5355
5787
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5356
5788
|
url?: boolean | "relative" | undefined;
|
|
5789
|
+
exprContextCritical?: boolean | undefined;
|
|
5790
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5357
5791
|
}, {
|
|
5358
5792
|
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5359
5793
|
dynamicImportPreload?: number | boolean | undefined;
|
|
5360
5794
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5361
5795
|
url?: boolean | "relative" | undefined;
|
|
5796
|
+
exprContextCritical?: boolean | undefined;
|
|
5797
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5798
|
+
}>>;
|
|
5799
|
+
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
|
5800
|
+
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy"]>>;
|
|
5801
|
+
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
5802
|
+
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
5803
|
+
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
5804
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
5805
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
5806
|
+
}, "strict", z.ZodTypeAny, {
|
|
5807
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5808
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
5809
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5810
|
+
url?: boolean | "relative" | undefined;
|
|
5811
|
+
exprContextCritical?: boolean | undefined;
|
|
5812
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5813
|
+
}, {
|
|
5814
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5815
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
5816
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5817
|
+
url?: boolean | "relative" | undefined;
|
|
5818
|
+
exprContextCritical?: boolean | undefined;
|
|
5819
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5820
|
+
}>>;
|
|
5821
|
+
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
|
5822
|
+
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy"]>>;
|
|
5823
|
+
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
5824
|
+
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
5825
|
+
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
5826
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
5827
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
5828
|
+
}, "strict", z.ZodTypeAny, {
|
|
5829
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5830
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
5831
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5832
|
+
url?: boolean | "relative" | undefined;
|
|
5833
|
+
exprContextCritical?: boolean | undefined;
|
|
5834
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5835
|
+
}, {
|
|
5836
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5837
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
5838
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5839
|
+
url?: boolean | "relative" | undefined;
|
|
5840
|
+
exprContextCritical?: boolean | undefined;
|
|
5841
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5842
|
+
}>>;
|
|
5843
|
+
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
|
5844
|
+
dynamicImportMode: z.ZodOptional<z.ZodEnum<["eager", "lazy"]>>;
|
|
5845
|
+
dynamicImportPreload: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
5846
|
+
dynamicImportPrefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
5847
|
+
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
5848
|
+
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
5849
|
+
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
5850
|
+
}, "strict", z.ZodTypeAny, {
|
|
5851
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5852
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
5853
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5854
|
+
url?: boolean | "relative" | undefined;
|
|
5855
|
+
exprContextCritical?: boolean | undefined;
|
|
5856
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5857
|
+
}, {
|
|
5858
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5859
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
5860
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5861
|
+
url?: boolean | "relative" | undefined;
|
|
5862
|
+
exprContextCritical?: boolean | undefined;
|
|
5863
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5362
5864
|
}>>;
|
|
5363
5865
|
}, "strict", z.ZodTypeAny, {
|
|
5364
5866
|
asset?: {
|
|
@@ -5380,6 +5882,32 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5380
5882
|
dynamicImportPreload?: number | boolean | undefined;
|
|
5381
5883
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5382
5884
|
url?: boolean | "relative" | undefined;
|
|
5885
|
+
exprContextCritical?: boolean | undefined;
|
|
5886
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5887
|
+
} | undefined;
|
|
5888
|
+
"javascript/auto"?: {
|
|
5889
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5890
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
5891
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5892
|
+
url?: boolean | "relative" | undefined;
|
|
5893
|
+
exprContextCritical?: boolean | undefined;
|
|
5894
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5895
|
+
} | undefined;
|
|
5896
|
+
"javascript/dynamic"?: {
|
|
5897
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5898
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
5899
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5900
|
+
url?: boolean | "relative" | undefined;
|
|
5901
|
+
exprContextCritical?: boolean | undefined;
|
|
5902
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5903
|
+
} | undefined;
|
|
5904
|
+
"javascript/esm"?: {
|
|
5905
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5906
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
5907
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5908
|
+
url?: boolean | "relative" | undefined;
|
|
5909
|
+
exprContextCritical?: boolean | undefined;
|
|
5910
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5383
5911
|
} | undefined;
|
|
5384
5912
|
}, {
|
|
5385
5913
|
asset?: {
|
|
@@ -5401,6 +5929,32 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5401
5929
|
dynamicImportPreload?: number | boolean | undefined;
|
|
5402
5930
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5403
5931
|
url?: boolean | "relative" | undefined;
|
|
5932
|
+
exprContextCritical?: boolean | undefined;
|
|
5933
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5934
|
+
} | undefined;
|
|
5935
|
+
"javascript/auto"?: {
|
|
5936
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5937
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
5938
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5939
|
+
url?: boolean | "relative" | undefined;
|
|
5940
|
+
exprContextCritical?: boolean | undefined;
|
|
5941
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5942
|
+
} | undefined;
|
|
5943
|
+
"javascript/dynamic"?: {
|
|
5944
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5945
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
5946
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5947
|
+
url?: boolean | "relative" | undefined;
|
|
5948
|
+
exprContextCritical?: boolean | undefined;
|
|
5949
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5950
|
+
} | undefined;
|
|
5951
|
+
"javascript/esm"?: {
|
|
5952
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
5953
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
5954
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5955
|
+
url?: boolean | "relative" | undefined;
|
|
5956
|
+
exprContextCritical?: boolean | undefined;
|
|
5957
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5404
5958
|
} | undefined;
|
|
5405
5959
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>>;
|
|
5406
5960
|
generator: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -5643,6 +6197,32 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5643
6197
|
dynamicImportPreload?: number | boolean | undefined;
|
|
5644
6198
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5645
6199
|
url?: boolean | "relative" | undefined;
|
|
6200
|
+
exprContextCritical?: boolean | undefined;
|
|
6201
|
+
wrappedContextCritical?: boolean | undefined;
|
|
6202
|
+
} | undefined;
|
|
6203
|
+
"javascript/auto"?: {
|
|
6204
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
6205
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
6206
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
6207
|
+
url?: boolean | "relative" | undefined;
|
|
6208
|
+
exprContextCritical?: boolean | undefined;
|
|
6209
|
+
wrappedContextCritical?: boolean | undefined;
|
|
6210
|
+
} | undefined;
|
|
6211
|
+
"javascript/dynamic"?: {
|
|
6212
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
6213
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
6214
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
6215
|
+
url?: boolean | "relative" | undefined;
|
|
6216
|
+
exprContextCritical?: boolean | undefined;
|
|
6217
|
+
wrappedContextCritical?: boolean | undefined;
|
|
6218
|
+
} | undefined;
|
|
6219
|
+
"javascript/esm"?: {
|
|
6220
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
6221
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
6222
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
6223
|
+
url?: boolean | "relative" | undefined;
|
|
6224
|
+
exprContextCritical?: boolean | undefined;
|
|
6225
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5646
6226
|
} | undefined;
|
|
5647
6227
|
} | Record<string, Record<string, any>> | undefined;
|
|
5648
6228
|
generator?: Record<string, Record<string, any>> | {
|
|
@@ -5711,6 +6291,32 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5711
6291
|
dynamicImportPreload?: number | boolean | undefined;
|
|
5712
6292
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
5713
6293
|
url?: boolean | "relative" | undefined;
|
|
6294
|
+
exprContextCritical?: boolean | undefined;
|
|
6295
|
+
wrappedContextCritical?: boolean | undefined;
|
|
6296
|
+
} | undefined;
|
|
6297
|
+
"javascript/auto"?: {
|
|
6298
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
6299
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
6300
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
6301
|
+
url?: boolean | "relative" | undefined;
|
|
6302
|
+
exprContextCritical?: boolean | undefined;
|
|
6303
|
+
wrappedContextCritical?: boolean | undefined;
|
|
6304
|
+
} | undefined;
|
|
6305
|
+
"javascript/dynamic"?: {
|
|
6306
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
6307
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
6308
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
6309
|
+
url?: boolean | "relative" | undefined;
|
|
6310
|
+
exprContextCritical?: boolean | undefined;
|
|
6311
|
+
wrappedContextCritical?: boolean | undefined;
|
|
6312
|
+
} | undefined;
|
|
6313
|
+
"javascript/esm"?: {
|
|
6314
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
6315
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
6316
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
6317
|
+
url?: boolean | "relative" | undefined;
|
|
6318
|
+
exprContextCritical?: boolean | undefined;
|
|
6319
|
+
wrappedContextCritical?: boolean | undefined;
|
|
5714
6320
|
} | undefined;
|
|
5715
6321
|
} | Record<string, Record<string, any>> | undefined;
|
|
5716
6322
|
generator?: Record<string, Record<string, any>> | {
|
|
@@ -6098,6 +6704,32 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6098
6704
|
dynamicImportPreload?: number | boolean | undefined;
|
|
6099
6705
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
6100
6706
|
url?: boolean | "relative" | undefined;
|
|
6707
|
+
exprContextCritical?: boolean | undefined;
|
|
6708
|
+
wrappedContextCritical?: boolean | undefined;
|
|
6709
|
+
} | undefined;
|
|
6710
|
+
"javascript/auto"?: {
|
|
6711
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
6712
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
6713
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
6714
|
+
url?: boolean | "relative" | undefined;
|
|
6715
|
+
exprContextCritical?: boolean | undefined;
|
|
6716
|
+
wrappedContextCritical?: boolean | undefined;
|
|
6717
|
+
} | undefined;
|
|
6718
|
+
"javascript/dynamic"?: {
|
|
6719
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
6720
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
6721
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
6722
|
+
url?: boolean | "relative" | undefined;
|
|
6723
|
+
exprContextCritical?: boolean | undefined;
|
|
6724
|
+
wrappedContextCritical?: boolean | undefined;
|
|
6725
|
+
} | undefined;
|
|
6726
|
+
"javascript/esm"?: {
|
|
6727
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
6728
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
6729
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
6730
|
+
url?: boolean | "relative" | undefined;
|
|
6731
|
+
exprContextCritical?: boolean | undefined;
|
|
6732
|
+
wrappedContextCritical?: boolean | undefined;
|
|
6101
6733
|
} | undefined;
|
|
6102
6734
|
} | Record<string, Record<string, any>> | undefined;
|
|
6103
6735
|
generator?: Record<string, Record<string, any>> | {
|
|
@@ -6485,6 +7117,32 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6485
7117
|
dynamicImportPreload?: number | boolean | undefined;
|
|
6486
7118
|
dynamicImportPrefetch?: number | boolean | undefined;
|
|
6487
7119
|
url?: boolean | "relative" | undefined;
|
|
7120
|
+
exprContextCritical?: boolean | undefined;
|
|
7121
|
+
wrappedContextCritical?: boolean | undefined;
|
|
7122
|
+
} | undefined;
|
|
7123
|
+
"javascript/auto"?: {
|
|
7124
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
7125
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
7126
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
7127
|
+
url?: boolean | "relative" | undefined;
|
|
7128
|
+
exprContextCritical?: boolean | undefined;
|
|
7129
|
+
wrappedContextCritical?: boolean | undefined;
|
|
7130
|
+
} | undefined;
|
|
7131
|
+
"javascript/dynamic"?: {
|
|
7132
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
7133
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
7134
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
7135
|
+
url?: boolean | "relative" | undefined;
|
|
7136
|
+
exprContextCritical?: boolean | undefined;
|
|
7137
|
+
wrappedContextCritical?: boolean | undefined;
|
|
7138
|
+
} | undefined;
|
|
7139
|
+
"javascript/esm"?: {
|
|
7140
|
+
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
7141
|
+
dynamicImportPreload?: number | boolean | undefined;
|
|
7142
|
+
dynamicImportPrefetch?: number | boolean | undefined;
|
|
7143
|
+
url?: boolean | "relative" | undefined;
|
|
7144
|
+
exprContextCritical?: boolean | undefined;
|
|
7145
|
+
wrappedContextCritical?: boolean | undefined;
|
|
6488
7146
|
} | undefined;
|
|
6489
7147
|
} | Record<string, Record<string, any>> | undefined;
|
|
6490
7148
|
generator?: Record<string, Record<string, any>> | {
|
package/dist/config/zod.js
CHANGED
|
@@ -328,18 +328,25 @@ const dynamicImportMode = zod_1.z.enum(["eager", "lazy"]);
|
|
|
328
328
|
const dynamicImportPreload = zod_1.z.union([zod_1.z.boolean(), zod_1.z.number()]);
|
|
329
329
|
const dynamicImportPrefetch = zod_1.z.union([zod_1.z.boolean(), zod_1.z.number()]);
|
|
330
330
|
const javascriptParserUrl = zod_1.z.union([zod_1.z.literal("relative"), zod_1.z.boolean()]);
|
|
331
|
+
const exprContextCritical = zod_1.z.boolean();
|
|
332
|
+
const wrappedContextCritical = zod_1.z.boolean();
|
|
331
333
|
const javascriptParserOptions = zod_1.z.strictObject({
|
|
332
334
|
dynamicImportMode: dynamicImportMode.optional(),
|
|
333
335
|
dynamicImportPreload: dynamicImportPreload.optional(),
|
|
334
336
|
dynamicImportPrefetch: dynamicImportPrefetch.optional(),
|
|
335
|
-
url: javascriptParserUrl.optional()
|
|
337
|
+
url: javascriptParserUrl.optional(),
|
|
338
|
+
exprContextCritical: exprContextCritical.optional(),
|
|
339
|
+
wrappedContextCritical: wrappedContextCritical.optional()
|
|
336
340
|
});
|
|
337
341
|
const parserOptionsByModuleTypeKnown = zod_1.z.strictObject({
|
|
338
342
|
asset: assetParserOptions.optional(),
|
|
339
343
|
css: cssParserOptions.optional(),
|
|
340
344
|
"css/auto": cssAutoParserOptions.optional(),
|
|
341
345
|
"css/module": cssModuleParserOptions.optional(),
|
|
342
|
-
javascript: javascriptParserOptions.optional()
|
|
346
|
+
javascript: javascriptParserOptions.optional(),
|
|
347
|
+
"javascript/auto": javascriptParserOptions.optional(),
|
|
348
|
+
"javascript/dynamic": javascriptParserOptions.optional(),
|
|
349
|
+
"javascript/esm": javascriptParserOptions.optional()
|
|
343
350
|
});
|
|
344
351
|
const parserOptionsByModuleTypeUnknown = zod_1.z.record(zod_1.z.record(zod_1.z.any()));
|
|
345
352
|
const parserOptionsByModuleType = parserOptionsByModuleTypeKnown.or(parserOptionsByModuleTypeUnknown);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "0.6.3-canary-
|
|
3
|
+
"version": "0.6.3-canary-bc61872-20240425005651",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A Fast Rust-based Web Bundler",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"styled-components": "^6.0.8",
|
|
61
61
|
"terser": "5.27.2",
|
|
62
62
|
"wast-loader": "^1.11.4",
|
|
63
|
-
"@rspack/core": "0.6.3-canary-
|
|
64
|
-
"@rspack/plugin-minify": "^0.6.3-canary-
|
|
63
|
+
"@rspack/core": "0.6.3-canary-bc61872-20240425005651",
|
|
64
|
+
"@rspack/plugin-minify": "^0.6.3-canary-bc61872-20240425005651"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@module-federation/runtime-tools": "0.1.6",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"webpack-sources": "3.2.3",
|
|
76
76
|
"zod": "^3.21.4",
|
|
77
77
|
"zod-validation-error": "1.3.1",
|
|
78
|
-
"@rspack/binding": "0.6.3-canary-
|
|
78
|
+
"@rspack/binding": "0.6.3-canary-bc61872-20240425005651"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@swc/helpers": ">=0.5.1"
|