Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/guide/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ For example, you can specify multiple Rollup outputs with plugins that are only

## Chunking Strategy

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.
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.

## Load Error Handling

Expand Down
2 changes: 1 addition & 1 deletion packages/vite/rollup.dts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const identifierWithTrailingDollarRE = /\b(\w+)\$\d+\b/g

/**
* Replace specific identifiers with a more readable name, grouped by
* the module that imports the identifer as a named import alias
* the module that imports the identifier as a named import alias
*/
const identifierReplacements: Record<string, Record<string, string>> = {
rollup: {
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ export function updateStyle(id: string, content: string): void {
document.head.appendChild(style)

// reset lastInsertedStyle after async
// because dynamically imported css will be splitted into a different file
// because dynamically imported css will be split into a different file
setTimeout(() => {
lastInsertedStyle = undefined
}, 0)
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/module-runner/sourcemap/interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function mapSourcePosition(position: OriginalMapping) {
let sourceMap = getRunnerSourceMap(position)
if (!sourceMap) sourceMap = sourceMapCache[position.source]
if (!sourceMap) {
// Call the (overrideable) retrieveSourceMap function to get the source map.
// Call the (overridable) retrieveSourceMap function to get the source map.
const urlAndMap = retrieveSourceMap(position.source)
if (urlAndMap && urlAndMap.map) {
const url = urlAndMap.url
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/baseEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class BaseEnvironment extends PartialEnvironment {
* const isDev = environment.mode === 'dev' // good
* ```
*
* You should also not check against `"unknown"` specfically. It's
* You should also not check against `"unknown"` specifically. It's
* a placeholder for more possible environment types.
*/
export class UnknownEnvironment extends BaseEnvironment {
Expand Down
2 changes: 1 addition & 1 deletion playground/optimize-deps/unused-split-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import msg from '@vitejs/test-added-in-entries'
// This is an entry file that is added to optimizeDeps.entries
// When the deps aren't cached, these entries are also processed
// to discover dependencies in them. This should only be needed
// for code splitted sections that are commonly visited after
// for code split sections that are commonly visited after
// first load where a full-reload wants to be avoided at the expense
// of extra processing on cold start. Another option is to add
// the missing dependencies to optimizeDeps.include directly
Expand Down