Skip to content

Commit b2bfa48

Browse files
chore: format all files (#2982)
1 parent 0bae844 commit b2bfa48

File tree

19 files changed

+74
-85
lines changed

19 files changed

+74
-85
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ You can consider the module federation capabilities provided by this repository
2828

2929
## ✨ What new features does Module Federation provide?
3030

31-
* 🎨 Module Federation Runtime
32-
* 🧩 Runtime Plugins System
33-
* 📝 Manifest
34-
* 🚀 Dynamic type prompt
35-
* 🛠️ Chrome Devtool
31+
- 🎨 Module Federation Runtime
32+
- 🧩 Runtime Plugins System
33+
- 📝 Manifest
34+
- 🚀 Dynamic type prompt
35+
- 🛠️ Chrome Devtool
3636

3737
## 📚 Getting Started
3838

apps/manifest-demo/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
This example demos manifest
44

5-
- `manifest-webpack-host` consumes remote and generate manifest.
6-
- `3009-webpack-provider` exposes a blue button component and generate manifest.
7-
- `3010-rspack-provider` exposes a red button component and generate manifest.
5+
- `manifest-webpack-host` consumes remote and generate manifest.
6+
- `3009-webpack-provider` exposes a blue button component and generate manifest.
7+
- `3010-rspack-provider` exposes a red button component and generate manifest.
88
- `3011-rspack-manifest-provider`: expose component and generate manifest.
99
- `3012-rspack-js-entry-provider`: expose component and not generate manifest.
1010

apps/modernjs-ssr/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
```bash
1616
# Root directory
17-
pnpm i
17+
pnpm i
1818

19-
nx build modern-js-plugin
19+
nx build modern-js-plugin
2020

21-
pnpm run app:modern:dev
21+
pnpm run app:modern:dev
2222

2323
open http://localhost:3050/
2424
```

apps/router-demo/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ open http://localhost:2100/
1313

1414
> Scenario description
1515
16-
* This demo mainly demonstrates how to use the mf bridge library to load a module with routing
17-
* How to load modules between vue and react projects
16+
- This demo mainly demonstrates how to use the mf bridge library to load a module with routing
17+
- How to load modules between vue and react projects
1818

1919
## Test run
2020

21-
* nx e2e router-host-2000 --watch
21+
- nx e2e router-host-2000 --watch

apps/router-demo/router-host-2000/src/pages/Remote1.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,16 @@ type RemoteKeys = RemoteKeys_0 | RemoteKeys_1;
9494
type PackageType<T, R = any> = T extends RemoteKeys_0
9595
? PackageType_0<T>
9696
: T extends RemoteKeys_1
97-
? PackageType_1<T>
98-
: R;
97+
? PackageType_1<T>
98+
: R;
9999
type GetType<T, Y extends keyof T> = T[Y];
100100
type GetProvderComponentType<
101101
T extends RemoteKeys,
102102
Y extends keyof PackageType<T>,
103-
> = GetType<PackageType<T>, Y> extends (...args: Array<any>) => any
104-
? ReturnType<GetType<PackageType<T>, Y>>
105-
: any;
103+
> =
104+
GetType<PackageType<T>, Y> extends (...args: Array<any>) => any
105+
? ReturnType<GetType<PackageType<T>, Y>>
106+
: any;
106107

107108
type GetObjectVal<
108109
T extends Record<string, any>,

apps/router-demo/router-host-v5-2200/src/pages/Remote1.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,16 @@ type RemoteKeys = RemoteKeys_0 | RemoteKeys_1;
9494
type PackageType<T, R = any> = T extends RemoteKeys_0
9595
? PackageType_0<T>
9696
: T extends RemoteKeys_1
97-
? PackageType_1<T>
98-
: R;
97+
? PackageType_1<T>
98+
: R;
9999
type GetType<T, Y extends keyof T> = T[Y];
100100
type GetProvderComponentType<
101101
T extends RemoteKeys,
102102
Y extends keyof PackageType<T>,
103-
> = GetType<PackageType<T>, Y> extends (...args: Array<any>) => any
104-
? ReturnType<GetType<PackageType<T>, Y>>
105-
: any;
103+
> =
104+
GetType<PackageType<T>, Y> extends (...args: Array<any>) => any
105+
? ReturnType<GetType<PackageType<T>, Y>>
106+
: any;
106107

107108
type GetObjectVal<
108109
T extends Record<string, any>,

packages/bridge/bridge-react-webpack-plugin/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ React bridge is used to load the routing module in mf, so that the routing modul
44

55
> When to use
66
7-
* Load the route module
8-
* Load across the front end framework
9-
7+
- Load the route module
8+
- Load across the front end framework
109

1110
## How to use
1211

@@ -130,5 +129,3 @@ root.render(
130129
<App />
131130
);
132131
```
133-
134-

packages/bridge/bridge-react/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ React bridge is used to load the routing module in mf, so that the routing modul
44

55
> When to use
66
7-
* Load the route module
8-
* Load across the front end framework
9-
7+
- Load the route module
8+
- Load across the front end framework
109

1110
## How to use
1211

@@ -130,5 +129,3 @@ root.render(
130129
<App />
131130
);
132131
```
133-
134-

packages/bridge/bridge-shared/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
55
```js
66
// browser
7-
localStorage.setItem('debug','true');
8-
localStorage.setItem('debug:stack','true');
7+
localStorage.setItem('debug', 'true');
8+
localStorage.setItem('debug:stack', 'true');
99

1010
// node
1111
process.env.DEBUG = 'true';
12-
```
12+
```

packages/chrome-devtools/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Module Federation Chrome Devtools
22

33
## Ability
4-
* Proxy online Module Federation remote module to local
5-
* Let proxied remote module get hmr
4+
5+
- Proxy online Module Federation remote module to local
6+
- Let proxied remote module get hmr
67

78
https://module-federation.io/

0 commit comments

Comments
 (0)