@rspack-canary/browser 1.7.0-canary-22d591c5-20251222090400 → 1.7.0-canary-dcc2f8c9-20251223064055

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.
@@ -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;
@@ -2103,6 +2103,7 @@ export type Experiments = {
2103
2103
  outputModule?: boolean;
2104
2104
  /**
2105
2105
  * Enable top-level await.
2106
+ * @deprecated This option is deprecated, top-level await is enabled by default.
2106
2107
  * @default true
2107
2108
  */
2108
2109
  topLevelAwait?: boolean;
@@ -2129,11 +2130,6 @@ export type Experiments = {
2129
2130
  * Enable incremental builds.
2130
2131
  */
2131
2132
  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
2133
  /**
2138
2134
  * Enable future default options.
2139
2135
  * @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 InternalManifestPluginOptions = {
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: ModuleFederationPluginOptions);
35
+ constructor(opts: ModuleFederationManifestPluginOptions);
42
36
  raw(compiler: Compiler): BuiltinPlugin;
43
37
  }
44
- export {};
@@ -1,30 +1,17 @@
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";
4
+ import { type ModuleFederationRuntimeExperimentsOptions } from "./ModuleFederationRuntimePlugin";
5
5
  export interface ModuleFederationPluginOptions extends Omit<ModuleFederationPluginV1Options, "enhanced"> {
6
6
  runtimePlugins?: RuntimePlugins;
7
7
  implementation?: string;
8
8
  shareStrategy?: "version-first" | "loaded-first";
9
- manifest?: ModuleFederationManifestPluginOptions;
10
- injectUsedExports?: boolean;
11
- independentShareDir?: string;
12
- treeshakeSharedExcludedPlugins?: string[];
9
+ manifest?: boolean | Omit<ModuleFederationManifestPluginOptions, "remoteAliasMap" | "globalName" | "name" | "exposes" | "shared">;
10
+ experiments?: ModuleFederationRuntimeExperimentsOptions;
13
11
  }
14
12
  export type RuntimePlugins = string[] | [string, Record<string, unknown>][];
15
13
  export declare class ModuleFederationPlugin {
16
14
  private _options;
17
- private _treeShakeSharedPlugin?;
18
15
  constructor(_options: ModuleFederationPluginOptions);
19
16
  apply(compiler: Compiler): void;
20
17
  }
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 {};
@@ -1,5 +1,9 @@
1
+ export interface ModuleFederationRuntimeExperimentsOptions {
2
+ asyncStartup?: boolean;
3
+ }
1
4
  export interface ModuleFederationRuntimeOptions {
2
5
  entryRuntime?: string;
6
+ experiments?: ModuleFederationRuntimeExperimentsOptions;
3
7
  }
4
8
  export declare const ModuleFederationRuntimePlugin: {
5
9
  new (options?: ModuleFederationRuntimeOptions | undefined): {
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
  };