bpkg icon indicating copy to clipboard operation
bpkg copied to clipboard

node-gyp-build Support

Open pcfreak30 opened this issue 1 year ago • 0 comments

This one seems tricker because the recommended code pattern is var binding = require('node-gyp-build')(__dirname)

Would need to potentially replace the path in the AST or otherwise support dynamic imports then add dedicated support for it or rewrite to use the bindings resolver in linker.js

For now its much simpler to just patch the module and replace the entrypoint with bindings module, but would be nice to get support for this loader.

pcfreak30 avatar May 02 '24 02:05 pcfreak30