@rspack-canary/core 1.5.8-canary-e350b761-20250924173613 → 1.5.8-canary-15732646-20250926173747
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/RuntimeModule.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -2
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -2
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/URLPlugin.d.ts +9 -0
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/config/types.d.ts +11 -1
- package/dist/index.js +44 -37
- package/dist/schema/config.d.ts +16 -4
- package/dist/worker.js +3 -3
- package/package.json +3 -3
package/dist/RuntimeModule.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class RuntimeModule {
|
|
|
13
13
|
static STAGE_BASIC: RuntimeModuleStage;
|
|
14
14
|
static STAGE_ATTACH: RuntimeModuleStage;
|
|
15
15
|
static STAGE_TRIGGER: RuntimeModuleStage;
|
|
16
|
-
static __to_binding(
|
|
16
|
+
static __to_binding(module: RuntimeModule): JsAddingRuntimeModule;
|
|
17
17
|
private _name;
|
|
18
18
|
private _stage;
|
|
19
19
|
fullHash: boolean;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
5
4
|
name: BuiltinPluginName;
|
|
6
5
|
affectedHooks: "compilation";
|
|
7
|
-
raw(
|
|
6
|
+
raw(): BuiltinPlugin;
|
|
8
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
5
4
|
name: BuiltinPluginName;
|
|
6
5
|
affectedHooks: "compilation";
|
|
7
|
-
raw(
|
|
6
|
+
raw(): BuiltinPlugin;
|
|
8
7
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
5
4
|
private global;
|
|
6
5
|
name: BuiltinPluginName;
|
|
7
6
|
affectedHooks: "compilation";
|
|
8
7
|
constructor(global: boolean);
|
|
9
|
-
raw(
|
|
8
|
+
raw(): BuiltinPlugin;
|
|
10
9
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
5
4
|
private deterministic;
|
|
6
5
|
name: BuiltinPluginName;
|
|
7
6
|
affectedHooks: "compilation";
|
|
8
7
|
constructor(deterministic: boolean);
|
|
9
|
-
raw(
|
|
8
|
+
raw(): BuiltinPlugin;
|
|
10
9
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class ModuleConcatenationPlugin extends RspackBuiltinPlugin {
|
|
5
4
|
name: BuiltinPluginName;
|
|
6
5
|
affectedHooks: "compilation";
|
|
7
|
-
raw(
|
|
6
|
+
raw(): BuiltinPlugin;
|
|
8
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class NaturalChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
5
4
|
name: BuiltinPluginName;
|
|
6
5
|
affectedHooks: "compilation";
|
|
7
|
-
raw(
|
|
6
|
+
raw(): BuiltinPlugin;
|
|
8
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
5
4
|
name: BuiltinPluginName;
|
|
6
5
|
affectedHooks: "compilation";
|
|
7
|
-
raw(
|
|
6
|
+
raw(): BuiltinPlugin;
|
|
8
7
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const URLPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -76,6 +76,7 @@ export * from "./SourceMapDevToolPlugin";
|
|
|
76
76
|
export * from "./SplitChunksPlugin";
|
|
77
77
|
export * from "./SubresourceIntegrityPlugin";
|
|
78
78
|
export * from "./SwcJsMinimizerPlugin";
|
|
79
|
+
export * from "./URLPlugin";
|
|
79
80
|
export * from "./WarnCaseSensitiveModulesPlugin";
|
|
80
81
|
export * from "./WebWorkerTemplatePlugin";
|
|
81
82
|
export * from "./WorkerPlugin";
|
package/dist/config/types.d.ts
CHANGED
|
@@ -727,6 +727,11 @@ export type CssModuleParserOptions = {
|
|
|
727
727
|
url?: CssParserUrl;
|
|
728
728
|
};
|
|
729
729
|
type ExportsPresence = "error" | "warn" | "auto" | false;
|
|
730
|
+
export type JavascriptParserCommonjsExports = boolean | "skipInEsm";
|
|
731
|
+
export type JavascriptParserCommonjsOption = boolean | {
|
|
732
|
+
/** Controls how CommonJS export mutations are handled. */
|
|
733
|
+
exports?: JavascriptParserCommonjsExports;
|
|
734
|
+
};
|
|
730
735
|
export type JavascriptParserOptions = {
|
|
731
736
|
/**
|
|
732
737
|
* Specifies global mode for dynamic import.
|
|
@@ -757,7 +762,7 @@ export type JavascriptParserOptions = {
|
|
|
757
762
|
* Enable parsing of new URL() syntax.
|
|
758
763
|
* @default true
|
|
759
764
|
* */
|
|
760
|
-
url?: "relative" | boolean;
|
|
765
|
+
url?: "relative" | "new-url-relative" | boolean;
|
|
761
766
|
/**
|
|
762
767
|
* Enable warnings for full dynamic dependencies
|
|
763
768
|
* @default true
|
|
@@ -795,6 +800,11 @@ export type JavascriptParserOptions = {
|
|
|
795
800
|
requireAsExpression?: boolean;
|
|
796
801
|
requireDynamic?: boolean;
|
|
797
802
|
requireResolve?: boolean;
|
|
803
|
+
/**
|
|
804
|
+
* CommonJS-specific parser options. `true` enables the default behaviour, `{ exports: 'skipInEsm' }` preserves CommonJS export mutations when executed inside ESM.
|
|
805
|
+
* @default true
|
|
806
|
+
*/
|
|
807
|
+
commonjs?: JavascriptParserCommonjsOption;
|
|
798
808
|
importDynamic?: boolean;
|
|
799
809
|
/**
|
|
800
810
|
* Enable magic comments for CommonJS require() expressions.
|
package/dist/index.js
CHANGED
|
@@ -728,7 +728,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
728
728
|
static STAGE_BASIC = 5;
|
|
729
729
|
static STAGE_ATTACH = 10;
|
|
730
730
|
static STAGE_TRIGGER = 20;
|
|
731
|
-
static __to_binding(
|
|
731
|
+
static __to_binding(module) {
|
|
732
732
|
return {
|
|
733
733
|
name: module.name,
|
|
734
734
|
stage: module.stage,
|
|
@@ -1518,7 +1518,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1518
1518
|
afterProcessAssets: new lite_tapable_namespaceObject.SyncHook([
|
|
1519
1519
|
"assets"
|
|
1520
1520
|
]),
|
|
1521
|
-
additionalAssets: ((name, stage, getArgs
|
|
1521
|
+
additionalAssets: ((name, stage, getArgs)=>{
|
|
1522
1522
|
let errorMessage = (reason)=>`Can't automatically convert plugin using Compilation.hooks.${name} to Compilation.hooks.processAssets because ${reason}.
|
|
1523
1523
|
BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a single Compilation.hooks.processAssets hook.`, getOptions = (options)=>{
|
|
1524
1524
|
let isString = "string" == typeof options;
|
|
@@ -1879,7 +1879,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
1879
1879
|
this.#rebuildModuleTask.exec(module.identifier(), f);
|
|
1880
1880
|
}
|
|
1881
1881
|
addRuntimeModule(chunk, runtimeModule) {
|
|
1882
|
-
runtimeModule.attach(this, chunk, this.chunkGraph), this.#inner.addRuntimeModule(chunk, RuntimeModule.__to_binding(
|
|
1882
|
+
runtimeModule.attach(this, chunk, this.chunkGraph), this.#inner.addRuntimeModule(chunk, RuntimeModule.__to_binding(runtimeModule));
|
|
1883
1883
|
}
|
|
1884
1884
|
addInclude(context, dependency, options, callback) {
|
|
1885
1885
|
this.#addIncludeDispatcher.call(context, dependency, options, callback);
|
|
@@ -2167,14 +2167,14 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
2167
2167
|
class DeterministicChunkIdsPlugin extends builtin_plugin_base.Xj {
|
|
2168
2168
|
name = binding_.BuiltinPluginName.DeterministicChunkIdsPlugin;
|
|
2169
2169
|
affectedHooks = "compilation";
|
|
2170
|
-
raw(
|
|
2170
|
+
raw() {
|
|
2171
2171
|
return (0, builtin_plugin_base.no)(this.name, void 0);
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
2174
|
class DeterministicModuleIdsPlugin extends builtin_plugin_base.Xj {
|
|
2175
2175
|
name = binding_.BuiltinPluginName.DeterministicModuleIdsPlugin;
|
|
2176
2176
|
affectedHooks = "compilation";
|
|
2177
|
-
raw(
|
|
2177
|
+
raw() {
|
|
2178
2178
|
return (0, builtin_plugin_base.no)(this.name, void 0);
|
|
2179
2179
|
}
|
|
2180
2180
|
}
|
|
@@ -2749,10 +2749,10 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2749
2749
|
}
|
|
2750
2750
|
}
|
|
2751
2751
|
class Hash {
|
|
2752
|
-
update(
|
|
2752
|
+
update() {
|
|
2753
2753
|
throw new AbstractMethodError();
|
|
2754
2754
|
}
|
|
2755
|
-
digest(
|
|
2755
|
+
digest() {
|
|
2756
2756
|
throw new AbstractMethodError();
|
|
2757
2757
|
}
|
|
2758
2758
|
}
|
|
@@ -2869,7 +2869,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2869
2869
|
constructor(){
|
|
2870
2870
|
super(), this.string = "";
|
|
2871
2871
|
}
|
|
2872
|
-
update(data
|
|
2872
|
+
update(data) {
|
|
2873
2873
|
let normalizedData;
|
|
2874
2874
|
return (normalizedData = Buffer.isBuffer(data) ? data.toString("utf-8") : data).startsWith("debug-digest-") && (normalizedData = Buffer.from(normalizedData.slice(13), "hex").toString()), this.string += `[${normalizedData}](${Error().stack?.split("\n", 3)[2]})\n`, this;
|
|
2875
2875
|
}
|
|
@@ -3951,6 +3951,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
3951
3951
|
requireAsExpression: parser.requireAsExpression,
|
|
3952
3952
|
requireDynamic: parser.requireDynamic,
|
|
3953
3953
|
requireResolve: parser.requireResolve,
|
|
3954
|
+
commonjs: parser.commonjs,
|
|
3954
3955
|
importDynamic: parser.importDynamic,
|
|
3955
3956
|
commonjsMagicComments: parser.commonjsMagicComments,
|
|
3956
3957
|
inlineConst: parser.inlineConst,
|
|
@@ -4147,7 +4148,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
4147
4148
|
constructor(global){
|
|
4148
4149
|
super(), this.global = global;
|
|
4149
4150
|
}
|
|
4150
|
-
raw(
|
|
4151
|
+
raw() {
|
|
4151
4152
|
return (0, builtin_plugin_base.no)(this.name, this.global);
|
|
4152
4153
|
}
|
|
4153
4154
|
}
|
|
@@ -7379,7 +7380,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7379
7380
|
constructor(deterministic){
|
|
7380
7381
|
super(), this.deterministic = deterministic;
|
|
7381
7382
|
}
|
|
7382
|
-
raw(
|
|
7383
|
+
raw() {
|
|
7383
7384
|
return (0, builtin_plugin_base.no)(this.name, this.deterministic);
|
|
7384
7385
|
}
|
|
7385
7386
|
}
|
|
@@ -7387,7 +7388,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7387
7388
|
class ModuleConcatenationPlugin extends builtin_plugin_base.Xj {
|
|
7388
7389
|
name = binding_.BuiltinPluginName.ModuleConcatenationPlugin;
|
|
7389
7390
|
affectedHooks = "compilation";
|
|
7390
|
-
raw(
|
|
7391
|
+
raw() {
|
|
7391
7392
|
return (0, builtin_plugin_base.no)(this.name, void 0);
|
|
7392
7393
|
}
|
|
7393
7394
|
}
|
|
@@ -7395,14 +7396,14 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7395
7396
|
class NaturalChunkIdsPlugin extends builtin_plugin_base.Xj {
|
|
7396
7397
|
name = binding_.BuiltinPluginName.NaturalChunkIdsPlugin;
|
|
7397
7398
|
affectedHooks = "compilation";
|
|
7398
|
-
raw(
|
|
7399
|
+
raw() {
|
|
7399
7400
|
return (0, builtin_plugin_base.no)(this.name, void 0);
|
|
7400
7401
|
}
|
|
7401
7402
|
}
|
|
7402
7403
|
class NaturalModuleIdsPlugin extends builtin_plugin_base.Xj {
|
|
7403
7404
|
name = binding_.BuiltinPluginName.NaturalModuleIdsPlugin;
|
|
7404
7405
|
affectedHooks = "compilation";
|
|
7405
|
-
raw(
|
|
7406
|
+
raw() {
|
|
7406
7407
|
return (0, builtin_plugin_base.no)(this.name, void 0);
|
|
7407
7408
|
}
|
|
7408
7409
|
}
|
|
@@ -7720,7 +7721,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7720
7721
|
module: options?.minimizerOptions?.module
|
|
7721
7722
|
}
|
|
7722
7723
|
};
|
|
7723
|
-
}, "compilation"), WarnCaseSensitiveModulesPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.WarnCaseSensitiveModulesPlugin, ()=>{}, "compilation");
|
|
7724
|
+
}, "compilation"), URLPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.URLPlugin, ()=>{}), WarnCaseSensitiveModulesPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.WarnCaseSensitiveModulesPlugin, ()=>{}, "compilation");
|
|
7724
7725
|
class WebWorkerTemplatePlugin extends builtin_plugin_base.Xj {
|
|
7725
7726
|
name = binding_.BuiltinPluginName.WebWorkerTemplatePlugin;
|
|
7726
7727
|
raw(compiler) {
|
|
@@ -8607,7 +8608,6 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
8607
8608
|
"./src"
|
|
8608
8609
|
]);
|
|
8609
8610
|
defaults_F(options, "devtool", ()=>!!development && "eval"), D(options, "watch", !1), D(options, "profile", !1), D(options, "lazyCompilation", !1), D(options, "bail", !1), defaults_F(options, "cache", ()=>development), !1 === options.cache && (options.experiments.cache = !1), applyExperimentsDefaults(options.experiments, {
|
|
8610
|
-
production,
|
|
8611
8611
|
development
|
|
8612
8612
|
}), applyOptimizationDefaults(options.optimization, {
|
|
8613
8613
|
production,
|
|
@@ -8652,13 +8652,13 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
8652
8652
|
defaults_F(infrastructureLogging, "stream", ()=>process.stderr);
|
|
8653
8653
|
let tty = infrastructureLogging.stream?.isTTY && "dumb" !== process.env.TERM;
|
|
8654
8654
|
D(infrastructureLogging, "level", "info"), D(infrastructureLogging, "debug", !1), D(infrastructureLogging, "colors", tty), D(infrastructureLogging, "appendOnly", !tty);
|
|
8655
|
-
}, applyExperimentsDefaults = (experiments, {
|
|
8655
|
+
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
8656
8656
|
defaults_F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0), D(experiments, "layers", !1), !1 === experiments.topLevelAwait && console.warn("`experiments.topLevelAwait` config has been deprecated and will be removed in Rspack v2.0. Top-level await will be always enabled. Please remove this option from your Rspack configuration."), D(experiments, "topLevelAwait", !0), D(experiments, "buildHttp", void 0), experiments.buildHttp && "object" == typeof experiments.buildHttp && D(experiments.buildHttp, "upgrade", !1), D(experiments, "incremental", {}), "object" == typeof experiments.incremental && (D(experiments.incremental, "silent", !0), D(experiments.incremental, "make", !0), D(experiments.incremental, "inferAsyncModules", !0), D(experiments.incremental, "providedExports", !0), D(experiments.incremental, "dependenciesDiagnostics", !0), D(experiments.incremental, "sideEffects", !0), D(experiments.incremental, "buildChunkGraph", !1), D(experiments.incremental, "moduleIds", !0), D(experiments.incremental, "chunkIds", !0), D(experiments.incremental, "modulesHashes", !0), D(experiments.incremental, "modulesCodegen", !0), D(experiments.incremental, "modulesRuntimeRequirements", !0), D(experiments.incremental, "chunksRuntimeRequirements", !0), D(experiments.incremental, "chunksHashes", !0), D(experiments.incremental, "chunksRender", !0), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelCodeSplitting", !1), D(experiments, "parallelLoader", !1), D(experiments, "useInputFileSystem", !1), D(experiments, "inlineConst", !1), D(experiments, "inlineEnum", !1), D(experiments, "typeReexportsPresence", !1), D(experiments, "lazyBarrel", !1);
|
|
8657
8657
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
8658
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.8-canary-
|
|
8658
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.8-canary-15732646-20250926173747"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
8659
8659
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst })=>{
|
|
8660
8660
|
if (assertNotNill(module.parser), assertNotNill(module.generator), defaults_F(module.parser, "asset", ()=>({})), assertNotNill(module.parser.asset), defaults_F(module.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module.parser.asset.dataUrlCondition && D(module.parser.asset.dataUrlCondition, "maxSize", 8096), defaults_F(module.parser, "javascript", ()=>({})), assertNotNill(module.parser.javascript), ((parserOptions, { usedExports, inlineConst })=>{
|
|
8661
|
-
D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "unknownContextCritical", !0), D(parserOptions, "wrappedContextCritical", !1), D(parserOptions, "wrappedContextRegExp", /.*/), D(parserOptions, "strictExportPresence", !1), D(parserOptions, "requireAsExpression", !0), D(parserOptions, "requireDynamic", !0), D(parserOptions, "requireResolve", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
|
|
8661
|
+
D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "unknownContextCritical", !0), D(parserOptions, "wrappedContextCritical", !1), D(parserOptions, "wrappedContextRegExp", /.*/), D(parserOptions, "strictExportPresence", !1), D(parserOptions, "requireAsExpression", !0), D(parserOptions, "requireDynamic", !0), D(parserOptions, "requireResolve", !0), D(parserOptions, "commonjs", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
|
|
8662
8662
|
"..."
|
|
8663
8663
|
]), D(parserOptions, "importMeta", !0), D(parserOptions, "inlineConst", usedExports && inlineConst), D(parserOptions, "typeReexportsPresence", "no-tolerant"), D(parserOptions, "jsx", !1);
|
|
8664
8664
|
})(module.parser.javascript, {
|
|
@@ -9403,7 +9403,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
9403
9403
|
}
|
|
9404
9404
|
let printGeneratedCodeForStack = (moduleId, code)=>{
|
|
9405
9405
|
let lines = code.split("\n"), n = `${lines.length}`.length;
|
|
9406
|
-
return `\n\nGenerated code for ${moduleId}\n${lines.map((line, i
|
|
9406
|
+
return `\n\nGenerated code for ${moduleId}\n${lines.map((line, i)=>{
|
|
9407
9407
|
let iStr = `${i + 1}`;
|
|
9408
9408
|
return `${" ".repeat(n - iStr.length)}${iStr} | ${line}`;
|
|
9409
9409
|
}).join("\n")}`;
|
|
@@ -10299,7 +10299,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
10299
10299
|
});
|
|
10300
10300
|
}
|
|
10301
10301
|
}
|
|
10302
|
-
let CORE_VERSION = "1.5.8-canary-
|
|
10302
|
+
let CORE_VERSION = "1.5.8-canary-15732646-20250926173747", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
10303
10303
|
|
|
10304
10304
|
Help:
|
|
10305
10305
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -11312,7 +11312,7 @@ Help:
|
|
|
11312
11312
|
};
|
|
11313
11313
|
})
|
|
11314
11314
|
}),
|
|
11315
|
-
...((getCompiler, createTap
|
|
11315
|
+
...((getCompiler, createTap)=>{
|
|
11316
11316
|
let getOptions = (uid)=>((compilation, uid)=>{
|
|
11317
11317
|
if (!(compilation instanceof Compilation)) throw TypeError("The 'compilation' argument must be an instance of Compilation");
|
|
11318
11318
|
return compilationOptionsMap.get(compilation)?.[uid];
|
|
@@ -11397,7 +11397,7 @@ Help:
|
|
|
11397
11397
|
};
|
|
11398
11398
|
})
|
|
11399
11399
|
};
|
|
11400
|
-
})(getCompiler7, createTap6,
|
|
11400
|
+
})(getCompiler7, createTap6, createMapTap2),
|
|
11401
11401
|
...(getCompiler5 = getCompiler7, {
|
|
11402
11402
|
registerRuntimePluginCreateScriptTaps: (createTap4 = createTap6)(binding_default().RegisterJsTapKind.RuntimePluginCreateScript, function() {
|
|
11403
11403
|
return RuntimePlugin.getCompilationHooks(getCompiler5().__internal__get_compilation()).createScript;
|
|
@@ -11583,7 +11583,7 @@ Help:
|
|
|
11583
11583
|
obj.children = this.stats.map((stat, idx)=>{
|
|
11584
11584
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
11585
11585
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
11586
|
-
}), childOptions.version && (obj.rspackVersion = "1.5.8-canary-
|
|
11586
|
+
}), childOptions.version && (obj.rspackVersion = "1.5.8-canary-15732646-20250926173747", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
11587
11587
|
let mapError = (j, obj)=>({
|
|
11588
11588
|
...obj,
|
|
11589
11589
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -12479,7 +12479,7 @@ Help:
|
|
|
12479
12479
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
12480
12480
|
},
|
|
12481
12481
|
version: (object)=>{
|
|
12482
|
-
object.version = "5.75.0", object.rspackVersion = "1.5.8-canary-
|
|
12482
|
+
object.version = "5.75.0", object.rspackVersion = "1.5.8-canary-15732646-20250926173747";
|
|
12483
12483
|
},
|
|
12484
12484
|
env: (object, _compilation, _context, { _env })=>{
|
|
12485
12485
|
object.env = _env;
|
|
@@ -12541,7 +12541,7 @@ Help:
|
|
|
12541
12541
|
return chunk && 1 === chunk.files.size && (!chunkGroupAuxiliary || 0 === chunk.auxiliaryFiles.size);
|
|
12542
12542
|
})) || (object.entrypoints = factory.create(`${type}.entrypoints`, array, context));
|
|
12543
12543
|
},
|
|
12544
|
-
chunkGroups: (object, compilation, context,
|
|
12544
|
+
chunkGroups: (object, compilation, context, _, factory)=>{
|
|
12545
12545
|
let { type, getStatsCompilation } = context, namedChunkGroups = getStatsCompilation(compilation).namedChunkGroups.map((cg)=>({
|
|
12546
12546
|
name: cg.name,
|
|
12547
12547
|
chunkGroup: cg
|
|
@@ -12734,7 +12734,7 @@ Help:
|
|
|
12734
12734
|
error: EXTRACT_ERROR,
|
|
12735
12735
|
warning: EXTRACT_ERROR,
|
|
12736
12736
|
moduleTraceItem: {
|
|
12737
|
-
_: (object, { origin, module, dependencies }, context,
|
|
12737
|
+
_: (object, { origin, module, dependencies }, context, _, factory)=>{
|
|
12738
12738
|
let { type } = context;
|
|
12739
12739
|
origin.moduleDescriptor && (object.originIdentifier = origin.moduleDescriptor.identifier, object.originName = origin.moduleDescriptor.name), module.moduleDescriptor && (object.moduleIdentifier = module.moduleDescriptor.identifier, object.moduleName = module.moduleDescriptor.name), object.dependencies = factory.create(`${type}.dependencies`, dependencies, context);
|
|
12740
12740
|
},
|
|
@@ -12900,7 +12900,7 @@ Help:
|
|
|
12900
12900
|
chunkGroups: OFF_FOR_TO_STRING,
|
|
12901
12901
|
chunkGroupAuxiliary: OFF_FOR_TO_STRING,
|
|
12902
12902
|
chunkGroupChildren: OFF_FOR_TO_STRING,
|
|
12903
|
-
chunkGroupMaxAssets: (
|
|
12903
|
+
chunkGroupMaxAssets: (_, { forToString })=>forToString ? 5 : 1 / 0,
|
|
12904
12904
|
chunks: OFF_FOR_TO_STRING,
|
|
12905
12905
|
chunkRelations: OFF_FOR_TO_STRING,
|
|
12906
12906
|
chunkModules: ({ all, modules })=>!1 !== all && (!0 === all || !modules),
|
|
@@ -12915,16 +12915,16 @@ Help:
|
|
|
12915
12915
|
groupModulesByAttributes: ON_FOR_TO_STRING,
|
|
12916
12916
|
groupModulesByPath: ON_FOR_TO_STRING,
|
|
12917
12917
|
groupModulesByExtension: ON_FOR_TO_STRING,
|
|
12918
|
-
modulesSpace: (
|
|
12919
|
-
chunkModulesSpace: (
|
|
12920
|
-
nestedModulesSpace: (
|
|
12918
|
+
modulesSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
|
|
12919
|
+
chunkModulesSpace: (_, { forToString })=>forToString ? 10 : 1 / 0,
|
|
12920
|
+
nestedModulesSpace: (_, { forToString })=>forToString ? 10 : 1 / 0,
|
|
12921
12921
|
relatedAssets: OFF_FOR_TO_STRING,
|
|
12922
12922
|
groupAssetsByEmitStatus: ON_FOR_TO_STRING,
|
|
12923
12923
|
groupAssetsByInfo: ON_FOR_TO_STRING,
|
|
12924
12924
|
groupAssetsByPath: ON_FOR_TO_STRING,
|
|
12925
12925
|
groupAssetsByExtension: ON_FOR_TO_STRING,
|
|
12926
12926
|
groupAssetsByChunk: ON_FOR_TO_STRING,
|
|
12927
|
-
assetsSpace: (
|
|
12927
|
+
assetsSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
|
|
12928
12928
|
orphanModules: OFF_FOR_TO_STRING,
|
|
12929
12929
|
runtimeModules: ({ all, runtime }, { forToString })=>void 0 !== runtime ? runtime : forToString ? !0 === all : !1 !== all,
|
|
12930
12930
|
cachedModules: ({ all, cached }, { forToString })=>void 0 !== cached ? cached : forToString ? !0 === all : !1 !== all,
|
|
@@ -12932,7 +12932,7 @@ Help:
|
|
|
12932
12932
|
depth: OFF_FOR_TO_STRING,
|
|
12933
12933
|
cachedAssets: OFF_FOR_TO_STRING,
|
|
12934
12934
|
reasons: OFF_FOR_TO_STRING,
|
|
12935
|
-
reasonsSpace: (
|
|
12935
|
+
reasonsSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
|
|
12936
12936
|
groupReasonsByOrigin: ON_FOR_TO_STRING,
|
|
12937
12937
|
usedExports: OFF_FOR_TO_STRING,
|
|
12938
12938
|
providedExports: OFF_FOR_TO_STRING,
|
|
@@ -12994,7 +12994,7 @@ Help:
|
|
|
12994
12994
|
compiler.hooks.compilation.tap("DefaultStatsPresetPlugin", (compilation)=>{
|
|
12995
12995
|
for (let key of Object.keys(NAMED_PRESETS)){
|
|
12996
12996
|
let defaults = NAMED_PRESETS[key];
|
|
12997
|
-
compilation.hooks.statsPreset.for(key).tap("DefaultStatsPresetPlugin", (options
|
|
12997
|
+
compilation.hooks.statsPreset.for(key).tap("DefaultStatsPresetPlugin", (options)=>{
|
|
12998
12998
|
applyDefaults(options, defaults);
|
|
12999
12999
|
});
|
|
13000
13000
|
}
|
|
@@ -13056,7 +13056,7 @@ Help:
|
|
|
13056
13056
|
},
|
|
13057
13057
|
"asset.type": (type)=>type,
|
|
13058
13058
|
"asset.name": (name, { formatFilename, asset: { isOverSizeLimit } })=>formatFilename(name, isOverSizeLimit),
|
|
13059
|
-
"asset.size": (size, { asset: { isOverSizeLimit }, yellow,
|
|
13059
|
+
"asset.size": (size, { asset: { isOverSizeLimit }, yellow, formatSize })=>isOverSizeLimit ? yellow(formatSize(size)) : formatSize(size),
|
|
13060
13060
|
"asset.emitted": (emitted, { green, formatFlag })=>emitted ? green(formatFlag("emitted")) : void 0,
|
|
13061
13061
|
"asset.comparedForEmit": (comparedForEmit, { yellow, formatFlag })=>comparedForEmit ? yellow(formatFlag("compared for emit")) : void 0,
|
|
13062
13062
|
"asset.cached": (cached, { green, formatFlag })=>cached ? green(formatFlag("cached")) : void 0,
|
|
@@ -13832,7 +13832,7 @@ Help:
|
|
|
13832
13832
|
moduleFilenameTemplate: options.output.devtoolModuleFilenameTemplate,
|
|
13833
13833
|
namespace: options.output.devtoolNamespace
|
|
13834
13834
|
}).apply(compiler);
|
|
13835
|
-
if (new JavascriptModulesPlugin().apply(compiler), new JsonModulesPlugin().apply(compiler), new AssetModulesPlugin().apply(compiler), options.experiments.asyncWebAssembly && new AsyncWebAssemblyModulesPlugin().apply(compiler), options.experiments.css && new CssModulesPlugin().apply(compiler), new lib_EntryOptionPlugin().apply(compiler), assertNotNill(options.context), compiler.hooks.entryOption.call(options.context, options.entry), new RuntimePlugin().apply(compiler), options.experiments.rspackFuture.bundlerInfo && new BundlerInfoRspackPlugin(options.experiments.rspackFuture.bundlerInfo).apply(compiler), new InferAsyncModulesPlugin().apply(compiler), new APIPlugin().apply(compiler), new DataUriPlugin().apply(compiler), new FileUriPlugin().apply(compiler), options.experiments.buildHttp && new HttpUriPlugin(options.experiments.buildHttp).apply(compiler), new EnsureChunkConditionsPlugin().apply(compiler), options.optimization.mergeDuplicateChunks && new MergeDuplicateChunksPlugin().apply(compiler), options.optimization.sideEffects && new SideEffectsFlagPlugin().apply(compiler), options.optimization.providedExports && new FlagDependencyExportsPlugin().apply(compiler), options.optimization.usedExports && new FlagDependencyUsagePlugin("global" === options.optimization.usedExports).apply(compiler), options.optimization.concatenateModules && new ModuleConcatenationPlugin().apply(compiler), options.optimization.mangleExports && new MangleExportsPlugin("size" !== options.optimization.mangleExports).apply(compiler), options.output.enabledLibraryTypes && options.output.enabledLibraryTypes.length > 0) for (let type of options.output.enabledLibraryTypes)new EnableLibraryPlugin(type).apply(compiler);
|
|
13835
|
+
if (new JavascriptModulesPlugin().apply(compiler), new URLPlugin().apply(compiler), new JsonModulesPlugin().apply(compiler), new AssetModulesPlugin().apply(compiler), options.experiments.asyncWebAssembly && new AsyncWebAssemblyModulesPlugin().apply(compiler), options.experiments.css && new CssModulesPlugin().apply(compiler), new lib_EntryOptionPlugin().apply(compiler), assertNotNill(options.context), compiler.hooks.entryOption.call(options.context, options.entry), new RuntimePlugin().apply(compiler), options.experiments.rspackFuture.bundlerInfo && new BundlerInfoRspackPlugin(options.experiments.rspackFuture.bundlerInfo).apply(compiler), new InferAsyncModulesPlugin().apply(compiler), new APIPlugin().apply(compiler), new DataUriPlugin().apply(compiler), new FileUriPlugin().apply(compiler), options.experiments.buildHttp && new HttpUriPlugin(options.experiments.buildHttp).apply(compiler), new EnsureChunkConditionsPlugin().apply(compiler), options.optimization.mergeDuplicateChunks && new MergeDuplicateChunksPlugin().apply(compiler), options.optimization.sideEffects && new SideEffectsFlagPlugin().apply(compiler), options.optimization.providedExports && new FlagDependencyExportsPlugin().apply(compiler), options.optimization.usedExports && new FlagDependencyUsagePlugin("global" === options.optimization.usedExports).apply(compiler), options.optimization.concatenateModules && new ModuleConcatenationPlugin().apply(compiler), options.optimization.mangleExports && new MangleExportsPlugin("size" !== options.optimization.mangleExports).apply(compiler), options.output.enabledLibraryTypes && options.output.enabledLibraryTypes.length > 0) for (let type of options.output.enabledLibraryTypes)new EnableLibraryPlugin(type).apply(compiler);
|
|
13836
13836
|
options.optimization.splitChunks && new SplitChunksPlugin(options.optimization.splitChunks).apply(compiler), options.optimization.removeEmptyChunks && new RemoveEmptyChunksPlugin().apply(compiler), options.optimization.realContentHash && new RealContentHashPlugin().apply(compiler);
|
|
13837
13837
|
let moduleIds = options.optimization.moduleIds;
|
|
13838
13838
|
if (moduleIds) switch(moduleIds){
|
|
@@ -14997,6 +14997,7 @@ Help:
|
|
|
14997
14997
|
"auto"
|
|
14998
14998
|
]), javascriptParserUrl = union([
|
|
14999
14999
|
literal("relative"),
|
|
15000
|
+
literal("new-url-relative"),
|
|
15000
15001
|
schemas_boolean()
|
|
15001
15002
|
]), exprContextCritical = schemas_boolean(), wrappedContextCritical = schemas_boolean(), unknownContextCritical = schemas_boolean(), wrappedContextRegExp = _instanceof(RegExp), exportsPresence = schemas_enum([
|
|
15002
15003
|
"error",
|
|
@@ -15013,7 +15014,12 @@ Help:
|
|
|
15013
15014
|
]).or(literal(!1)), strictExportPresence = schemas_boolean(), worker = schemas_array(schemas_string()).or(schemas_boolean()), overrideStrict = schemas_enum([
|
|
15014
15015
|
"strict",
|
|
15015
15016
|
"non-strict"
|
|
15016
|
-
]), requireAsExpression = schemas_boolean(), requireDynamic = schemas_boolean(), requireResolve = schemas_boolean(),
|
|
15017
|
+
]), requireAsExpression = schemas_boolean(), requireDynamic = schemas_boolean(), requireResolve = schemas_boolean(), commonjsExports = union([
|
|
15018
|
+
schemas_boolean(),
|
|
15019
|
+
literal("skipInEsm")
|
|
15020
|
+
]), commonjs = schemas_boolean().or(strictObject({
|
|
15021
|
+
exports: commonjsExports
|
|
15022
|
+
}).partial()), importDynamic = schemas_boolean(), commonjsMagicComments = schemas_boolean(), inlineConst = schemas_boolean(), typeReexportsPresence = schemas_enum([
|
|
15017
15023
|
"no-tolerant",
|
|
15018
15024
|
"tolerant",
|
|
15019
15025
|
"tolerant-no-check"
|
|
@@ -15038,6 +15044,7 @@ Help:
|
|
|
15038
15044
|
requireAsExpression: requireAsExpression,
|
|
15039
15045
|
requireDynamic: requireDynamic,
|
|
15040
15046
|
requireResolve: requireResolve,
|
|
15047
|
+
commonjs: commonjs,
|
|
15041
15048
|
importDynamic: importDynamic,
|
|
15042
15049
|
inlineConst: inlineConst,
|
|
15043
15050
|
typeReexportsPresence: typeReexportsPresence,
|
|
@@ -15797,7 +15804,7 @@ Help:
|
|
|
15797
15804
|
let _options = JSON.stringify(options || {});
|
|
15798
15805
|
return binding_default().transform(source, _options);
|
|
15799
15806
|
}
|
|
15800
|
-
let exports_rspackVersion = "1.5.8-canary-
|
|
15807
|
+
let exports_rspackVersion = "1.5.8-canary-15732646-20250926173747", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
15801
15808
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
15802
15809
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
15803
15810
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/dist/schema/config.d.ts
CHANGED
|
@@ -736,7 +736,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
736
736
|
high: "high";
|
|
737
737
|
}>>;
|
|
738
738
|
importMeta: z.ZodOptional<z.ZodBoolean>;
|
|
739
|
-
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
739
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodLiteral<"new-url-relative">, z.ZodBoolean]>>;
|
|
740
740
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
741
741
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
742
742
|
unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -766,6 +766,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
766
766
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
767
767
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
768
768
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
769
|
+
commonjs: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
770
|
+
exports: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skipInEsm">]>>;
|
|
771
|
+
}, z.core.$strict>]>>;
|
|
769
772
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
770
773
|
inlineConst: z.ZodOptional<z.ZodBoolean>;
|
|
771
774
|
typeReexportsPresence: z.ZodOptional<z.ZodEnum<{
|
|
@@ -790,7 +793,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
790
793
|
high: "high";
|
|
791
794
|
}>>;
|
|
792
795
|
importMeta: z.ZodOptional<z.ZodBoolean>;
|
|
793
|
-
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
796
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodLiteral<"new-url-relative">, z.ZodBoolean]>>;
|
|
794
797
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
795
798
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
796
799
|
unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -820,6 +823,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
820
823
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
821
824
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
822
825
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
826
|
+
commonjs: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
827
|
+
exports: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skipInEsm">]>>;
|
|
828
|
+
}, z.core.$strict>]>>;
|
|
823
829
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
824
830
|
inlineConst: z.ZodOptional<z.ZodBoolean>;
|
|
825
831
|
typeReexportsPresence: z.ZodOptional<z.ZodEnum<{
|
|
@@ -844,7 +850,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
844
850
|
high: "high";
|
|
845
851
|
}>>;
|
|
846
852
|
importMeta: z.ZodOptional<z.ZodBoolean>;
|
|
847
|
-
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
853
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodLiteral<"new-url-relative">, z.ZodBoolean]>>;
|
|
848
854
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
849
855
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
850
856
|
unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -874,6 +880,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
874
880
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
875
881
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
876
882
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
883
|
+
commonjs: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
884
|
+
exports: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skipInEsm">]>>;
|
|
885
|
+
}, z.core.$strict>]>>;
|
|
877
886
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
878
887
|
inlineConst: z.ZodOptional<z.ZodBoolean>;
|
|
879
888
|
typeReexportsPresence: z.ZodOptional<z.ZodEnum<{
|
|
@@ -898,7 +907,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
898
907
|
high: "high";
|
|
899
908
|
}>>;
|
|
900
909
|
importMeta: z.ZodOptional<z.ZodBoolean>;
|
|
901
|
-
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
910
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodLiteral<"new-url-relative">, z.ZodBoolean]>>;
|
|
902
911
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
903
912
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
904
913
|
unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -928,6 +937,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
928
937
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
929
938
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
930
939
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
940
|
+
commonjs: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
941
|
+
exports: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skipInEsm">]>>;
|
|
942
|
+
}, z.core.$strict>]>>;
|
|
931
943
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
932
944
|
inlineConst: z.ZodOptional<z.ZodBoolean>;
|
|
933
945
|
typeReexportsPresence: z.ZodOptional<z.ZodEnum<{
|
package/dist/worker.js
CHANGED
|
@@ -242,10 +242,10 @@ var __webpack_modules__ = {
|
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
class Hash {
|
|
245
|
-
update(
|
|
245
|
+
update() {
|
|
246
246
|
throw new AbstractMethodError();
|
|
247
247
|
}
|
|
248
|
-
digest(
|
|
248
|
+
digest() {
|
|
249
249
|
throw new AbstractMethodError();
|
|
250
250
|
}
|
|
251
251
|
}
|
|
@@ -362,7 +362,7 @@ var __webpack_modules__ = {
|
|
|
362
362
|
constructor(){
|
|
363
363
|
super(), this.string = "";
|
|
364
364
|
}
|
|
365
|
-
update(data
|
|
365
|
+
update(data) {
|
|
366
366
|
let normalizedData;
|
|
367
367
|
return (normalizedData = Buffer.isBuffer(data) ? data.toString("utf-8") : data).startsWith("debug-digest-") && (normalizedData = Buffer.from(normalizedData.slice(13), "hex").toString()), this.string += `[${normalizedData}](${Error().stack?.split("\n", 3)[2]})\n`, this;
|
|
368
368
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/core",
|
|
3
|
-
"version": "1.5.8-canary-
|
|
3
|
+
"version": "1.5.8-canary-15732646-20250926173747",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"enhanced-resolve": "5.18.3",
|
|
48
48
|
"glob-to-regexp": "^0.4.1",
|
|
49
49
|
"graceful-fs": "^4.2.11",
|
|
50
|
-
"memfs": "4.
|
|
50
|
+
"memfs": "4.46.0",
|
|
51
51
|
"prebundle": "^1.4.2",
|
|
52
52
|
"tinypool": "^1.1.1",
|
|
53
53
|
"tsx": "^4.20.5",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@module-federation/runtime-tools": "0.18.0",
|
|
62
62
|
"@rspack/lite-tapable": "1.0.1",
|
|
63
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.5.8-canary-
|
|
63
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.5.8-canary-15732646-20250926173747"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@swc/helpers": ">=0.5.1"
|