Commit 634b138b authored by Admon Sasson's avatar Admon Sasson Committed by Joe Haddad

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.
parent e5657300
...@@ -42,5 +42,5 @@ export async function recursiveReadDir( ...@@ -42,5 +42,5 @@ export async function recursiveReadDir(
}) })
) )
return arr return arr.sort()
} }
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