Document lazy import

This commit is contained in:
dapplion 2020-11-29 16:59:24 +00:00
parent 2235e7be89
commit e51c1784a7
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ async function getImplementation(impl: Implementation = "herumi"): Promise<IBls>
return blsHerumi;
case "blst-native":
// Lazy import native bindings to prevent automatically importing binding.node files
if (typeof require !== "function") {
throw Error("blst-native is only supported in NodeJS");
}