deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

feat(node): support loading NAPI native modules

Open littledivy opened this issue 2 years ago • 1 comments

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.node lookup. require("dir/") => require("dir/index.node")

littledivy avatar Mar 02 '22 12:03 littledivy

Adding this feature might unlock the use of prisma

スクリーンショット 2022-05-14 21 54 53

ref: https://github.com/prisma/prisma/issues/2452#issuecomment-1082381367

kt3k avatar May 14 '22 12:05 kt3k

@littledivy now that node-api support landed in core, is this something we should revisit?

cjihrig avatar Oct 10 '22 16:10 cjihrig

closing in favor of #2804

kt3k avatar Oct 24 '22 15:10 kt3k