Make recursiveReadDir return sorted array (#7658)
This function is used to return the /pages folder content. The way it is today is that every run might result in a different order of files, which makes the whole webpack chunks be different. An ordered list of files will result in a deterministic build, which will improve caching.
This commit is contained in:
parent
e56573008b
commit
634b138b40
1 changed files with 1 additions and 1 deletions
|
@ -42,5 +42,5 @@ export async function recursiveReadDir(
|
|||
})
|
||||
)
|
||||
|
||||
return arr
|
||||
return arr.sort()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue