Skip to content

Commit 63f4a84

Browse files
chore: fix typos in next package
1 parent 63cdc65 commit 63f4a84

File tree

33 files changed

+47
-47
lines changed

33 files changed

+47
-47
lines changed

packages/next/src/build/analysis/extract-const-value.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function extractValue(node: Node, path?: string[]): any {
191191
// Because when parsing TemplateLiteral, the parser yields the first quasi,
192192
// then the first expression, then the next quasi, then the next expression, etc.,
193193
// until the last quasi.
194-
// Thus if there is no expression, the parser ends at the frst and also last quasis
194+
// Thus if there is no expression, the parser ends at the first and also last quasis
195195
//
196196
// A "cooked" interpretation where backslashes have special meaning, while a
197197
// "raw" interpretation where backslashes do not have special meaning

packages/next/src/build/normalize-catchall-routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function isMatchableSlot(segment: string): boolean {
8888
const catchAllRouteRegex = /\[?\[\.\.\./
8989

9090
function isCatchAllRoute(pathname: string): boolean {
91-
// Optional catch-all slots are not currently supported, and as such they are not considered when checking for match compatability.
91+
// Optional catch-all slots are not currently supported, and as such they are not considered when checking for match compatibility.
9292
return !isOptionalCatchAll(pathname) && isCatchAll(pathname)
9393
}
9494

packages/next/src/build/swc/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ async function loadWasm(importPath = '') {
11531153
return newObj
11541154
}
11551155

1156-
// Note wasm binary does not support async intefaces yet, all async
1156+
// Note wasm binary does not support async interfaces yet, all async
11571157
// interface coereces to sync interfaces.
11581158
wasmBindings = {
11591159
css: {

packages/next/src/build/webpack-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ export default async function getBaseWebpackConfig(
11871187
// and all other chunk depend on them so there is no
11881188
// duplication that need to be pulled out.
11891189
chunks: isRspack
1190-
? // using a function here causes noticable slowdown
1190+
? // using a function here causes noticeable slowdown
11911191
// in rspack
11921192
/(?!polyfills|main|pages\/_app)/
11931193
: (chunk: any) =>

packages/next/src/build/webpack/loaders/next-font-loader/postcss-next-font.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ const postcssNextFontPlugin = ({
164164

165165
// Add CSS class that defines a variable with the font families
166166
if (variable) {
167-
const varialbeRule = new postcss.Rule({ selector: '.variable' })
168-
varialbeRule.nodes = [
167+
const variableRule = new postcss.Rule({ selector: '.variable' })
168+
variableRule.nodes = [
169169
new postcss.Declaration({
170170
prop: variable,
171171
value: formattedFontFamilies,
172172
}),
173173
]
174-
root.nodes.push(varialbeRule)
174+
root.nodes.push(variableRule)
175175
}
176176

177177
// Export @font-face values as is

packages/next/src/build/webpack/plugins/flight-manifest-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function getAppPathRequiredChunks(
132132
const chunkId = '' + chunk.id
133133
chunk.files.forEach((file) => {
134134
// It's possible that a chunk also emits CSS files, that will
135-
// be handled separatedly.
135+
// be handled separately.
136136
if (!file.endsWith('.js')) return null
137137
if (file.endsWith('.hot-update.js')) return null
138138
if (excludedFiles.has(file)) return null

packages/next/src/build/webpack/plugins/middleware-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ function getCodeAnalyzer(params: {
476476
}
477477

478478
/**
479-
* This expression handler allows to wrap a WebAssembly.instatiate invocation with a
479+
* This expression handler allows to wrap a WebAssembly.instantiate invocation with a
480480
* function call where we can warn about WASM code generation not being allowed
481481
* but actually execute the expression.
482482
*

packages/next/src/build/webpack/plugins/wellknown-errors-plugin/parseScss.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export function getScssError(
1515

1616
const res = regexScssError.exec(err.message)
1717
if (res) {
18-
const [, reason, _lineNumer, backupFrame, columnString] = res
19-
const lineNumber = Math.max(1, parseInt(_lineNumer, 10))
18+
const [, reason, _lineNumber, backupFrame, columnString] = res
19+
const lineNumber = Math.max(1, parseInt(_lineNumber, 10))
2020
const column = columnString?.length ?? 1
2121

2222
let frame: string | undefined

packages/next/src/cli/next-info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ async function printVerboseInfo() {
278278
scripts: {
279279
default: async () => {
280280
// Node.js diagnostic report contains basic information, i.e OS version, CPU architecture, etc.
281-
// Only collect few addtional details here.
281+
// Only collect few additional details here.
282282
const isWsl =
283283
require('next/dist/compiled/is-wsl') as typeof import('next/dist/compiled/is-wsl')
284284
const ciInfo =

packages/next/src/client/app-build-id.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// during initialization before hydration starts, this will always get
1111
// reassigned to the actual build ID before it's ever needed by a navigation.
1212
// If for some reasons it didn't, due to a bug or race condition, then on
13-
// navigation the build comparision would fail and trigger an MPA navigation.
13+
// navigation the build comparison would fail and trigger an MPA navigation.
1414
let globalBuildId: string = ''
1515

1616
export function setAppBuildId(buildId: string) {

0 commit comments

Comments
 (0)