@rspack-canary/browser 1.7.0-canary-22d591c5-20251222090400 → 1.7.0-canary-be5d0ef3-20251222175046
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/config/normalization.d.ts +0 -4
- package/dist/config/types.d.ts +0 -5
- package/dist/container/ModuleFederationManifestPlugin.d.ts +2 -9
- package/dist/container/ModuleFederationPlugin.d.ts +1 -16
- package/dist/exports.d.ts +0 -3
- package/dist/index.mjs +303 -863
- package/dist/napi-binding.d.ts +0 -32
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/sharing/ConsumeSharedPlugin.d.ts +0 -16
- package/dist/sharing/ProvideSharedPlugin.d.ts +0 -19
- package/dist/sharing/SharePlugin.d.ts +0 -36
- package/dist/sharing/utils.d.ts +0 -1
- package/package.json +1 -1
- package/dist/sharing/CollectSharedEntryPlugin.d.ts +0 -22
- package/dist/sharing/IndependentSharedPlugin.d.ts +0 -35
- package/dist/sharing/SharedContainerPlugin.d.ts +0 -23
- package/dist/sharing/SharedUsedExportsOptimizerPlugin.d.ts +0 -14
- package/dist/sharing/TreeShakeSharedPlugin.d.ts +0 -19
|
@@ -111,10 +111,6 @@ export interface ExperimentsNormalized {
|
|
|
111
111
|
*/
|
|
112
112
|
layers?: boolean;
|
|
113
113
|
incremental?: false | Incremental;
|
|
114
|
-
/**
|
|
115
|
-
* @deprecated This option is deprecated, as it has a huge regression in some edge cases where the chunk graph has lots of cycles. We will improve performance of build_chunk_graph.
|
|
116
|
-
*/
|
|
117
|
-
parallelCodeSplitting?: boolean;
|
|
118
114
|
futureDefaults?: boolean;
|
|
119
115
|
rspackFuture?: RspackFutureOptions;
|
|
120
116
|
buildHttp?: HttpUriPluginOptions;
|
package/dist/config/types.d.ts
CHANGED
|
@@ -2129,11 +2129,6 @@ export type Experiments = {
|
|
|
2129
2129
|
* Enable incremental builds.
|
|
2130
2130
|
*/
|
|
2131
2131
|
incremental?: IncrementalPresets | Incremental;
|
|
2132
|
-
/**
|
|
2133
|
-
* Enable multi-threaded code splitting algorithm.
|
|
2134
|
-
* @deprecated This option is deprecated, it has a huge regression in some edge cases where the chunk graph has lots of cycles. We'll improve the performance of build_chunk_graph in the future instead
|
|
2135
|
-
*/
|
|
2136
|
-
parallelCodeSplitting?: boolean;
|
|
2137
2132
|
/**
|
|
2138
2133
|
* Enable future default options.
|
|
2139
2134
|
* @default false
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "../binding";
|
|
2
2
|
import { RspackBuiltinPlugin } from "../builtin-plugin/base";
|
|
3
3
|
import type { Compiler } from "../Compiler";
|
|
4
|
-
import { type ModuleFederationPluginOptions } from "./ModuleFederationPlugin";
|
|
5
4
|
export type RemoteAliasMap = Record<string, {
|
|
6
5
|
name: string;
|
|
7
6
|
entry?: string;
|
|
@@ -16,7 +15,7 @@ export type ManifestSharedOption = {
|
|
|
16
15
|
requiredVersion?: string;
|
|
17
16
|
singleton?: boolean;
|
|
18
17
|
};
|
|
19
|
-
type
|
|
18
|
+
export type ModuleFederationManifestPluginOptions = {
|
|
20
19
|
name?: string;
|
|
21
20
|
globalName?: string;
|
|
22
21
|
filePath?: string;
|
|
@@ -26,11 +25,6 @@ type InternalManifestPluginOptions = {
|
|
|
26
25
|
exposes?: ManifestExposeOption[];
|
|
27
26
|
shared?: ManifestSharedOption[];
|
|
28
27
|
};
|
|
29
|
-
export type ModuleFederationManifestPluginOptions = boolean | Pick<InternalManifestPluginOptions, "disableAssetsAnalyze" | "filePath" | "fileName">;
|
|
30
|
-
export declare function getFileName(manifestOptions: ModuleFederationManifestPluginOptions): {
|
|
31
|
-
statsFileName: string;
|
|
32
|
-
manifestFileName: string;
|
|
33
|
-
};
|
|
34
28
|
/**
|
|
35
29
|
* JS-side post-processing plugin: reads mf-manifest.json and mf-stats.json, executes additionalData callback and merges/overwrites manifest.
|
|
36
30
|
* To avoid cross-NAPI callback complexity, this plugin runs at the afterProcessAssets stage to ensure Rust-side MfManifestPlugin has already output its artifacts.
|
|
@@ -38,7 +32,6 @@ export declare function getFileName(manifestOptions: ModuleFederationManifestPlu
|
|
|
38
32
|
export declare class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
39
33
|
name: BuiltinPluginName;
|
|
40
34
|
private opts;
|
|
41
|
-
constructor(opts:
|
|
35
|
+
constructor(opts: ModuleFederationManifestPluginOptions);
|
|
42
36
|
raw(compiler: Compiler): BuiltinPlugin;
|
|
43
37
|
}
|
|
44
|
-
export {};
|
|
@@ -1,30 +1,15 @@
|
|
|
1
1
|
import type { Compiler } from "../Compiler";
|
|
2
|
-
import type { ExternalsType } from "../config";
|
|
3
2
|
import { type ModuleFederationManifestPluginOptions } from "./ModuleFederationManifestPlugin";
|
|
4
3
|
import type { ModuleFederationPluginV1Options } from "./ModuleFederationPluginV1";
|
|
5
4
|
export interface ModuleFederationPluginOptions extends Omit<ModuleFederationPluginV1Options, "enhanced"> {
|
|
6
5
|
runtimePlugins?: RuntimePlugins;
|
|
7
6
|
implementation?: string;
|
|
8
7
|
shareStrategy?: "version-first" | "loaded-first";
|
|
9
|
-
manifest?: ModuleFederationManifestPluginOptions
|
|
10
|
-
injectUsedExports?: boolean;
|
|
11
|
-
independentShareDir?: string;
|
|
12
|
-
treeshakeSharedExcludedPlugins?: string[];
|
|
8
|
+
manifest?: boolean | Omit<ModuleFederationManifestPluginOptions, "remoteAliasMap" | "globalName" | "name" | "exposes" | "shared">;
|
|
13
9
|
}
|
|
14
10
|
export type RuntimePlugins = string[] | [string, Record<string, unknown>][];
|
|
15
11
|
export declare class ModuleFederationPlugin {
|
|
16
12
|
private _options;
|
|
17
|
-
private _treeShakeSharedPlugin?;
|
|
18
13
|
constructor(_options: ModuleFederationPluginOptions);
|
|
19
14
|
apply(compiler: Compiler): void;
|
|
20
15
|
}
|
|
21
|
-
interface RemoteInfo {
|
|
22
|
-
alias: string;
|
|
23
|
-
name?: string;
|
|
24
|
-
entry?: string;
|
|
25
|
-
externalType: ExternalsType;
|
|
26
|
-
shareScope: string;
|
|
27
|
-
}
|
|
28
|
-
type RemoteInfos = Record<string, RemoteInfo[]>;
|
|
29
|
-
export declare function getRemoteInfos(options: ModuleFederationPluginOptions): RemoteInfos;
|
|
30
|
-
export {};
|
package/dist/exports.d.ts
CHANGED
|
@@ -121,14 +121,11 @@ export declare const container: {
|
|
|
121
121
|
import { ConsumeSharedPlugin } from "./sharing/ConsumeSharedPlugin";
|
|
122
122
|
import { ProvideSharedPlugin } from "./sharing/ProvideSharedPlugin";
|
|
123
123
|
import { SharePlugin } from "./sharing/SharePlugin";
|
|
124
|
-
import { TreeShakeSharedPlugin } from "./sharing/TreeShakeSharedPlugin";
|
|
125
124
|
export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject } from "./sharing/ConsumeSharedPlugin";
|
|
126
125
|
export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject } from "./sharing/ProvideSharedPlugin";
|
|
127
126
|
export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions } from "./sharing/SharePlugin";
|
|
128
|
-
export type { TreeshakeSharedPluginOptions } from "./sharing/TreeShakeSharedPlugin";
|
|
129
127
|
export declare const sharing: {
|
|
130
128
|
ProvideSharedPlugin: typeof ProvideSharedPlugin;
|
|
131
|
-
TreeShakeSharedPlugin: typeof TreeShakeSharedPlugin;
|
|
132
129
|
ConsumeSharedPlugin: typeof ConsumeSharedPlugin;
|
|
133
130
|
SharePlugin: typeof SharePlugin;
|
|
134
131
|
};
|