Skip to content

Commit 61f3786

Browse files
authored
chore: update retry-plugin docs chapter (#3138)
1 parent ec31539 commit 61f3786

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/website-new/docs/en/plugin/plugins/retry-plugin.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ type ScriptWithRetryOptions = {
160160
- The delay time between each retry (in milliseconds).
161161

162162
- **moduleName**:
163-
- `string`
163+
- `Array<string>`
164164
- optional
165-
- The module name, used to identify the module that needs to be retried.
165+
- module name list, the value is the module name or module alias. Used to identify the module that needs to be retried. If not set, it defaults to retrying all modules that failed to load.
166166

167167
- **cb**:
168168
- `(resolve: (value: unknown) => void, error: any) => void`

apps/website-new/docs/zh/plugin/plugins/retry-plugin.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ type ScriptWithRetryOptions = {
160160
- 每次重试之间的延迟时间(毫秒)。
161161

162162
- **moduleName**:
163-
- `string`
163+
- `Array<string>`
164164
- 可选
165-
- 模块名称,用于标识需要重试的模块。
165+
- 模块名称列表,值为模块名称或模块别名。用于标识需要重试的模块。如果不设置,则默认对所有加载失败的模块进行重试
166166

167167
- **cb**:
168168
- `(resolve: (value: unknown) => void, error: any) => void`

0 commit comments

Comments
 (0)