@module-federation/modern-js 0.0.0-next-20240712032032 → 0.0.0-next-20240715061004

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.
@@ -4,7 +4,13 @@ import type { ModuleFederationPlugin as RspackModuleFederationPlugin } from '@mo
4
4
  export interface PluginOptions {
5
5
  config?: moduleFederationPlugin.ModuleFederationPluginOptions;
6
6
  configPath?: string;
7
- webpackPluginImplementation?: typeof WebpackModuleFederationPlugin;
8
- rspackPluginImplementation?: typeof RspackModuleFederationPlugin;
7
+ }
8
+ export interface InternalModernPluginOptions {
9
+ csrConfig?: moduleFederationPlugin.ModuleFederationPluginOptions;
10
+ ssrConfig?: moduleFederationPlugin.ModuleFederationPluginOptions;
11
+ distOutputDir: string;
12
+ originPluginOptions: PluginOptions;
13
+ browserPlugin?: BundlerPlugin;
14
+ nodePlugin?: BundlerPlugin;
9
15
  }
10
16
  export type BundlerPlugin = WebpackModuleFederationPlugin | RspackModuleFederationPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/modern-js",
3
- "version": "0.0.0-next-20240712032032",
3
+ "version": "0.0.0-next-20240715061004",
4
4
  "files": [
5
5
  "dist/",
6
6
  "types.d.ts",
@@ -22,6 +22,16 @@
22
22
  "./ssr-runtime": {
23
23
  "types": "./dist/types/ssr-runtime/index.d.ts",
24
24
  "default": "./dist/esm/ssr-runtime/index.js"
25
+ },
26
+ "./config-plugin": {
27
+ "import": "./dist/esm/cli/configPlugin.js",
28
+ "require": "./dist/cjs/cli/configPlugin.js",
29
+ "types": "./dist/types/cli/configPlugin.d.ts"
30
+ },
31
+ "./ssr-plugin": {
32
+ "import": "./dist/esm/cli/ssrPlugin.js",
33
+ "require": "./dist/cjs/cli/ssrPlugin.js",
34
+ "types": "./dist/types/cli/ssrPlugin.d.ts"
25
35
  }
26
36
  },
27
37
  "typesVersions": {
@@ -32,8 +42,11 @@
32
42
  "runtime": [
33
43
  "./dist/types/runtime/index.d.ts"
34
44
  ],
35
- "ssr-runtime": [
36
- "./dist/types/ssr-runtime/index.d.ts"
45
+ "config-plugin": [
46
+ "./dist/types/cli/configPlugin.d.ts"
47
+ ],
48
+ "ssr-plugin": [
49
+ "./dist/types/cli/ssrPlugin.d.ts"
37
50
  ]
38
51
  }
39
52
  },
@@ -48,9 +61,9 @@
48
61
  "node-fetch": "~3.3.0",
49
62
  "react-error-boundary": "4.0.13",
50
63
  "hoist-non-react-statics": "3.3.2",
51
- "@module-federation/sdk": "0.0.0-next-20240712032032",
52
- "@module-federation/enhanced": "0.0.0-next-20240712032032",
53
- "@module-federation/node": "0.0.0-next-20240712032032"
64
+ "@module-federation/sdk": "0.0.0-next-20240715061004",
65
+ "@module-federation/enhanced": "0.0.0-next-20240715061004",
66
+ "@module-federation/node": "0.0.0-next-20240715061004"
54
67
  },
55
68
  "devDependencies": {
56
69
  "@types/hoist-non-react-statics": "3.3.2",
@@ -59,7 +72,7 @@
59
72
  "@modern-js/runtime": "^2.55.0",
60
73
  "@modern-js/module-tools": "^2.55.0",
61
74
  "@modern-js/tsconfig": "^2.55.0",
62
- "@module-federation/manifest": "0.0.0-next-20240712032032"
75
+ "@module-federation/manifest": "0.0.0-next-20240715061004"
63
76
  },
64
77
  "peerDependencies": {
65
78
  "react": ">=17",