Fix request module not found
This commit is contained in:
parent
71c2d3aaad
commit
81e392c0f6
|
@ -37,7 +37,7 @@ module.exports = {
|
|||
util: 'require("util")',
|
||||
process: 'require("process")',
|
||||
net: 'require("net")',
|
||||
request: 'require.main.require("request")',
|
||||
request: 'require(require("path").join(require("electron").remote.app.getAppPath(), "node_modules", "request"))',
|
||||
sparkplug: 'require("../../core/dist/sparkplug")'
|
||||
},
|
||||
resolve: {
|
||||
|
|
|
@ -38,7 +38,7 @@ module.exports = {
|
|||
util: 'require("util")',
|
||||
process: 'require("process")',
|
||||
net: 'require("net")',
|
||||
request: 'require.main.require("request")',
|
||||
request: 'require(require("path").join(require("electron").remote.app.getAppPath(), "node_modules", "request"))',
|
||||
sparkplug: 'require("./sparkplug")'
|
||||
},
|
||||
resolve: {
|
||||
|
|
Loading…
Reference in New Issue