diff options
Diffstat (limited to 'src/write/build-modes/static-build.js')
-rw-r--r-- | src/write/build-modes/static-build.js | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/write/build-modes/static-build.js b/src/write/build-modes/static-build.js index c50db6b8..d743a64b 100644 --- a/src/write/build-modes/static-build.js +++ b/src/write/build-modes/static-build.js @@ -288,6 +288,17 @@ export async function go({ showAggregate: niceShowAggregate, }); + const commonUtilities = { + defaultLanguage, + getSizeOfAdditionalFile, + getSizeOfImagePath, + languages, + missingImagePaths, + thumbsCache, + urls, + wikiData, + }; + const perLanguageFn = async (language, i, entries) => { const baseDirectory = language === defaultLanguage ? '' : language.code; @@ -316,19 +327,13 @@ export async function go({ }); const bound = bindUtilities({ + ...commonUtilities, + absoluteTo, - defaultLanguage, - getSizeOfAdditionalFile, - getSizeOfImagePath, language, - languages, - missingImagePaths, pagePath, pagePathStringFromRoot: pathname, - thumbsCache, to, - urls, - wikiData, }); let pageHTML, oEmbedJSON; |