@module-federation/bridge-react-webpack-plugin 2.6.0 → 2.8.0

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.
@@ -0,0 +1,11 @@
1
+ import type { moduleFederationPlugin } from '@module-federation/sdk';
2
+ declare class ReactBridgeAliasChangerPlugin {
3
+ alias: string;
4
+ targetFile: string;
5
+ moduleFederationOptions: moduleFederationPlugin.ModuleFederationPluginOptions;
6
+ constructor(info: {
7
+ moduleFederationOptions: moduleFederationPlugin.ModuleFederationPluginOptions;
8
+ });
9
+ apply(compiler: any): void;
10
+ }
11
+ export default ReactBridgeAliasChangerPlugin;
@@ -0,0 +1 @@
1
+ export declare const getBridgeRouterAlias: (originalAlias: string) => Record<string, string>;
@@ -0,0 +1,3 @@
1
+ export declare const checkVersion: (version: string) => 0 | 5 | 6 | 7;
2
+ export declare const findPackageJson: (startPath: string) => string | null;
3
+ export declare const getDependencies: () => Record<string, string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/bridge-react-webpack-plugin",
3
- "version": "2.6.0",
3
+ "version": "2.8.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -27,19 +27,16 @@
27
27
  "./*": "./*"
28
28
  },
29
29
  "dependencies": {
30
- "semver": "7.6.3",
31
- "@types/semver": "7.5.8",
32
- "@module-federation/sdk": "2.6.0"
30
+ "@module-federation/sdk": "2.8.0"
33
31
  },
34
32
  "devDependencies": {
35
- "typescript": "^5.2.2",
36
- "vite": "^5.4.21",
37
- "vite-plugin-dts": "^4.3.0"
33
+ "typescript": "7.0.2",
34
+ "vite": "^5.4.21"
38
35
  },
39
36
  "scripts": {
40
37
  "dev": "vite",
41
- "build": "vite build",
38
+ "build": "vite build && tsc -p tsconfig.json && cp dist/types/index.d.ts dist/index.cjs.d.ts",
42
39
  "preview": "vite preview",
43
- "test": "vitest run -c vitest.config.ts"
40
+ "test": "rstest"
44
41
  }
45
42
  }