Skip to content

Commit 6e6ef06

Browse files
Merge branch 'main' into consume-share-layers
2 parents cfca731 + cbd5b7e commit 6e6ef06

File tree

76 files changed

+375
-92
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+375
-92
lines changed

.changeset/dry-geese-drum.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/dts-plugin': patch
3+
---
4+
5+
fix(dts-plugin): consume api types if adding new one

.changeset/strong-ravens-push.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@module-federation/manifest': patch
3+
'@module-federation/sdk': patch
4+
---
5+
6+
chore: remove isomorphic-rslog

apps/modernjs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @module-federation/modernjsapp
22

3+
## 0.1.84
4+
5+
### Patch Changes
6+
7+
- @module-federation/enhanced@0.9.0
8+
39
## 0.1.83
410

511
### Patch Changes

apps/modernjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@module-federation/modernjsapp",
33
"private": true,
4-
"version": "0.1.83",
4+
"version": "0.1.84",
55
"scripts": {
66
"reset": "npx rimraf ./**/node_modules",
77
"dev": "modern dev",

apps/website-new/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# website-new
22

3+
## 1.0.26
4+
5+
### Patch Changes
6+
7+
- @module-federation/error-codes@0.9.0
8+
39
## 1.0.25
410

511
### Patch Changes

apps/website-new/docs/en/guide/troubleshooting/type/TYPE-001.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ When compiling the exported (`exposes`) file TS type, the current project's `tsc
1010

1111
Execute the `cmd` command in the error message parameter in the terminal, and repair the file or `tsconfig` according to the error message.
1212

13+
If you want to ignore the type check error in ts, you can set [`compilerOptions.noCheck`](https://www.typescriptlang.org/tsconfig/#noCheck) to `true` in `tsconfig.json` (This option is only supported for ts 5.5 and above)
14+
1315
If the `cmd` command is executed without an error, but the error TS compilation fails is still reported, you need to check the `exposes` field in `ModuleFederationPlugin`:
1416

1517
```ts title="[modern|rspack|rsbuild|webpack].config.[js,ts]"

apps/website-new/docs/zh/configure/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type ModuleFederationOptions {
1111
// module federation remotes 远程模块别名和 entry 信息
1212
remotes?: Array<RemoteInfo>;
1313
// module federation expose 的模块信息
14-
expose?: PluginExposesOptions;
14+
exposes?: PluginExposesOptions;
1515
// 共享依赖配置
1616
shared?: ShareInfos;
1717
// 动态 publicPath

apps/website-new/docs/zh/guide/troubleshooting/type/TYPE-001.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import ErrorCodeTitle from '@components/ErrorCodeTitle';
1010

1111
在 terminal 中执行报错信息参数中的 `cmd` 命令,根据错误信息对文件或者 `tsconfig` 进行修复。
1212

13+
若你希望忽略 ts 中的类型检查错误,可在 `tsconfig.json` 中设置 [`compilerOptions.noCheck`](https://www.typescriptlang.org/tsconfig/#noCheck)`true`(该选项仅支持 ts 5.5 及以上版本)
14+
1315
`cmd` 命令执行无报错,但仍然报错 TS 编译失败,需要检查 `ModuleFederationPlugin` 中的 `exposes`字段:
1416

1517
```ts title="[modern|rspack|rsbuild|webpack].config.[js,ts]"

apps/website-new/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "website-new",
3-
"version": "1.0.25",
3+
"version": "1.0.26",
44
"private": true,
55
"scripts": {
66
"dev": "rspress dev",

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @module-federation/bridge-react-webpack-plugin
22

3+
## 0.9.0
4+
5+
### Patch Changes
6+
7+
- @module-federation/sdk@0.9.0
8+
39
## 0.8.12
410

511
### Patch Changes

0 commit comments

Comments
 (0)