Commit f84032d
committed
Lazy-load HomeView route component
Change the Example route's component to a dynamic import to enable code-splitting and async loading (webpackChunkName: "HomeView"). Also remove the now-unused static import of HomeView to avoid bundling the view in the main chunk and reduce initial bundle size.1 parent 9d5d8ab commit f84032d
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
0 commit comments