Skip to content

Commit

Permalink
fix(eleventy-rocket-nav): allow to process bigger (up to 256kB) html …
Browse files Browse the repository at this point in the history
…files
  • Loading branch information
daKmoR committed Sep 21, 2020
1 parent c8fb969 commit 1819f5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lovely-mirrors-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@d4kmor/eleventy-rocket-nav': patch
---

Wasm needs to get enough memory so it can access bigger html files. Now up to 256kB.
2 changes: 1 addition & 1 deletion packages/eleventy-rocket-nav/eleventy-rocket-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const saxWasmBuffer = fs.readFileSync(saxPath);
// Instantiate
const parser = new SAXParser(
SaxEventType.Attribute | SaxEventType.OpenTag | SaxEventType.Text | SaxEventType.CloseTag,
{ highWaterMark: 64 * 1024 }, // 64k chunks
{ highWaterMark: 256 * 1024 }, // 256k chunks
);
parser.prepareWasm(saxWasmBuffer);

Expand Down

0 comments on commit 1819f5f

Please sign in to comment.