Import and use native module (*.node) #9203
Answered
by
xiaoxiangmoe
sylvainDNS
asked this question in
Q&A
-
Hi guys! I'm trying to make an electron app, with a CRA "inside". I need to interract with host system, so we want to use Rust with Neon Bindings. They made a tutorial to use it in Electron, but not with Webpack : https://neon-bindings.com/docs/electron-apps We tried many things (including overiding conf with craco with Webpack plugins & Does someone already done it ? I made a repo with a simple webpack config if someone want to test : https://github.com/sylvainDNS/webpack-native-module |
Beta Was this translation helpful? Give feedback.
Answered by
xiaoxiangmoe
Jun 28, 2020
Replies: 1 comment 2 replies
-
using |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sylvainDNS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
using
(window as any).require('./foo.node')
;