Skip to content

Commit

Permalink
Set compression level to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
toasted-nutbread committed Feb 17, 2024
1 parent 7a4862d commit d7210d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dev/dictionary-archive-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'});
Expand Down

0 comments on commit d7210d9

Please sign in to comment.