deno_std
deno_std copied to clipboard
feat(node): support loading NAPI native modules
trafficstars
DO NOT MERGE
This PR adds support for loading Node-API modules using Deno.core.napiOpen. Actual implementation resides here https://github.com/denoland/deno/pull/13633
We need this patch (unmerged) to run tests (temporarily) on the PR's CI.
TODO:
- [ ] Handle
index.nodelookup.require("dir/") => require("dir/index.node")
Adding this feature might unlock the use of prisma
ref: https://github.com/prisma/prisma/issues/2452#issuecomment-1082381367
@littledivy now that node-api support landed in core, is this something we should revisit?
closing in favor of #2804