fix: handle electron script errors better (#25328)
This commit is contained in:
parent
29c1248e96
commit
4ad9bcb8b5
8 changed files with 52 additions and 16 deletions
|
@ -69,7 +69,8 @@ module.exports = ({
|
|||
loadElectronFromAlternateTarget,
|
||||
targetDeletesNodeGlobals,
|
||||
target,
|
||||
wrapInitWithProfilingTimeout
|
||||
wrapInitWithProfilingTimeout,
|
||||
wrapInitWithTryCatch
|
||||
}) => {
|
||||
let entry = path.resolve(electronRoot, 'lib', target, 'init.ts');
|
||||
if (!fs.existsSync(entry)) {
|
||||
|
@ -87,6 +88,7 @@ module.exports = ({
|
|||
filename: `${target}.bundle.js`
|
||||
},
|
||||
wrapInitWithProfilingTimeout,
|
||||
wrapInitWithTryCatch,
|
||||
resolve: {
|
||||
alias: {
|
||||
'@electron/internal': path.resolve(electronRoot, 'lib'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue