We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c12b83 commit 81fa4fdCopy full SHA for 81fa4fd
generator/index.js
@@ -71,6 +71,10 @@ module.exports = (api, options = {}) => {
71
/let win\s*?$/m,
72
'let win: BrowserWindow | null'
73
)
74
+ background = background.replace(
75
+ 'process.env.ELECTRON_NODE_INTEGRATION',
76
+ '(process.env\n .ELECTRON_NODE_INTEGRATION as unknown) as boolean'
77
+ )
78
fs.writeFileSync(api.resolve('./src/background.ts'), background)
79
}
80
if (api.hasPlugin('router')) {
0 commit comments