@rspack/core 1.5.5 → 1.5.7
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/Compiler.d.ts +45 -32
- package/dist/MultiCompiler.d.ts +5 -2
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RslibPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RstestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/types.d.ts +6 -0
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +1 -1
- package/dist/index.js +18 -17
- package/dist/schema/config.d.ts +8 -0
- package/dist/schema/loaders.d.ts +1 -0
- package/dist/stats/statsFactoryUtils.d.ts +0 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ export declare const NormalModuleReplacementPlugin: {
|
|
|
3
3
|
new (resourceRegExp: RegExp, newResource: string | ((data: ResolveData) => void)): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [resourceRegExp: RegExp, newResource: string | ((data: ResolveData) => void)];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const OccurrenceChunkIdsPlugin: {
|
|
|
3
3
|
new (options?: RawOccurrenceChunkIdsPluginOptions | undefined): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [options?: RawOccurrenceChunkIdsPluginOptions | undefined];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -4,7 +4,7 @@ export declare const ProgressPlugin: {
|
|
|
4
4
|
new (progress?: ProgressPluginArgument): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [progress?: ProgressPluginArgument];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ export declare const ProvidePlugin: {
|
|
|
3
3
|
new (provide: ProvidePluginOptions): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [provide: ProvidePluginOptions];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -2,7 +2,7 @@ export declare const RealContentHashPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const RemoveDuplicateModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const RemoveEmptyChunksPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -18,7 +18,7 @@ declare const RsdoctorPluginImpl: {
|
|
|
18
18
|
new (c?: RsdoctorPluginOptions | undefined): {
|
|
19
19
|
name: string;
|
|
20
20
|
_args: [c?: RsdoctorPluginOptions | undefined];
|
|
21
|
-
affectedHooks:
|
|
21
|
+
affectedHooks: keyof import("../Compiler").CompilerHooks | undefined;
|
|
22
22
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
23
23
|
apply(compiler: Compiler): void;
|
|
24
24
|
};
|
|
@@ -4,7 +4,7 @@ export declare const RslibPlugin: {
|
|
|
4
4
|
new (rslib: RawRslibPluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [rslib: RawRslibPluginOptions];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const RstestPlugin: {
|
|
|
4
4
|
new (rstest: RawRstestPluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [rstest: RawRstestPluginOptions];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const RuntimeChunkPlugin: {
|
|
|
4
4
|
new (options: RawRuntimeChunkOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [options: RawRuntimeChunkOptions];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -7,7 +7,7 @@ export declare const RuntimePluginImpl: {
|
|
|
7
7
|
new (): {
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [];
|
|
10
|
-
affectedHooks:
|
|
10
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
11
11
|
raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
|
|
12
12
|
apply(compiler: import("..").Compiler): void;
|
|
13
13
|
};
|
|
@@ -2,7 +2,7 @@ export declare const SideEffectsFlagPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -12,7 +12,7 @@ export declare const SizeLimitsPlugin: {
|
|
|
12
12
|
maxAssetSize?: number;
|
|
13
13
|
maxEntrypointSize?: number;
|
|
14
14
|
}];
|
|
15
|
-
affectedHooks:
|
|
15
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
16
16
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
17
17
|
apply(compiler: import("..").Compiler): void;
|
|
18
18
|
};
|
|
@@ -4,7 +4,7 @@ export declare const SourceMapDevToolPlugin: {
|
|
|
4
4
|
new (options: SourceMapDevToolPluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [options: SourceMapDevToolPluginOptions];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -20,7 +20,7 @@ declare const NativeSubresourceIntegrityPlugin: {
|
|
|
20
20
|
new (options: NativeSubresourceIntegrityPluginOptions): {
|
|
21
21
|
name: string;
|
|
22
22
|
_args: [options: NativeSubresourceIntegrityPluginOptions];
|
|
23
|
-
affectedHooks:
|
|
23
|
+
affectedHooks: keyof import("../Compiler").CompilerHooks | undefined;
|
|
24
24
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
25
25
|
apply(compiler: Compiler): void;
|
|
26
26
|
};
|
|
@@ -206,7 +206,7 @@ export declare const SwcJsMinimizerRspackPlugin: {
|
|
|
206
206
|
new (options?: SwcJsMinimizerRspackPluginOptions | undefined): {
|
|
207
207
|
name: string;
|
|
208
208
|
_args: [options?: SwcJsMinimizerRspackPluginOptions | undefined];
|
|
209
|
-
affectedHooks:
|
|
209
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
210
210
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
211
211
|
apply(compiler: import("..").Compiler): void;
|
|
212
212
|
};
|
|
@@ -2,7 +2,7 @@ export declare const WarnCaseSensitiveModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -14,7 +14,7 @@ export declare function create<T extends any[], R>(name: binding.BuiltinPluginNa
|
|
|
14
14
|
new (...args: T): {
|
|
15
15
|
name: string;
|
|
16
16
|
_args: T;
|
|
17
|
-
affectedHooks:
|
|
17
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
18
18
|
raw(compiler: Compiler): binding.BuiltinPlugin;
|
|
19
19
|
apply(compiler: Compiler): void;
|
|
20
20
|
};
|
|
@@ -37,7 +37,7 @@ export declare function createNativePlugin<T extends any[], R>(name: CustomPlugi
|
|
|
37
37
|
new (...args: T): {
|
|
38
38
|
name: string;
|
|
39
39
|
_args: T;
|
|
40
|
-
affectedHooks:
|
|
40
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
41
41
|
raw(compiler: Compiler): binding.BuiltinPlugin;
|
|
42
42
|
apply(compiler: Compiler): void;
|
|
43
43
|
};
|
|
@@ -7,7 +7,7 @@ declare const HtmlRspackPluginImpl: {
|
|
|
7
7
|
new (c?: HtmlRspackPluginOptions | undefined): {
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [c?: HtmlRspackPluginOptions | undefined];
|
|
10
|
-
affectedHooks:
|
|
10
|
+
affectedHooks: keyof import("../../Compiler").CompilerHooks | undefined;
|
|
11
11
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
12
12
|
apply(compiler: Compiler): void;
|
|
13
13
|
};
|
|
@@ -3,7 +3,7 @@ export declare const BuiltinLazyCompilationPlugin: {
|
|
|
3
3
|
new (currentActiveModules: () => Set<string>, entries: boolean, imports: boolean, client: string, test?: RegExp | ((module: Module) => boolean) | undefined): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [currentActiveModules: () => Set<string>, entries: boolean, imports: boolean, client: string, test?: RegExp | ((module: Module) => boolean) | undefined];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("../..").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: import("../..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../..").Compiler): void;
|
|
9
9
|
};
|
package/dist/config/types.d.ts
CHANGED
|
@@ -796,10 +796,16 @@ export type JavascriptParserOptions = {
|
|
|
796
796
|
requireDynamic?: boolean;
|
|
797
797
|
requireResolve?: boolean;
|
|
798
798
|
importDynamic?: boolean;
|
|
799
|
+
/**
|
|
800
|
+
* Enable magic comments for CommonJS require() expressions.
|
|
801
|
+
*/
|
|
802
|
+
commonjsMagicComments?: boolean;
|
|
799
803
|
/** Inline const values in this module */
|
|
800
804
|
inlineConst?: boolean;
|
|
801
805
|
/** Whether to tolerant exportsPresence for type reexport */
|
|
802
806
|
typeReexportsPresence?: "no-tolerant" | "tolerant" | "tolerant-no-check";
|
|
807
|
+
/** Whether to enable JSX parsing */
|
|
808
|
+
jsx?: boolean;
|
|
803
809
|
};
|
|
804
810
|
export type JsonParserOptions = {
|
|
805
811
|
/**
|
|
@@ -5,7 +5,7 @@ export declare const ModuleFederationRuntimePlugin: {
|
|
|
5
5
|
new (options?: ModuleFederationRuntimeOptions | undefined): {
|
|
6
6
|
name: string;
|
|
7
7
|
_args: [options?: ModuleFederationRuntimeOptions | undefined];
|
|
8
|
-
affectedHooks:
|
|
8
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
9
9
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
10
10
|
apply(compiler: import("..").Compiler): void;
|
|
11
11
|
};
|
package/dist/exports.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare const version: string;
|
|
|
3
3
|
export { rspackVersion, version };
|
|
4
4
|
export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData } from "./Compilation";
|
|
5
5
|
export { Compilation } from "./Compilation";
|
|
6
|
-
export { Compiler } from "./Compiler";
|
|
6
|
+
export { Compiler, type CompilerHooks } from "./Compiler";
|
|
7
7
|
export type { MultiCompilerOptions, MultiRspackOptions } from "./MultiCompiler";
|
|
8
8
|
export { MultiCompiler } from "./MultiCompiler";
|
|
9
9
|
import { RspackOptionsApply } from "./rspackOptionsApply";
|
package/dist/index.js
CHANGED
|
@@ -3952,8 +3952,10 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
3952
3952
|
requireDynamic: parser.requireDynamic,
|
|
3953
3953
|
requireResolve: parser.requireResolve,
|
|
3954
3954
|
importDynamic: parser.importDynamic,
|
|
3955
|
+
commonjsMagicComments: parser.commonjsMagicComments,
|
|
3955
3956
|
inlineConst: parser.inlineConst,
|
|
3956
|
-
typeReexportsPresence: parser.typeReexportsPresence
|
|
3957
|
+
typeReexportsPresence: parser.typeReexportsPresence,
|
|
3958
|
+
jsx: parser.jsx
|
|
3957
3959
|
};
|
|
3958
3960
|
}
|
|
3959
3961
|
function getRawCssParserOptions(parser) {
|
|
@@ -8653,12 +8655,12 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
8653
8655
|
}, applyExperimentsDefaults = (experiments, { production, development })=>{
|
|
8654
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);
|
|
8655
8657
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
8656
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.
|
|
8658
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.7"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
8657
8659
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst })=>{
|
|
8658
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 })=>{
|
|
8659
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", [
|
|
8660
8662
|
"..."
|
|
8661
|
-
]), D(parserOptions, "importMeta", !0), D(parserOptions, "inlineConst", usedExports && inlineConst), D(parserOptions, "typeReexportsPresence", "no-tolerant");
|
|
8663
|
+
]), D(parserOptions, "importMeta", !0), D(parserOptions, "inlineConst", usedExports && inlineConst), D(parserOptions, "typeReexportsPresence", "no-tolerant"), D(parserOptions, "jsx", !1);
|
|
8662
8664
|
})(module.parser.javascript, {
|
|
8663
8665
|
usedExports,
|
|
8664
8666
|
inlineConst
|
|
@@ -10297,7 +10299,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
10297
10299
|
});
|
|
10298
10300
|
}
|
|
10299
10301
|
}
|
|
10300
|
-
let CORE_VERSION = "1.5.
|
|
10302
|
+
let CORE_VERSION = "1.5.7", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
10301
10303
|
|
|
10302
10304
|
Help:
|
|
10303
10305
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -11581,7 +11583,7 @@ Help:
|
|
|
11581
11583
|
obj.children = this.stats.map((stat, idx)=>{
|
|
11582
11584
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
11583
11585
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
11584
|
-
}), childOptions.version && (obj.rspackVersion = "1.5.
|
|
11586
|
+
}), childOptions.version && (obj.rspackVersion = "1.5.7", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
11585
11587
|
let mapError = (j, obj)=>({
|
|
11586
11588
|
...obj,
|
|
11587
11589
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -12036,11 +12038,7 @@ Help:
|
|
|
12036
12038
|
let obj = Object.create(null);
|
|
12037
12039
|
for (let item of items)obj[item.name] = item;
|
|
12038
12040
|
return obj;
|
|
12039
|
-
}
|
|
12040
|
-
function resolveStatsMillisecond(s) {
|
|
12041
|
-
return 1000 * s.secs + s.subsecMillis;
|
|
12042
|
-
}
|
|
12043
|
-
let errorsSpaceLimit = (errors, max)=>{
|
|
12041
|
+
}, errorsSpaceLimit = (errors, max)=>{
|
|
12044
12042
|
let filtered = 0;
|
|
12045
12043
|
if (errors.length + 1 >= max) return {
|
|
12046
12044
|
errors: errors.map((error)=>"string" != typeof error && error.details ? (filtered++, {
|
|
@@ -12481,7 +12479,7 @@ Help:
|
|
|
12481
12479
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
12482
12480
|
},
|
|
12483
12481
|
version: (object)=>{
|
|
12484
|
-
object.version = "5.75.0", object.rspackVersion = "1.5.
|
|
12482
|
+
object.version = "5.75.0", object.rspackVersion = "1.5.7";
|
|
12485
12483
|
},
|
|
12486
12484
|
env: (object, _compilation, _context, { _env })=>{
|
|
12487
12485
|
object.env = _env;
|
|
@@ -12672,7 +12670,7 @@ Help:
|
|
|
12672
12670
|
},
|
|
12673
12671
|
profile: {
|
|
12674
12672
|
_: (object, profile)=>{
|
|
12675
|
-
let factory =
|
|
12673
|
+
let factory = profile.factory, building = profile.building;
|
|
12676
12674
|
Object.assign(object, {
|
|
12677
12675
|
total: factory + building,
|
|
12678
12676
|
resolving: factory,
|
|
@@ -14530,7 +14528,8 @@ Help:
|
|
|
14530
14528
|
}).partial()),
|
|
14531
14529
|
runtime: schemas_enum([
|
|
14532
14530
|
"automatic",
|
|
14533
|
-
"classic"
|
|
14531
|
+
"classic",
|
|
14532
|
+
"preserve"
|
|
14534
14533
|
]),
|
|
14535
14534
|
importSource: schemas_string()
|
|
14536
14535
|
}).partial(), ZodSwcConstModulesConfig = strictObject({
|
|
@@ -15014,11 +15013,11 @@ Help:
|
|
|
15014
15013
|
]).or(literal(!1)), strictExportPresence = schemas_boolean(), worker = schemas_array(schemas_string()).or(schemas_boolean()), overrideStrict = schemas_enum([
|
|
15015
15014
|
"strict",
|
|
15016
15015
|
"non-strict"
|
|
15017
|
-
]), requireAsExpression = schemas_boolean(), requireDynamic = schemas_boolean(), requireResolve = schemas_boolean(), importDynamic = schemas_boolean(), inlineConst = schemas_boolean(), typeReexportsPresence = schemas_enum([
|
|
15016
|
+
]), requireAsExpression = schemas_boolean(), requireDynamic = schemas_boolean(), requireResolve = schemas_boolean(), importDynamic = schemas_boolean(), commonjsMagicComments = schemas_boolean(), inlineConst = schemas_boolean(), typeReexportsPresence = schemas_enum([
|
|
15018
15017
|
"no-tolerant",
|
|
15019
15018
|
"tolerant",
|
|
15020
15019
|
"tolerant-no-check"
|
|
15021
|
-
]), javascriptParserOptions = strictObject({
|
|
15020
|
+
]), jsx = schemas_boolean(), javascriptParserOptions = strictObject({
|
|
15022
15021
|
dynamicImportMode: dynamicImportMode,
|
|
15023
15022
|
dynamicImportPreload: dynamicImportPreload,
|
|
15024
15023
|
dynamicImportPrefetch: dynamicImportPrefetch,
|
|
@@ -15035,12 +15034,14 @@ Help:
|
|
|
15035
15034
|
strictExportPresence: strictExportPresence,
|
|
15036
15035
|
worker: worker,
|
|
15037
15036
|
overrideStrict: overrideStrict,
|
|
15037
|
+
commonjsMagicComments: commonjsMagicComments,
|
|
15038
15038
|
requireAsExpression: requireAsExpression,
|
|
15039
15039
|
requireDynamic: requireDynamic,
|
|
15040
15040
|
requireResolve: requireResolve,
|
|
15041
15041
|
importDynamic: importDynamic,
|
|
15042
15042
|
inlineConst: inlineConst,
|
|
15043
|
-
typeReexportsPresence: typeReexportsPresence
|
|
15043
|
+
typeReexportsPresence: typeReexportsPresence,
|
|
15044
|
+
jsx: jsx
|
|
15044
15045
|
}).partial(), parserOptionsByModuleTypeKnown = strictObject({
|
|
15045
15046
|
asset: assetParserOptions,
|
|
15046
15047
|
css: cssParserOptions,
|
|
@@ -15796,7 +15797,7 @@ Help:
|
|
|
15796
15797
|
let _options = JSON.stringify(options || {});
|
|
15797
15798
|
return binding_default().transform(source, _options);
|
|
15798
15799
|
}
|
|
15799
|
-
let exports_rspackVersion = "1.5.
|
|
15800
|
+
let exports_rspackVersion = "1.5.7", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
15800
15801
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
15801
15802
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
15802
15803
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/dist/schema/config.d.ts
CHANGED
|
@@ -762,6 +762,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
762
762
|
strict: "strict";
|
|
763
763
|
"non-strict": "non-strict";
|
|
764
764
|
}>>;
|
|
765
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
765
766
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
766
767
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
767
768
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -772,6 +773,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
772
773
|
tolerant: "tolerant";
|
|
773
774
|
"tolerant-no-check": "tolerant-no-check";
|
|
774
775
|
}>>;
|
|
776
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
775
777
|
}, z.core.$strict>>;
|
|
776
778
|
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
|
777
779
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -814,6 +816,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
814
816
|
strict: "strict";
|
|
815
817
|
"non-strict": "non-strict";
|
|
816
818
|
}>>;
|
|
819
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
817
820
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
818
821
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
819
822
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -824,6 +827,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
824
827
|
tolerant: "tolerant";
|
|
825
828
|
"tolerant-no-check": "tolerant-no-check";
|
|
826
829
|
}>>;
|
|
830
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
827
831
|
}, z.core.$strict>>;
|
|
828
832
|
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
|
829
833
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -866,6 +870,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
866
870
|
strict: "strict";
|
|
867
871
|
"non-strict": "non-strict";
|
|
868
872
|
}>>;
|
|
873
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
869
874
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
870
875
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
871
876
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -876,6 +881,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
876
881
|
tolerant: "tolerant";
|
|
877
882
|
"tolerant-no-check": "tolerant-no-check";
|
|
878
883
|
}>>;
|
|
884
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
879
885
|
}, z.core.$strict>>;
|
|
880
886
|
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
|
881
887
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -918,6 +924,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
918
924
|
strict: "strict";
|
|
919
925
|
"non-strict": "non-strict";
|
|
920
926
|
}>>;
|
|
927
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
921
928
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
922
929
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
923
930
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -928,6 +935,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
928
935
|
tolerant: "tolerant";
|
|
929
936
|
"tolerant-no-check": "tolerant-no-check";
|
|
930
937
|
}>>;
|
|
938
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
931
939
|
}, z.core.$strict>>;
|
|
932
940
|
}, z.core.$strict>>;
|
|
933
941
|
generator: z.ZodOptional<z.ZodObject<{
|
package/dist/schema/loaders.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export declare const getZodSwcLoaderOptionsSchema: () => z.ZodObject<{
|
|
|
90
90
|
emitFullSignatures: z.ZodOptional<z.ZodBoolean>;
|
|
91
91
|
}, z.core.$strict>]>>;
|
|
92
92
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
preserve: "preserve";
|
|
93
94
|
automatic: "automatic";
|
|
94
95
|
classic: "classic";
|
|
95
96
|
}>>;
|
|
@@ -316,7 +316,6 @@ export declare const mergeToObject: (items: {
|
|
|
316
316
|
[key: string]: any;
|
|
317
317
|
name: string;
|
|
318
318
|
}[]) => Object;
|
|
319
|
-
export declare function resolveStatsMillisecond(s: binding.JsStatsMillisecond): number;
|
|
320
319
|
export declare const errorsSpaceLimit: (errors: StatsError[], max: number) => {
|
|
321
320
|
errors: StatsError[];
|
|
322
321
|
filtered: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -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.7"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@swc/helpers": ">=0.5.1"
|