@rspack/core 1.5.7 → 1.5.8
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/EsmLibraryPlugin.d.ts +5 -0
- 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 +2 -0
- package/dist/config/types.d.ts +11 -1
- package/dist/exports.d.ts +2 -1
- package/dist/index.js +63 -39
- 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
|
+
};
|
|
@@ -26,6 +26,7 @@ export * from "./EnableLibraryPlugin";
|
|
|
26
26
|
export * from "./EnableWasmLoadingPlugin";
|
|
27
27
|
export * from "./EnsureChunkConditionsPlugin";
|
|
28
28
|
export * from "./EntryPlugin";
|
|
29
|
+
export * from "./EsmLibraryPlugin";
|
|
29
30
|
export * from "./EvalDevToolModulePlugin";
|
|
30
31
|
export * from "./EvalSourceMapDevToolPlugin";
|
|
31
32
|
export * from "./ExternalsPlugin";
|
|
@@ -76,6 +77,7 @@ export * from "./SourceMapDevToolPlugin";
|
|
|
76
77
|
export * from "./SplitChunksPlugin";
|
|
77
78
|
export * from "./SubresourceIntegrityPlugin";
|
|
78
79
|
export * from "./SwcJsMinimizerPlugin";
|
|
80
|
+
export * from "./URLPlugin";
|
|
79
81
|
export * from "./WarnCaseSensitiveModulesPlugin";
|
|
80
82
|
export * from "./WebWorkerTemplatePlugin";
|
|
81
83
|
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/exports.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export { EnvironmentPlugin } from "./lib/EnvironmentPlugin";
|
|
|
57
57
|
export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
|
|
58
58
|
export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
|
|
59
59
|
export type { OutputFileSystem } from "./util/fs";
|
|
60
|
-
import { FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from "./builtin-plugin";
|
|
60
|
+
import { EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from "./builtin-plugin";
|
|
61
61
|
interface Web {
|
|
62
62
|
FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
|
|
63
63
|
}
|
|
@@ -143,6 +143,7 @@ interface Experiments {
|
|
|
143
143
|
cleanup: () => Promise<void>;
|
|
144
144
|
};
|
|
145
145
|
RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
|
|
146
|
+
EsmLibraryPlugin: typeof EsmLibraryPlugin;
|
|
146
147
|
RsdoctorPlugin: typeof RsdoctorPlugin;
|
|
147
148
|
RstestPlugin: typeof RstestPlugin;
|
|
148
149
|
RslibPlugin: typeof RslibPlugin;
|
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
|
}
|
|
@@ -2304,7 +2304,22 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2304
2304
|
if (!enabled.has(type)) return enabled.add(type), (0, builtin_plugin_base.no)(this.name, type);
|
|
2305
2305
|
}
|
|
2306
2306
|
}
|
|
2307
|
-
let EnableWasmLoadingPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type), EnsureChunkConditionsPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{}),
|
|
2307
|
+
let EnableWasmLoadingPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type), EnsureChunkConditionsPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{}), RemoveDuplicateModulesPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
|
|
2308
|
+
class EsmLibraryPlugin {
|
|
2309
|
+
static PLUGIN_NAME = "EsmLibraryPlugin";
|
|
2310
|
+
apply(compiler) {
|
|
2311
|
+
var config;
|
|
2312
|
+
let err;
|
|
2313
|
+
new RemoveDuplicateModulesPlugin().apply(compiler);
|
|
2314
|
+
let { splitChunks } = compiler.options.optimization;
|
|
2315
|
+
if (splitChunks && (splitChunks.chunks = "all", splitChunks.minSize = 0), err = (config = compiler.options).optimization.concatenateModules ? "You should disable `config.optimization.concatenateModules`" : !1 !== config.output.chunkFormat ? "You should disable default chunkFormat by `config.output.chunkFormat = false`" : void 0) throw new src_0.WebpackError(`Conflicted config for ${EsmLibraryPlugin.PLUGIN_NAME}: ${err}`);
|
|
2316
|
+
compiler.__internal__registerBuiltinPlugin({
|
|
2317
|
+
name: binding_.BuiltinPluginName.EsmLibraryPlugin,
|
|
2318
|
+
options: {}
|
|
2319
|
+
});
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
let EvalDevToolModulePlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, "compilation"), EvalSourceMapDevToolPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, "compilation");
|
|
2308
2323
|
function isNil(value) {
|
|
2309
2324
|
return null == value;
|
|
2310
2325
|
}
|
|
@@ -2749,10 +2764,10 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2749
2764
|
}
|
|
2750
2765
|
}
|
|
2751
2766
|
class Hash {
|
|
2752
|
-
update(
|
|
2767
|
+
update() {
|
|
2753
2768
|
throw new AbstractMethodError();
|
|
2754
2769
|
}
|
|
2755
|
-
digest(
|
|
2770
|
+
digest() {
|
|
2756
2771
|
throw new AbstractMethodError();
|
|
2757
2772
|
}
|
|
2758
2773
|
}
|
|
@@ -2869,7 +2884,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2869
2884
|
constructor(){
|
|
2870
2885
|
super(), this.string = "";
|
|
2871
2886
|
}
|
|
2872
|
-
update(data
|
|
2887
|
+
update(data) {
|
|
2873
2888
|
let normalizedData;
|
|
2874
2889
|
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
2890
|
}
|
|
@@ -3951,6 +3966,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
3951
3966
|
requireAsExpression: parser.requireAsExpression,
|
|
3952
3967
|
requireDynamic: parser.requireDynamic,
|
|
3953
3968
|
requireResolve: parser.requireResolve,
|
|
3969
|
+
commonjs: parser.commonjs,
|
|
3954
3970
|
importDynamic: parser.importDynamic,
|
|
3955
3971
|
commonjsMagicComments: parser.commonjsMagicComments,
|
|
3956
3972
|
inlineConst: parser.inlineConst,
|
|
@@ -4147,7 +4163,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
4147
4163
|
constructor(global){
|
|
4148
4164
|
super(), this.global = global;
|
|
4149
4165
|
}
|
|
4150
|
-
raw(
|
|
4166
|
+
raw() {
|
|
4151
4167
|
return (0, builtin_plugin_base.no)(this.name, this.global);
|
|
4152
4168
|
}
|
|
4153
4169
|
}
|
|
@@ -7379,7 +7395,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7379
7395
|
constructor(deterministic){
|
|
7380
7396
|
super(), this.deterministic = deterministic;
|
|
7381
7397
|
}
|
|
7382
|
-
raw(
|
|
7398
|
+
raw() {
|
|
7383
7399
|
return (0, builtin_plugin_base.no)(this.name, this.deterministic);
|
|
7384
7400
|
}
|
|
7385
7401
|
}
|
|
@@ -7387,7 +7403,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7387
7403
|
class ModuleConcatenationPlugin extends builtin_plugin_base.Xj {
|
|
7388
7404
|
name = binding_.BuiltinPluginName.ModuleConcatenationPlugin;
|
|
7389
7405
|
affectedHooks = "compilation";
|
|
7390
|
-
raw(
|
|
7406
|
+
raw() {
|
|
7391
7407
|
return (0, builtin_plugin_base.no)(this.name, void 0);
|
|
7392
7408
|
}
|
|
7393
7409
|
}
|
|
@@ -7395,14 +7411,14 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7395
7411
|
class NaturalChunkIdsPlugin extends builtin_plugin_base.Xj {
|
|
7396
7412
|
name = binding_.BuiltinPluginName.NaturalChunkIdsPlugin;
|
|
7397
7413
|
affectedHooks = "compilation";
|
|
7398
|
-
raw(
|
|
7414
|
+
raw() {
|
|
7399
7415
|
return (0, builtin_plugin_base.no)(this.name, void 0);
|
|
7400
7416
|
}
|
|
7401
7417
|
}
|
|
7402
7418
|
class NaturalModuleIdsPlugin extends builtin_plugin_base.Xj {
|
|
7403
7419
|
name = binding_.BuiltinPluginName.NaturalModuleIdsPlugin;
|
|
7404
7420
|
affectedHooks = "compilation";
|
|
7405
|
-
raw(
|
|
7421
|
+
raw() {
|
|
7406
7422
|
return (0, builtin_plugin_base.no)(this.name, void 0);
|
|
7407
7423
|
}
|
|
7408
7424
|
}
|
|
@@ -7420,7 +7436,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7420
7436
|
]), [
|
|
7421
7437
|
key,
|
|
7422
7438
|
value
|
|
7423
|
-
]))), "compilation"), RealContentHashPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.RealContentHashPlugin, ()=>{}, "compilation"),
|
|
7439
|
+
]))), "compilation"), RealContentHashPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.RealContentHashPlugin, ()=>{}, "compilation"), RemoveEmptyChunksPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.RemoveEmptyChunksPlugin, ()=>{}, "compilation"), RsdoctorPluginImpl = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.RsdoctorPlugin, function(c = {
|
|
7424
7440
|
moduleGraphFeatures: !0,
|
|
7425
7441
|
chunkGraphFeatures: !0
|
|
7426
7442
|
}) {
|
|
@@ -7720,7 +7736,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7720
7736
|
module: options?.minimizerOptions?.module
|
|
7721
7737
|
}
|
|
7722
7738
|
};
|
|
7723
|
-
}, "compilation"), WarnCaseSensitiveModulesPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.WarnCaseSensitiveModulesPlugin, ()=>{}, "compilation");
|
|
7739
|
+
}, "compilation"), URLPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.URLPlugin, ()=>{}, "compilation"), WarnCaseSensitiveModulesPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.WarnCaseSensitiveModulesPlugin, ()=>{}, "compilation");
|
|
7724
7740
|
class WebWorkerTemplatePlugin extends builtin_plugin_base.Xj {
|
|
7725
7741
|
name = binding_.BuiltinPluginName.WebWorkerTemplatePlugin;
|
|
7726
7742
|
raw(compiler) {
|
|
@@ -8607,7 +8623,6 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
8607
8623
|
"./src"
|
|
8608
8624
|
]);
|
|
8609
8625
|
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
8626
|
development
|
|
8612
8627
|
}), applyOptimizationDefaults(options.optimization, {
|
|
8613
8628
|
production,
|
|
@@ -8652,13 +8667,13 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
8652
8667
|
defaults_F(infrastructureLogging, "stream", ()=>process.stderr);
|
|
8653
8668
|
let tty = infrastructureLogging.stream?.isTTY && "dumb" !== process.env.TERM;
|
|
8654
8669
|
D(infrastructureLogging, "level", "info"), D(infrastructureLogging, "debug", !1), D(infrastructureLogging, "colors", tty), D(infrastructureLogging, "appendOnly", !tty);
|
|
8655
|
-
}, applyExperimentsDefaults = (experiments, {
|
|
8670
|
+
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
8656
8671
|
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
8672
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
8658
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.
|
|
8673
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.8"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
8659
8674
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst })=>{
|
|
8660
8675
|
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", [
|
|
8676
|
+
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
8677
|
"..."
|
|
8663
8678
|
]), D(parserOptions, "importMeta", !0), D(parserOptions, "inlineConst", usedExports && inlineConst), D(parserOptions, "typeReexportsPresence", "no-tolerant"), D(parserOptions, "jsx", !1);
|
|
8664
8679
|
})(module.parser.javascript, {
|
|
@@ -9403,7 +9418,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
9403
9418
|
}
|
|
9404
9419
|
let printGeneratedCodeForStack = (moduleId, code)=>{
|
|
9405
9420
|
let lines = code.split("\n"), n = `${lines.length}`.length;
|
|
9406
|
-
return `\n\nGenerated code for ${moduleId}\n${lines.map((line, i
|
|
9421
|
+
return `\n\nGenerated code for ${moduleId}\n${lines.map((line, i)=>{
|
|
9407
9422
|
let iStr = `${i + 1}`;
|
|
9408
9423
|
return `${" ".repeat(n - iStr.length)}${iStr} | ${line}`;
|
|
9409
9424
|
}).join("\n")}`;
|
|
@@ -10299,7 +10314,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
10299
10314
|
});
|
|
10300
10315
|
}
|
|
10301
10316
|
}
|
|
10302
|
-
let CORE_VERSION = "1.5.
|
|
10317
|
+
let CORE_VERSION = "1.5.8", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
10303
10318
|
|
|
10304
10319
|
Help:
|
|
10305
10320
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -11312,7 +11327,7 @@ Help:
|
|
|
11312
11327
|
};
|
|
11313
11328
|
})
|
|
11314
11329
|
}),
|
|
11315
|
-
...((getCompiler, createTap
|
|
11330
|
+
...((getCompiler, createTap)=>{
|
|
11316
11331
|
let getOptions = (uid)=>((compilation, uid)=>{
|
|
11317
11332
|
if (!(compilation instanceof Compilation)) throw TypeError("The 'compilation' argument must be an instance of Compilation");
|
|
11318
11333
|
return compilationOptionsMap.get(compilation)?.[uid];
|
|
@@ -11397,7 +11412,7 @@ Help:
|
|
|
11397
11412
|
};
|
|
11398
11413
|
})
|
|
11399
11414
|
};
|
|
11400
|
-
})(getCompiler7, createTap6,
|
|
11415
|
+
})(getCompiler7, createTap6, createMapTap2),
|
|
11401
11416
|
...(getCompiler5 = getCompiler7, {
|
|
11402
11417
|
registerRuntimePluginCreateScriptTaps: (createTap4 = createTap6)(binding_default().RegisterJsTapKind.RuntimePluginCreateScript, function() {
|
|
11403
11418
|
return RuntimePlugin.getCompilationHooks(getCompiler5().__internal__get_compilation()).createScript;
|
|
@@ -11583,7 +11598,7 @@ Help:
|
|
|
11583
11598
|
obj.children = this.stats.map((stat, idx)=>{
|
|
11584
11599
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
11585
11600
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
11586
|
-
}), childOptions.version && (obj.rspackVersion = "1.5.
|
|
11601
|
+
}), childOptions.version && (obj.rspackVersion = "1.5.8", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
11587
11602
|
let mapError = (j, obj)=>({
|
|
11588
11603
|
...obj,
|
|
11589
11604
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -12408,6 +12423,7 @@ Help:
|
|
|
12408
12423
|
LogType.warn,
|
|
12409
12424
|
LogType.info,
|
|
12410
12425
|
LogType.log,
|
|
12426
|
+
LogType.debug,
|
|
12411
12427
|
LogType.group,
|
|
12412
12428
|
LogType.groupEnd,
|
|
12413
12429
|
LogType.groupCollapsed,
|
|
@@ -12479,7 +12495,7 @@ Help:
|
|
|
12479
12495
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
12480
12496
|
},
|
|
12481
12497
|
version: (object)=>{
|
|
12482
|
-
object.version = "5.75.0", object.rspackVersion = "1.5.
|
|
12498
|
+
object.version = "5.75.0", object.rspackVersion = "1.5.8";
|
|
12483
12499
|
},
|
|
12484
12500
|
env: (object, _compilation, _context, { _env })=>{
|
|
12485
12501
|
object.env = _env;
|
|
@@ -12541,7 +12557,7 @@ Help:
|
|
|
12541
12557
|
return chunk && 1 === chunk.files.size && (!chunkGroupAuxiliary || 0 === chunk.auxiliaryFiles.size);
|
|
12542
12558
|
})) || (object.entrypoints = factory.create(`${type}.entrypoints`, array, context));
|
|
12543
12559
|
},
|
|
12544
|
-
chunkGroups: (object, compilation, context,
|
|
12560
|
+
chunkGroups: (object, compilation, context, _, factory)=>{
|
|
12545
12561
|
let { type, getStatsCompilation } = context, namedChunkGroups = getStatsCompilation(compilation).namedChunkGroups.map((cg)=>({
|
|
12546
12562
|
name: cg.name,
|
|
12547
12563
|
chunkGroup: cg
|
|
@@ -12734,7 +12750,7 @@ Help:
|
|
|
12734
12750
|
error: EXTRACT_ERROR,
|
|
12735
12751
|
warning: EXTRACT_ERROR,
|
|
12736
12752
|
moduleTraceItem: {
|
|
12737
|
-
_: (object, { origin, module, dependencies }, context,
|
|
12753
|
+
_: (object, { origin, module, dependencies }, context, _, factory)=>{
|
|
12738
12754
|
let { type } = context;
|
|
12739
12755
|
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
12756
|
},
|
|
@@ -12900,7 +12916,7 @@ Help:
|
|
|
12900
12916
|
chunkGroups: OFF_FOR_TO_STRING,
|
|
12901
12917
|
chunkGroupAuxiliary: OFF_FOR_TO_STRING,
|
|
12902
12918
|
chunkGroupChildren: OFF_FOR_TO_STRING,
|
|
12903
|
-
chunkGroupMaxAssets: (
|
|
12919
|
+
chunkGroupMaxAssets: (_, { forToString })=>forToString ? 5 : 1 / 0,
|
|
12904
12920
|
chunks: OFF_FOR_TO_STRING,
|
|
12905
12921
|
chunkRelations: OFF_FOR_TO_STRING,
|
|
12906
12922
|
chunkModules: ({ all, modules })=>!1 !== all && (!0 === all || !modules),
|
|
@@ -12915,16 +12931,16 @@ Help:
|
|
|
12915
12931
|
groupModulesByAttributes: ON_FOR_TO_STRING,
|
|
12916
12932
|
groupModulesByPath: ON_FOR_TO_STRING,
|
|
12917
12933
|
groupModulesByExtension: ON_FOR_TO_STRING,
|
|
12918
|
-
modulesSpace: (
|
|
12919
|
-
chunkModulesSpace: (
|
|
12920
|
-
nestedModulesSpace: (
|
|
12934
|
+
modulesSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
|
|
12935
|
+
chunkModulesSpace: (_, { forToString })=>forToString ? 10 : 1 / 0,
|
|
12936
|
+
nestedModulesSpace: (_, { forToString })=>forToString ? 10 : 1 / 0,
|
|
12921
12937
|
relatedAssets: OFF_FOR_TO_STRING,
|
|
12922
12938
|
groupAssetsByEmitStatus: ON_FOR_TO_STRING,
|
|
12923
12939
|
groupAssetsByInfo: ON_FOR_TO_STRING,
|
|
12924
12940
|
groupAssetsByPath: ON_FOR_TO_STRING,
|
|
12925
12941
|
groupAssetsByExtension: ON_FOR_TO_STRING,
|
|
12926
12942
|
groupAssetsByChunk: ON_FOR_TO_STRING,
|
|
12927
|
-
assetsSpace: (
|
|
12943
|
+
assetsSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
|
|
12928
12944
|
orphanModules: OFF_FOR_TO_STRING,
|
|
12929
12945
|
runtimeModules: ({ all, runtime }, { forToString })=>void 0 !== runtime ? runtime : forToString ? !0 === all : !1 !== all,
|
|
12930
12946
|
cachedModules: ({ all, cached }, { forToString })=>void 0 !== cached ? cached : forToString ? !0 === all : !1 !== all,
|
|
@@ -12932,7 +12948,7 @@ Help:
|
|
|
12932
12948
|
depth: OFF_FOR_TO_STRING,
|
|
12933
12949
|
cachedAssets: OFF_FOR_TO_STRING,
|
|
12934
12950
|
reasons: OFF_FOR_TO_STRING,
|
|
12935
|
-
reasonsSpace: (
|
|
12951
|
+
reasonsSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
|
|
12936
12952
|
groupReasonsByOrigin: ON_FOR_TO_STRING,
|
|
12937
12953
|
usedExports: OFF_FOR_TO_STRING,
|
|
12938
12954
|
providedExports: OFF_FOR_TO_STRING,
|
|
@@ -12994,7 +13010,7 @@ Help:
|
|
|
12994
13010
|
compiler.hooks.compilation.tap("DefaultStatsPresetPlugin", (compilation)=>{
|
|
12995
13011
|
for (let key of Object.keys(NAMED_PRESETS)){
|
|
12996
13012
|
let defaults = NAMED_PRESETS[key];
|
|
12997
|
-
compilation.hooks.statsPreset.for(key).tap("DefaultStatsPresetPlugin", (options
|
|
13013
|
+
compilation.hooks.statsPreset.for(key).tap("DefaultStatsPresetPlugin", (options)=>{
|
|
12998
13014
|
applyDefaults(options, defaults);
|
|
12999
13015
|
});
|
|
13000
13016
|
}
|
|
@@ -13056,7 +13072,7 @@ Help:
|
|
|
13056
13072
|
},
|
|
13057
13073
|
"asset.type": (type)=>type,
|
|
13058
13074
|
"asset.name": (name, { formatFilename, asset: { isOverSizeLimit } })=>formatFilename(name, isOverSizeLimit),
|
|
13059
|
-
"asset.size": (size, { asset: { isOverSizeLimit }, yellow,
|
|
13075
|
+
"asset.size": (size, { asset: { isOverSizeLimit }, yellow, formatSize })=>isOverSizeLimit ? yellow(formatSize(size)) : formatSize(size),
|
|
13060
13076
|
"asset.emitted": (emitted, { green, formatFlag })=>emitted ? green(formatFlag("emitted")) : void 0,
|
|
13061
13077
|
"asset.comparedForEmit": (comparedForEmit, { yellow, formatFlag })=>comparedForEmit ? yellow(formatFlag("compared for emit")) : void 0,
|
|
13062
13078
|
"asset.cached": (cached, { green, formatFlag })=>cached ? green(formatFlag("cached")) : void 0,
|
|
@@ -13832,7 +13848,7 @@ Help:
|
|
|
13832
13848
|
moduleFilenameTemplate: options.output.devtoolModuleFilenameTemplate,
|
|
13833
13849
|
namespace: options.output.devtoolNamespace
|
|
13834
13850
|
}).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);
|
|
13851
|
+
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
13852
|
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
13853
|
let moduleIds = options.optimization.moduleIds;
|
|
13838
13854
|
if (moduleIds) switch(moduleIds){
|
|
@@ -14997,6 +15013,7 @@ Help:
|
|
|
14997
15013
|
"auto"
|
|
14998
15014
|
]), javascriptParserUrl = union([
|
|
14999
15015
|
literal("relative"),
|
|
15016
|
+
literal("new-url-relative"),
|
|
15000
15017
|
schemas_boolean()
|
|
15001
15018
|
]), exprContextCritical = schemas_boolean(), wrappedContextCritical = schemas_boolean(), unknownContextCritical = schemas_boolean(), wrappedContextRegExp = _instanceof(RegExp), exportsPresence = schemas_enum([
|
|
15002
15019
|
"error",
|
|
@@ -15013,7 +15030,12 @@ Help:
|
|
|
15013
15030
|
]).or(literal(!1)), strictExportPresence = schemas_boolean(), worker = schemas_array(schemas_string()).or(schemas_boolean()), overrideStrict = schemas_enum([
|
|
15014
15031
|
"strict",
|
|
15015
15032
|
"non-strict"
|
|
15016
|
-
]), requireAsExpression = schemas_boolean(), requireDynamic = schemas_boolean(), requireResolve = schemas_boolean(),
|
|
15033
|
+
]), requireAsExpression = schemas_boolean(), requireDynamic = schemas_boolean(), requireResolve = schemas_boolean(), commonjsExports = union([
|
|
15034
|
+
schemas_boolean(),
|
|
15035
|
+
literal("skipInEsm")
|
|
15036
|
+
]), commonjs = schemas_boolean().or(strictObject({
|
|
15037
|
+
exports: commonjsExports
|
|
15038
|
+
}).partial()), importDynamic = schemas_boolean(), commonjsMagicComments = schemas_boolean(), inlineConst = schemas_boolean(), typeReexportsPresence = schemas_enum([
|
|
15017
15039
|
"no-tolerant",
|
|
15018
15040
|
"tolerant",
|
|
15019
15041
|
"tolerant-no-check"
|
|
@@ -15038,6 +15060,7 @@ Help:
|
|
|
15038
15060
|
requireAsExpression: requireAsExpression,
|
|
15039
15061
|
requireDynamic: requireDynamic,
|
|
15040
15062
|
requireResolve: requireResolve,
|
|
15063
|
+
commonjs: commonjs,
|
|
15041
15064
|
importDynamic: importDynamic,
|
|
15042
15065
|
inlineConst: inlineConst,
|
|
15043
15066
|
typeReexportsPresence: typeReexportsPresence,
|
|
@@ -15797,7 +15820,7 @@ Help:
|
|
|
15797
15820
|
let _options = JSON.stringify(options || {});
|
|
15798
15821
|
return binding_default().transform(source, _options);
|
|
15799
15822
|
}
|
|
15800
|
-
let exports_rspackVersion = "1.5.
|
|
15823
|
+
let exports_rspackVersion = "1.5.8", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
15801
15824
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
15802
15825
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
15803
15826
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
|
@@ -15988,6 +16011,7 @@ Help:
|
|
|
15988
16011
|
}
|
|
15989
16012
|
},
|
|
15990
16013
|
RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin,
|
|
16014
|
+
EsmLibraryPlugin: EsmLibraryPlugin,
|
|
15991
16015
|
RsdoctorPlugin: RsdoctorPluginImpl,
|
|
15992
16016
|
RstestPlugin: RstestPlugin,
|
|
15993
16017
|
RslibPlugin: RslibPlugin,
|
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/core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.8",
|
|
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": "1.5.
|
|
63
|
+
"@rspack/binding": "1.5.8"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@swc/helpers": ">=0.5.1"
|