diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 00000000..092bf39f --- /dev/null +++ b/babel.config.js @@ -0,0 +1,13 @@ +module.exports = { + presets: [ + [ + "@babel/preset-env", + { + targets: { + node: "10", + }, + }, + ], + ], + plugins: ["@babel/plugin-proposal-object-rest-spread", "istanbul"], +}; diff --git a/package.json b/package.json index 295e894e..df3d19e2 100644 --- a/package.json +++ b/package.json @@ -88,22 +88,6 @@ "strip-bom": "4.0.0", "strip-json-comments": "3.0.1" }, - "babel": { - "presets": [ - [ - "@babel/preset-env", - { - "targets": { - "node": "10" - } - } - ] - ], - "plugins": [ - "@babel/plugin-proposal-object-rest-spread", - "istanbul" - ] - }, "nyc": { "extends": "@istanbuljs/nyc-config-babel", "exclude": [