package: transpile ws to work with electron 1.8.8
This commit is contained in:
parent
5957e3e1da
commit
1527c78ff6
1 changed files with 19 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
var build = require('./build')
|
||||
var build = require('./build'),
|
||||
babelify = require('babelify')
|
||||
|
||||
build({
|
||||
input: '../src/server/index.js',
|
||||
|
|
@ -19,5 +20,21 @@ build({
|
|||
browserField: false,
|
||||
},
|
||||
ignore: 'serialport',
|
||||
exclude: 'electron'
|
||||
exclude: 'electron',
|
||||
transforms: [
|
||||
[babelify, {
|
||||
'presets': [
|
||||
['@babel/env', {
|
||||
'targets': {
|
||||
'node': '6',
|
||||
},
|
||||
'useBuiltIns': 'usage',
|
||||
'corejs': 3
|
||||
}]
|
||||
],
|
||||
'plugins': ['@babel/plugin-proposal-object-rest-spread'],
|
||||
'global': true,
|
||||
'ignore': [/^(?!.*ws\/)/]
|
||||
}]
|
||||
]
|
||||
})()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue