From 9ae386c7e4eb751bf4f409180ccecd8bfb78f2c0 Mon Sep 17 00:00:00 2001 From: jimthedev Date: Tue, 7 Apr 2020 14:11:26 -0500 Subject: [PATCH] fix: move to babel.config.js --- babel.config.js | 13 +++++++++++++ package.json | 16 ---------------- 2 files changed, 13 insertions(+), 16 deletions(-) create mode 100644 babel.config.js 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": [