Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Compatibility with bundling tools like webpack and rollup #308
A way to find binaries by contents of
As this code in gRPC's repo, we need to pass paths to
So, we need some function like
var binary = require('node-pre-gyp/lib/pre-binding'); var path = require('path'); var binding_path = binary.findByPackageInfo(require('../../../package.json')); var binding = require(binding_path);
No. I designed node-pre-gyp and I've never used webpack nor do I understand what it is. So, its definitely not supposed to work. That said if it is feasible to get it working, I'd review a PR with tests. Until then I'll close this issue to avoid confusion/the assumption that things should work.