fix: capture the promise global to avoid userland mutation (#20925)
This commit is contained in:
parent
4de04da27a
commit
267821831c
6 changed files with 39 additions and 2 deletions
|
@ -74,7 +74,10 @@ module.exports = ({
|
|||
global: ['@electron/internal/renderer/webpack-provider', '_global'],
|
||||
Buffer: ['@electron/internal/renderer/webpack-provider', 'Buffer'],
|
||||
})
|
||||
] : [])
|
||||
] : []),
|
||||
new webpack.ProvidePlugin({
|
||||
Promise: ['@electron/internal/common/webpack-globals-provider', 'Promise'],
|
||||
}),
|
||||
]
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue