switch to babel.config.js
This commit is contained in:
parent
92845728cc
commit
3661207602
12
.babelrc
12
.babelrc
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"presets": [
|
|
||||||
[
|
|
||||||
"@babel/env",
|
|
||||||
{
|
|
||||||
"targets": {
|
|
||||||
"node": "6.7.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
module.exports = function(api) {
|
||||||
|
|
||||||
|
api.cache(true);
|
||||||
|
|
||||||
|
const presets = [['@babel/env', {
|
||||||
|
targets: {
|
||||||
|
'node': '8.6.0'
|
||||||
|
}
|
||||||
|
}]];
|
||||||
|
|
||||||
|
const plugins = [];
|
||||||
|
|
||||||
|
return {
|
||||||
|
presets,
|
||||||
|
plugins
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue