diff --git a/src/index.ts b/src/index.ts index b552a7a..0e3f1de 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,6 +13,7 @@ async function getImplementation(impl: Implementation = "herumi"): Promise 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"); }