File tree Expand file tree Collapse file tree 4 files changed +18
-11
lines changed
Expand file tree Collapse file tree 4 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 1+ :::tip Entry scanning logic
2+ - If ` src/ ` itself meets entry criteria → Single-entry application
3+ - If ` src/ ` does not meet criteria → Scan subdirectories under ` src/ ` → Multi-entry application
4+ - In single-entry applications, the default entry name is ` index `
5+
6+ :::
7+
Original file line number Diff line number Diff line change @@ -76,12 +76,9 @@ Modern.js automatically scans directories to identify entries that meet the crit
76762. ** Has an ` App.[jt]sx? ` file** → Self-controlled routing entry
77773. ** Has an ` entry.[jt]sx? ` file** → Custom entry
7878
79- :::tip Entry scanning logic
80- - If ` src/` itself meets entry criteria → Single-entry application
81- - If ` src/` does not meet criteria → Scan subdirectories under ` src/` → Multi-entry application
82- - In single-entry applications, the default entry name is ` main`
79+ import EntryScanLogic from ' @site-docs/components/entry-scan-logic.mdx' ;
8380
84- :::
81+ < EntryScanLogic / >
8582
8683:::tip Custom scanning directory
8784You can modify the directory for identifying entries through [source.entriesDir](/configure/app/source/entries-dir).
Original file line number Diff line number Diff line change 1+ :::tip 入口扫描逻辑
2+ - 如果 ` src/ ` 本身满足入口条件 → 单入口应用
3+ - 如果 ` src/ ` 不满足条件 → 扫描 ` src/ ` 下的子目录 → 多入口应用
4+ - 单入口应用中,默认入口名为 ` index `
5+
6+ :::
7+
Original file line number Diff line number Diff line change @@ -76,13 +76,9 @@ Modern.js 会自动扫描目录,识别符合条件的入口。一个目录被
76762 . ** 具有 ` App.[jt]sx? ` 文件** → 自控式路由入口
77773 . ** 具有 ` entry.[jt]sx? ` 文件** → 自定义入口
7878
79- :::tip 入口扫描逻辑
80- - 如果 ` src/ ` 本身满足入口条件 → 单入口应用
81- - 如果 ` src/ ` 不满足条件 → 扫描 ` src/ ` 下的子目录 → 多入口应用
82- - 单入口应用中,默认入口名为 ` main `
83-
84- :::
79+ import EntryScanLogic from ' @site-docs/components/entry-scan-logic.mdx' ;
8580
81+ <EntryScanLogic />
8682
8783:::tip 自定义扫描目录
8884你可以通过 [ source.entriesDir] ( /configure/app/source/entries-dir ) 修改识别入口的目录。
You can’t perform that action at this time.
0 commit comments