@rspack-canary/core 1.6.7-canary-e27a87e9-20251209100543 → 1.6.8-canary-a3066402-20251209142350

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.
@@ -1,7 +1,6 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/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,29 +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
- injectUsedExports?: boolean;
10
- independentShareDir?: string;
11
- manifest?: ModuleFederationManifestPluginOptions;
8
+ manifest?: boolean | Omit<ModuleFederationManifestPluginOptions, "remoteAliasMap" | "globalName" | "name" | "exposes" | "shared">;
12
9
  }
13
10
  export type RuntimePlugins = string[] | [string, Record<string, unknown>][];
14
11
  export declare class ModuleFederationPlugin {
15
12
  private _options;
16
- private _treeShakeSharedPlugin?;
17
13
  constructor(_options: ModuleFederationPluginOptions);
18
14
  apply(compiler: Compiler): void;
19
15
  }
20
- interface RemoteInfo {
21
- alias: string;
22
- name?: string;
23
- entry?: string;
24
- externalType: ExternalsType;
25
- shareScope: string;
26
- }
27
- type RemoteInfos = Record<string, RemoteInfo[]>;
28
- export declare function getRemoteInfos(options: ModuleFederationPluginOptions): RemoteInfos;
29
- export {};
package/dist/exports.d.ts CHANGED
@@ -119,14 +119,11 @@ export declare const container: {
119
119
  import { ConsumeSharedPlugin } from "./sharing/ConsumeSharedPlugin";
120
120
  import { ProvideSharedPlugin } from "./sharing/ProvideSharedPlugin";
121
121
  import { SharePlugin } from "./sharing/SharePlugin";
122
- import { TreeShakeSharedPlugin } from "./sharing/TreeShakeSharedPlugin";
123
122
  export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject } from "./sharing/ConsumeSharedPlugin";
124
123
  export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject } from "./sharing/ProvideSharedPlugin";
125
124
  export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions } from "./sharing/SharePlugin";
126
- export type { TreeshakeSharedPluginOptions } from "./sharing/TreeShakeSharedPlugin";
127
125
  export declare const sharing: {
128
126
  ProvideSharedPlugin: typeof ProvideSharedPlugin;
129
- TreeShakeSharedPlugin: typeof TreeShakeSharedPlugin;
130
127
  ConsumeSharedPlugin: typeof ConsumeSharedPlugin;
131
128
  SharePlugin: typeof SharePlugin;
132
129
  };