Skip to content

Commit 5e45bf3

Browse files
committed
chore(wasm): disable on s390x
1 parent cc593c5 commit 5e45bf3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils/highlighter.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ function isCodeBlock(node) {
3131
);
3232
}
3333

34-
export const highlighter = await createHighlighter({ wasm: true });
34+
export const highlighter = await createHighlighter({
35+
// s390x machines throw memory issues on WASM builds
36+
// https://github.com/nodejs/node/blob/c9acf345922bd758fbb3f16ee6256aa165260219/test/common/sea.js#L55
37+
wasm: process.arch !== 's390x',
38+
});
3539

3640
/**
3741
* Creates a HAST transformer for Shiki which is used for transforming our codeboxes

0 commit comments

Comments
 (0)