Open nukeop opened 6 years ago
You have to exclude the preload.js
script in this package from being compiled with Webpack.
I've opened an Electron feature request to make this just work: https://github.com/electron/electron/issues/14012
Adding exclude: /node_modules\/electron\-timber\/preload\.js/
to the jsx parsing rule in webpack did the trick, thanks for the help.
I noticed that my electron program fails to start because it can't find preload.js. Looking at the webpack-compiled bundle, I found that the culprit must be electron-timber, since it's the only module that looks for preview.js. Here's the output:
It loads fine in debug build. What prevents it from running in production build?