Skip to content

Commit 35ee848

Browse files
authored
chore: fix some typos in comment (#19728)
Signed-off-by: todaymoon <[email protected]>
1 parent ecc85ca commit 35ee848

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

docs/guide/build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ For example, you can specify multiple Rollup outputs with plugins that are only
6666

6767
## Chunking Strategy
6868

69-
You can configure how chunks are split using `build.rollupOptions.output.manualChunks` (see [Rollup docs](https://rollupjs.org/configuration-options/#output-manualchunks)). If you use a framework, refer to their documentation for configuring how chunks are splitted.
69+
You can configure how chunks are split using `build.rollupOptions.output.manualChunks` (see [Rollup docs](https://rollupjs.org/configuration-options/#output-manualchunks)). If you use a framework, refer to their documentation for configuring how chunks are split.
7070

7171
## Load Error Handling
7272

packages/vite/rollup.dts.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const identifierWithTrailingDollarRE = /\b(\w+)\$\d+\b/g
4343

4444
/**
4545
* Replace specific identifiers with a more readable name, grouped by
46-
* the module that imports the identifer as a named import alias
46+
* the module that imports the identifier as a named import alias
4747
*/
4848
const identifierReplacements: Record<string, Record<string, string>> = {
4949
rollup: {

packages/vite/src/client/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ export function updateStyle(id: string, content: string): void {
421421
document.head.appendChild(style)
422422

423423
// reset lastInsertedStyle after async
424-
// because dynamically imported css will be splitted into a different file
424+
// because dynamically imported css will be split into a different file
425425
setTimeout(() => {
426426
lastInsertedStyle = undefined
427427
}, 0)

packages/vite/src/module-runner/sourcemap/interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function mapSourcePosition(position: OriginalMapping) {
175175
let sourceMap = getRunnerSourceMap(position)
176176
if (!sourceMap) sourceMap = sourceMapCache[position.source]
177177
if (!sourceMap) {
178-
// Call the (overrideable) retrieveSourceMap function to get the source map.
178+
// Call the (overridable) retrieveSourceMap function to get the source map.
179179
const urlAndMap = retrieveSourceMap(position.source)
180180
if (urlAndMap && urlAndMap.map) {
181181
const url = urlAndMap.url

packages/vite/src/node/baseEnvironment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class BaseEnvironment extends PartialEnvironment {
157157
* const isDev = environment.mode === 'dev' // good
158158
* ```
159159
*
160-
* You should also not check against `"unknown"` specfically. It's
160+
* You should also not check against `"unknown"` specifically. It's
161161
* a placeholder for more possible environment types.
162162
*/
163163
export class UnknownEnvironment extends BaseEnvironment {

playground/optimize-deps/unused-split-entry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import msg from '@vitejs/test-added-in-entries'
33
// This is an entry file that is added to optimizeDeps.entries
44
// When the deps aren't cached, these entries are also processed
55
// to discover dependencies in them. This should only be needed
6-
// for code splitted sections that are commonly visited after
6+
// for code split sections that are commonly visited after
77
// first load where a full-reload wants to be avoided at the expense
88
// of extra processing on cold start. Another option is to add
99
// the missing dependencies to optimizeDeps.include directly

0 commit comments

Comments
 (0)