Skip to content

Commit ec16a5e

Browse files
authored
chore: fix some comments (#17495)
1 parent 8eecc62 commit ec16a5e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/config/dep-optimization-options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Set to `true` to force dependency pre-bundling, ignoring previously cached optim
8282
- **Type:** `boolean`
8383
- **Default:** `true`
8484

85-
When enabled, it will hold the first optimized deps results until all static imports are crawled on cold start. This avoids the need for full-page reloads when new dependencies are discovered and they trigger the generation of new common chunks. If all dependencies are found by the scanner plus the explicitely defined ones in `include`, it is better to disable this option to let the browser process more requests in parallel.
85+
When enabled, it will hold the first optimized deps results until all static imports are crawled on cold start. This avoids the need for full-page reloads when new dependencies are discovered and they trigger the generation of new common chunks. If all dependencies are found by the scanner plus the explicitly defined ones in `include`, it is better to disable this option to let the browser process more requests in parallel.
8686

8787
## optimizeDeps.disabled
8888

packages/vite/src/node/optimizer/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export interface DepOptimizationConfig {
138138
* When enabled, it will hold the first optimized deps results until all static
139139
* imports are crawled on cold start. This avoids the need for full-page reloads
140140
* when new dependencies are discovered and they trigger the generation of new
141-
* common chunks. If all dependencies are found by the scanner plus the explicitely
141+
* common chunks. If all dependencies are found by the scanner plus the explicitly
142142
* defined ones in `include`, it is better to disable this option to let the
143143
* browser process more requests in parallel.
144144
* @default true
@@ -523,7 +523,7 @@ export function runOptimizeDeps(
523523
)
524524
}
525525
// Ignore clean up requests after this point so the temp folder isn't deleted before
526-
// we finish commiting the new deps cache files to the deps folder
526+
// we finish committing the new deps cache files to the deps folder
527527
committed = true
528528

529529
// Write metadata file, then commit the processing folder to the global deps cache

packages/vite/src/node/server/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ async function restartServer(server: ViteDevServer) {
11241124
}
11251125

11261126
// Reinit the server by creating a new instance using the same inlineConfig
1127-
// This will triger a reload of the config file and re-create the plugins and
1127+
// This will trigger a reload of the config file and re-create the plugins and
11281128
// middlewares. We then assign all properties of the new server to the existing
11291129
// server instance and set the user instance to be used in the new server.
11301130
// This allows us to keep the same server instance for the user.

0 commit comments

Comments
 (0)