Fixed babel transpilation of jsesc and crypto-api

This commit is contained in:
n1474335 2018-11-21 17:47:56 +00:00
parent d6604e0008
commit cc35ec82eb
4 changed files with 31 additions and 21 deletions

23
babel.config.js Normal file
View file

@ -0,0 +1,23 @@
module.exports = function(api) {
api.cache.forever();
return {
"presets": [
["@babel/preset-env", {
"targets": {
"chrome": 40,
"firefox": 35,
"edge": 14,
"node": "6.5"
},
"modules": false,
"useBuiltIns": "entry"
}]
],
"plugins": [
["babel-plugin-transform-builtin-extend", {
"globals": ["Error"]
}]
]
};
};