I have an electron app (v28) that makes http requests well from the main process in development, but sends no requests once I build it with electron-packager (v17). Logging from the main process shows that
const axios = require('axios')
in development is importing the expected axios instance, but the packaged production bundle is importing the wrap function returned from this bind util.
as evidenced by logging this in production
const axios = require('axios')
log.info('http', axios)
and receiving
[info] http [function] function wrap() {
return fn.apply(thisArg, arguments);
}
How I can get the electron-packager build to import the correct axios instance?