File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ import 'vite/modulepreload-polyfill'
3232
3333此 polyfill 可以通过 ` { polyfill: false } ` 来禁用。
3434
35- 每个动态导入要预加载的块列表将由 Vite 计算。默认情况下,在载入这些依赖时,会使用一个包含 ` base ` 的绝对路径。如果 ` base ` 是相对路径(` '' ` 或者` './' ` ),解析时则会使用 ` import.meta.url ` ,以避免出现依赖于最终部署基路径的绝对路径。
35+ 每个动态导入要预加载的块列表将由 Vite 计算。默认情况下,在载入这些依赖时,会使用一个包含 ` base ` 的绝对路径。如果 ` base ` 是相对路径(` '' ` 或者 ` './' ` ),解析时则会使用 ` import.meta.url ` ,以避免出现依赖于最终部署基路径的绝对路径。
3636
3737目前有一个实验性功能支持使用 ` resolveDependencies ` 函数对依赖项列表及其路径进行细粒度控制。可以在这里 [ 提供反馈] ( https://github.com/vitejs/vite/discussions/13841 ) 。它期望接收一个 ` ResolveModulePreloadDependenciesFn ` 类型的函数:
3838
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ $ bun create vite
7474::: code-group
7575
7676``` bash [NPM]
77- # npm 7+, 需要额外加 --:
77+ # npm 7+,需要添加额外的 --:
7878$ npm create vite@latest my-vue-app -- --template vue
7979```
8080
You can’t perform that action at this time.
0 commit comments