Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
performance improvement of static generation (vercel#25035)
Browse files Browse the repository at this point in the history
### move all access to built pages into worker pool

to allow parallelizing and avoid loading the bundles in the main thread

This improves performance of the static check step a bit and helps reducing memory load in main thread

### enable splitChunks for server build in webpack 5

This improves performance for static generation by loading less code due to reduced duplication
  • Loading branch information
sokra committed May 17, 2021
1 parent 4f44954 commit dca9575
Show file tree
Hide file tree
Showing 5 changed files with 205 additions and 189 deletions.
2 changes: 1 addition & 1 deletion packages/next/build/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export type WebpackEntrypoints = {
| string[]
| {
import: string | string[]
dependOn: string | string[]
dependOn?: string | string[]
}
}

Expand Down
Loading

0 comments on commit dca9575

Please sign in to comment.