package: update electron, raise min node version to 10

This commit is contained in:
bordun 2020-11-24 10:47:02 +01:00
parent 8bacb38c2b
commit b192eb244c
8 changed files with 12 additions and 25 deletions

View file

@ -9,5 +9,8 @@ build({
detectGlobals: false,
bare: true,
noParse: ['**/mathjs/dist/math.min.js']
}
},
exclude: [
'electron',
]
})()

View file

@ -23,21 +23,5 @@ build({
exclude: [
'electron',
'./fsevents.node' // osx binary module, to be copied as is
],
transforms: [
[babelify, {
'presets': [
['@babel/env', {
'targets': {
'node': '6',
},
'useBuiltIns': 'usage',
'corejs': 3
}]
],
'plugins': ['@babel/plugin-proposal-object-rest-spread'],
'global': true,
'only': ['**/ws/', '**/yargs/', '**/find-up/', '**/locate-path', '**/p-locate']
}]
]
})()