Skip to content

Commit 583f185

Browse files
author
那里好脏不可以
authored
docs: fix typo (#9855)
1 parent 8872aba commit 583f185

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

packages/plugin-react/src/jsx-runtime/babel-restore-jsx.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default function (
7676

7777
/**
7878
* Get a JSXIdentifier or JSXMemberExpression from a Node of known type.
79-
* Returns null if a unknown node type, null or undefined is passed.
79+
* Returns null if an unknown node type, null or undefined is passed.
8080
*/
8181
function getJSXName(node: any): any {
8282
if (node == null) {
@@ -100,7 +100,7 @@ export default function (
100100
}
101101

102102
/**
103-
* Get a array of JSX(Spread)Attribute from a props ObjectExpression.
103+
* Get an array of JSX(Spread)Attribute from a props ObjectExpression.
104104
* Handles the _extends Expression babel creates from SpreadElement nodes.
105105
* Returns null if a validation error occurs.
106106
*/

packages/plugin-vue/src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export async function transformMain(
162162
if (options.sourceMap) {
163163
if (scriptMap && templateMap) {
164164
// if the template is inlined into the main module (indicated by the presence
165-
// of templateMap, we need to concatenate the two source maps.
165+
// of templateMap), we need to concatenate the two source maps.
166166

167167
const gen = fromMap(
168168
// version property of result.map is declared as string

packages/vite/src/node/plugins/worker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface WorkerCache {
1414
// save worker all emit chunk avoid rollup make the same asset unique.
1515
assets: Map<string, EmittedAsset>
1616

17-
// worker bundle don't deps on any more worker runtime info an id only had an result.
17+
// worker bundle don't deps on any more worker runtime info an id only had a result.
1818
// save worker bundled file id to avoid repeated execution of bundles
1919
// <input_filename, fileName>
2020
bundle: Map<string, string>
@@ -217,7 +217,7 @@ export function webWorkerPlugin(config: ResolvedConfig): Plugin {
217217
const ssr = options?.ssr === true
218218
const query = parseRequest(id)
219219
if (query && query[WORKER_FILE_ID] != null) {
220-
// if import worker by worker constructor will had query.type
220+
// if import worker by worker constructor will have query.type
221221
// other type will be import worker by esm
222222
const workerType = query['type']! as WorkerType
223223
let injectEnv = ''

packages/vite/src/node/server/middlewares/base.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function baseMiddleware({
1515
const path = parsed.pathname || '/'
1616

1717
if (path.startsWith(devBase)) {
18-
// rewrite url to remove base.. this ensures that other middleware does
18+
// rewrite url to remove base. this ensures that other middleware does
1919
// not need to consider base being prepended or not
2020
req.url = url.replace(devBase, '/')
2121
return next()

packages/vite/types/chokidar.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export interface WatchOptions {
194194
ignorePermissionErrors?: boolean
195195

196196
/**
197-
* `true` if `useFsEvents` and `usePolling` are `false`). Automatically filters out artifacts
197+
* `true` if `useFsEvents` and `usePolling` are `false`. Automatically filters out artifacts
198198
* that occur when using editors that use "atomic writes" instead of writing directly to the
199199
* source file. If a file is re-added within 100 ms of being deleted, Chokidar emits a `change`
200200
* event rather than `unlink` then `add`. If the default of 100 ms does not work well for you,

playground/resolve/__tests__/resolve.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test('deep import with exports field', async () => {
1818
})
1919

2020
test('deep import with query with exports field', async () => {
21-
// since it is imported with `?url` it should return a url
21+
// since it is imported with `?url` it should return a URL
2222
expect(await page.textContent('.exports-deep-query')).toMatch(
2323
isBuild ? /base64/ : '/exports-path/deep.json'
2424
)

playground/vue/PreProcessors.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
h2.pre-processors Pre-Processors
33
p.pug
44
| This is rendered from &lt;template lang="pug"&gt;
5-
| and styled with &lt;style lang="sass"&gt;. It should be megenta.
5+
| and styled with &lt;style lang="sass"&gt;. It should be magenta.
66
p.pug-less
77
| This is rendered from &lt;template lang="pug"&gt;
88
| and styled with &lt;style lang="less"&gt;. It should be green.

playground/wasm/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from 'vite'
22
export default defineConfig({
33
build: {
4-
// make can no emit light.wasm
4+
// make cannot emit light.wasm
55
// and emit add.wasm
66
assetsInlineLimit: 80
77
}

0 commit comments

Comments
 (0)