Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed May 17, 2024
1 parent a08530f commit 2ca108b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/next/src/build/webpack/loaders/next-app-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,12 @@ const nextAppLoader: AppLoader = async function nextAppLoader() {
middlewareConfig,
}

const normalizedPageExtensions = typeof pageExtensions === "string" ? [pageExtensions] : pageExtensions
const normalizedPageExtensions =
typeof pageExtensions === 'string' ? [pageExtensions] : pageExtensions

const extensions = normalizedPageExtensions.map((extension) => `.${extension}`)
const extensions = normalizedPageExtensions.map(
(extension) => `.${extension}`
)

const normalizedAppPaths =
typeof appPaths === 'string' ? [appPaths] : appPaths || []
Expand Down

0 comments on commit 2ca108b

Please sign in to comment.