We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc593c5 commit 64655f3Copy full SHA for 64655f3
1 file changed
src/utils/highlighter.mjs
@@ -31,7 +31,11 @@ function isCodeBlock(node) {
31
);
32
}
33
34
-export const highlighter = await createHighlighter({ wasm: true });
+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
+});
39
40
/**
41
* Creates a HAST transformer for Shiki which is used for transforming our codeboxes
0 commit comments