Skip to content

Commit 742bb1d

Browse files
committed
Use TextEncoder to support non-node environments
1 parent 281ac6f commit 742bb1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/processors/obfProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ class ObfProcessor extends BaseProcessor {
731731
const obfContent = JSON.stringify(obfBoard, null, 2);
732732
return {
733733
name: `${page.id}.obf`,
734-
data: Buffer.from(obfContent, 'utf8'),
734+
data: new TextEncoder().encode(obfContent),
735735
};
736736
});
737737
const zip = await getZipAdapter(undefined, this.options.fileAdapter);

0 commit comments

Comments
 (0)