fix(cli): fallback to wasm32 if platform is not support (#1967)
This commit is contained in:
parent
8855f18f50
commit
0306e3045a
1 changed files with 2 additions and 2 deletions
|
@ -318,11 +318,11 @@ switch (platform) {
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
throw new Error(\`Unsupported architecture on Linux: \${arch}\`)
|
loadError = new Error(\`Unsupported architecture on Linux: \${arch}\`)
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
throw new Error(\`Unsupported OS: \${platform}, architecture: \${arch}\`)
|
loadError = new Error(\`Unsupported OS: \${platform}, architecture: \${arch}\`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
||||||
|
|
Loading…
Reference in a new issue