From 0ef87397daa69350194eda6791698080d50c18d9 Mon Sep 17 00:00:00 2001 From: Maia Teegarden Date: Mon, 29 Nov 2021 16:05:35 -0800 Subject: [PATCH] Account for platform/arch not supported by napi (#31938) --- packages/next/build/swc/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/build/swc/index.js b/packages/next/build/swc/index.js index 5b8ad6f7cecdf..975490a4c5e8a 100644 --- a/packages/next/build/swc/index.js +++ b/packages/next/build/swc/index.js @@ -4,7 +4,7 @@ import Log from '../output/log' const ArchName = arch() const PlatformName = platform() -const triples = platformArchTriples[PlatformName][ArchName] +const triples = platformArchTriples[PlatformName][ArchName] || [] async function loadBindings() { return (await loadWasm()) || loadNative()