Skip to content

Commit

Permalink
performance improvement of static generation (#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 a442053 commit 3bf4ae3
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 3bf4ae3

Please sign in to comment.