Is it working on electron and support webpack?(mac os x 10.12.6)
hello-chenchen opened this issue · 3 comments
hello-chenchen commented
Hi,
When using node-ffi(ps: i know node-ffi also maintained by you.) in electron to load DynamicLibrary. there is a problem when executing require('ffi'), and the error log in electron console:
Uncaught ReferenceError: bindings is not defined
at Object.<anonymous> (external "bindings":1)
at e (bootstrap:44)
at Object.<anonymous> (ref.js:5)
at e (bootstrap:44)
at Object.<anonymous> (ffi.js:6)
at e (bootstrap:44)
at Module.<anonymous> (Clipboard.js:4)
at e (bootstrap:44)
at Module.<anonymous> (index.js:10)
at e (bootstrap:44)
and i use webpack 4 to build source code.
Wanted to know if bindings support electron 4.0.1 | webpack 4 on mac os x 10.12.6. thanks~
hello-chenchen commented
the whole source code can be found in:
system-operate-tools branch es2015-node-ffi
hello-chenchen commented
node-ffi is installed in --build-from-source