Skip to content

Commit 81fa4fd

Browse files
committed
fix(generator): nodeIntegration env var type error
1 parent 8c12b83 commit 81fa4fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

generator/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ module.exports = (api, options = {}) => {
7171
/let win\s*?$/m,
7272
'let win: BrowserWindow | null'
7373
)
74+
background = background.replace(
75+
'process.env.ELECTRON_NODE_INTEGRATION',
76+
'(process.env\n .ELECTRON_NODE_INTEGRATION as unknown) as boolean'
77+
)
7478
fs.writeFileSync(api.resolve('./src/background.ts'), background)
7579
}
7680
if (api.hasPlugin('router')) {

0 commit comments

Comments
 (0)