Unverified Commit 189329f5 authored by 루밀LuMir's avatar 루밀LuMir Committed by GitHub

chore: delete redundant blank spaces in `packages` directory (#71189)

## 📚 Fixed some typos

Hello, while reviewing the source code in `packages` directory, I
noticed some unnecessary blank spaces in **comments**, so I fixed them.
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent c836b8ca
......@@ -49,7 +49,7 @@ export default function transformer(file: FileInfo, _api: API) {
}
// If file has <style jsx> enable legacyBehavior
// and keep <a> to stay on the safe side
// and keep <a> to stay on the safe side
if (hasStylesJSX) {
$link
.get('attributes')
......
......@@ -6,7 +6,7 @@ import { AppPathnameNormalizer } from '../server/normalizers/built/app/app-pathn
* It will traverse the appPaths, looking for catch-all routes and try to find parallel routes that could match
* the catch-all. If it finds a match, it will add the catch-all to the parallel route's list of possible routes.
*
* @param appPaths The appPaths to transform
* @param appPaths The appPaths to transform
*/
export function normalizeCatchAllRoutes(
appPaths: Record<string, string[]>,
......
......@@ -1405,7 +1405,7 @@ export async function buildAppStaticPaths({
}))
// TODO: dynamic params should be allowed to be granular per segment but
// we need additional information stored/leveraged in the prerender
// we need additional information stored/leveraged in the prerender
// manifest to allow this behavior.
const dynamicParams = segments.every(
(segment) => segment.config?.dynamicParams !== false
......
......@@ -1872,7 +1872,7 @@ export default async function getBaseWebpackConfig(
isEdgeRuntime: isEdgeServer,
distDir: !dev ? distDir : undefined,
}),
// MiddlewarePlugin should be after DefinePlugin so NEXT_PUBLIC_*
// MiddlewarePlugin should be after DefinePlugin so NEXT_PUBLIC_*
// replacement is done before its process.env.* handling
isEdgeServer &&
new MiddlewarePlugin({
......
......@@ -123,7 +123,7 @@ export class MinifyPlugin {
}
}
// The limit in the SWC minifier will be handled by Node.js
// The limit in the SWC minifier will be handled by Node.js
const limit = pLimit(Infinity)
const scheduledTasks = []
......
......@@ -29,7 +29,7 @@ export function isNavigatingToNewRootLayout(
// If the next tree doesn't have the root layout flag, it must have changed.
return !nextTree[4]
}
// Current tree didn't have its root layout here, must have changed.
// Current tree didn't have its root layout here, must have changed.
if (nextTree[4]) {
return true
}
......
......@@ -726,7 +726,7 @@ export function updateCacheNodeOnPopstateRestoration(
) {
// A popstate navigation reads data from the local cache. It does not issue
// new network requests (unless the cache entries have been evicted). So, we
// update the cache to drop the prefetch data for any segment whose dynamic
// update the cache to drop the prefetch data for any segment whose dynamic
// data was already received. This prevents an unnecessary flash back to PPR
// state during a back/forward navigation.
//
......
......@@ -614,7 +614,7 @@ export function createPatchedFetcher(
})
} else {
// We are dynamically rendering including dev mode. We want to return
// the response to the caller as soon as possible because it might stream
// the response to the caller as soon as possible because it might stream
// over a very long time.
res
.clone()
......
......@@ -610,7 +610,7 @@ async function startWatcher(opts: SetupOpts) {
try {
tsconfigResult = await loadJsConfig(dir, nextConfig)
} catch (_) {
/* do we want to log if there are syntax errors in tsconfig while editing? */
/* do we want to log if there are syntax errors in tsconfig while editing? */
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment