Import and use native module (*.node) #9203
-
| 
         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.
Replies: 1 comment 2 replies
-
| 
         using   | 
  
Beta Was this translation helpful? Give feedback.
using
(window as any).require('./foo.node');