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
|
||||
default:
|
||||
throw new Error(\`Unsupported architecture on Linux: \${arch}\`)
|
||||
loadError = new Error(\`Unsupported architecture on Linux: \${arch}\`)
|
||||
}
|
||||
break
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue