From d7210d99efa98ca437724acc718083b014bdbe10 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 17 Feb 2024 11:11:51 -0500 Subject: [PATCH] Set compression level to 0 --- dev/dictionary-archive-util.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dev/dictionary-archive-util.js b/dev/dictionary-archive-util.js index 62f55d365c..ca037947ef 100644 --- a/dev/dictionary-archive-util.js +++ b/dev/dictionary-archive-util.js @@ -29,7 +29,10 @@ import {parseJson} from './json.js'; export async function createDictionaryArchiveData(dictionaryDirectory, dictionaryName) { const fileNames = readdirSync(dictionaryDirectory); const zipFileWriter = new BlobWriter(); - const zipWriter = new ZipWriter(zipFileWriter); + // Curiously, any level other than 0 here will cause DictionaryImporter.importDictionary to fail. + const zipWriter = new ZipWriter(zipFileWriter, { + level: 0 + }); for (const fileName of fileNames) { if (/\.json$/.test(fileName)) { const content = readFileSync(join(dictionaryDirectory, fileName), {encoding: 'utf8'});