Skip to content

Commit c1c951d

Browse files
authored
chore: fix typos and grammatical errors across documentation and comments (#20337)
1 parent 3e81af3 commit c1c951d

File tree

14 files changed

+20
-20
lines changed

14 files changed

+20
-20
lines changed

docs/_data/team.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const core = [
7171
avatar: 'https://github.com/ArnaudBarre.png',
7272
name: 'Arnaud Barré',
7373
title: 'Frontend Developer',
74-
desc: 'Passionate by tooling around TypeScript and React.',
74+
desc: 'Passionate about tooling around TypeScript and React.',
7575
links: [
7676
{ icon: 'github', link: 'https://github.com/ArnaudBarre' },
7777
{
@@ -164,7 +164,7 @@ export const emeriti = [
164164
name: 'Niputi',
165165
title: 'Developer',
166166
org: 'Computershare Denmark',
167-
desc: 'weeb/javascript lover.',
167+
desc: 'weeb/JavaScript lover.',
168168
links: [
169169
{ icon: 'github', link: 'https://github.com/Niputi' },
170170
{ icon: 'x', link: 'https://x.com/Niputi_' },

docs/changes/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ We don't recommend switching to these APIs yet. They are included in Vite to hel
2222

2323
## Past
2424

25-
The changes below has been done or reverted. They are no longer relevant in the current major version.
25+
The changes below have been done or reverted. They are no longer relevant in the current major version.
2626

2727
- _No past changes yet_

docs/changes/per-environment-apis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Give us feedback at [Environment API feedback discussion](https://github.com/vit
66

77
Multiple APIs from `ViteDevServer` related to module graph and modules transforms have been moved to the `DevEnvironment` instances.
88

9-
Affect scope: `Vite Plugin Authors`
9+
Affected scope: `Vite Plugin Authors`
1010

1111
::: warning Future Deprecation
1212
The `Environment` instance was first introduced at `v6.0`. The deprecation of `server.moduleGraph` and other methods that are now in environments is planned for a future major. We don't recommend moving away from server methods yet. To identify your usage, set these in your vite config.

docs/changes/shared-plugins-during-build.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Give us feedback at [Environment API feedback discussion](https://github.com/vit
66

77
See [Shared plugins during build](/guide/api-environment-plugins.md#shared-plugins-during-build).
88

9-
Affect scope: `Vite Plugin Authors`
9+
Affected scope: `Vite Plugin Authors`
1010

1111
::: warning Future Default Change
12-
`builder.sharedConfigBuild` was first introduce in `v6.0`. You can set it true to check how your plugins work with a shared config. We're looking for feedback about changing the default in a future major once the plugin ecosystem is ready.
12+
`builder.sharedConfigBuild` was first introduced in `v6.0`. You can set it true to check how your plugins work with a shared config. We're looking for feedback about changing the default in a future major once the plugin ecosystem is ready.
1313
:::
1414

1515
## Motivation

docs/changes/ssr-using-modulerunner.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Give us feedback at [Environment API feedback discussion](https://github.com/vit
66

77
`server.ssrLoadModule` has been replaced by importing from a [Module Runner](/guide/api-environment#modulerunner).
88

9-
Affect scope: `Vite Plugin Authors`
9+
Affected scope: `Vite Plugin Authors`
1010

1111
::: warning Future Deprecation
12-
`ModuleRunner` was first introduce in `v6.0`. The deprecation of `server.ssrLoadModule` is planned for a future major. To identify your usage, set `future.removeSsrLoadModule` to `"warn"` in your vite config.
12+
`ModuleRunner` was first introduced in `v6.0`. The deprecation of `server.ssrLoadModule` is planned for a future major. To identify your usage, set `future.removeSsrLoadModule` to `"warn"` in your vite config.
1313
:::
1414

1515
## Motivation

docs/changes/this-environment-in-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Give us feedback at [Environment API feedback discussion](https://github.com/vit
66

77
Before Vite 6, only two environments were available: `client` and `ssr`. A single `options.ssr` plugin hook argument in `resolveId`, `load` and `transform` allowed plugin authors to differentiate between these two environments when processing modules in plugin hooks. In Vite 6, a Vite application can define any number of named environments as needed. We're introducing `this.environment` in the plugin context to interact with the environment of the current module in hooks.
88

9-
Affect scope: `Vite Plugin Authors`
9+
Affected scope: `Vite Plugin Authors`
1010

1111
::: warning Future Deprecation
1212
`this.environment` was introduced in `v6.0`. The deprecation of `options.ssr` is planned for a future major. At that point we'll start recommending migrating your plugins to use the new API. To identify your usage, set `future.removePluginHookSsrArgument` to `"warn"` in your vite config.

docs/config/ssr-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ For example, when setting `['node', 'custom']`, you should run `NODE_OPTIONS='--
5959
- **Type:** `string[]`
6060
- **Default:** `['module', 'jsnext:main', 'jsnext']`
6161

62-
List of fields in `package.json` to try when resolving a package's entry point. Note this takes lower precedence than conditional exports resolved from the `exports` field: if an entry point is successfully resolved from `exports`, the main field will be ignored. This setting only affect non-externalized dependencies.
62+
List of fields in `package.json` to try when resolving a package's entry point. Note this takes lower precedence than conditional exports resolved from the `exports` field: if an entry point is successfully resolved from `exports`, the main field will be ignored. This setting only affects non-externalized dependencies.

docs/releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Vite does not have a fixed release cycle.
1212
- **Minor** releases always contain new features and are released as needed. Minor releases always have a beta pre-release phase (usually every two months).
1313
- **Major** releases generally align with [Node.js EOL schedule](https://endoflife.date/nodejs), and will be announced ahead of time. These releases will go through long-term discussions with the ecosystem, and have alpha and beta pre-release phases (usually every year).
1414

15-
The Vite versions ranges that are supported by the Vite team is automatically determined by:
15+
The Vite version ranges that are supported by the Vite team are automatically determined by:
1616

1717
- **Current Minor** gets regular fixes.
1818
- **Previous Major** (only for its latest minor) and **Previous Minor** receives important fixes and security patches.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ function isNodeWithinCircularImports(
861861
currentChain: EnvironmentModuleNode[] = [node],
862862
traversedModules = new Set<EnvironmentModuleNode>(),
863863
): boolean {
864-
// To help visualize how each parameters work, imagine this import graph:
864+
// To help visualize how each parameter works, imagine this import graph:
865865
//
866866
// A -> B -> C -> ACCEPTED -> D -> E -> NODE
867867
// ^--------------------------|

playground/dynamic-import-inline/__tests__/dynamic-import-inline.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { expect, test } from 'vitest'
22
import { isBuild, serverLogs } from '~utils'
33

44
test.runIf(isBuild)(
5-
'dont warn when inlineDynamicImports is set to true',
5+
"don't warn when inlineDynamicImports is set to true",
66
async () => {
77
const log = serverLogs.join('\n')
88
expect(log).not.toContain(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy