Skip to content

Commit 77f7cd5

Browse files
authored
Merge pull request #2426 from didi/feat-rn-split-chunk-doc
[docs]update rn split chunk doc
2 parents c1ec431 + 210cc43 commit 77f7cd5

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

docs-vitepress/guide/rn/application-api.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,12 @@ module.exports = defineConfig({
310310
pluginOptions: {
311311
mpx: {
312312
plugin: {
313-
asyncChunk: {
314-
timeout: 5000, // 加载超时时间(ms)
315-
loading: path.resolve(__dirname, 'src/components/loading.mpx'), // 加载页面
316-
fallback: path.resolve(__dirname, 'src/components/fallback.mpx') // 兜底页面
313+
rnConfig: {
314+
asyncChunk: {
315+
timeout: 10000, // 异步分包加载超时时间(ms),默认为 10s
316+
loading: path.resolve(__dirname, 'src/components/loading.mpx'), // 自定义异步分包 loading 页面
317+
fallback: path.resolve(__dirname, 'src/components/fallback.mpx') // 自定义异步分包页面加载失败的兜底页面配置
318+
}
317319
}
318320
}
319321
}

0 commit comments

Comments
 (0)