From 366120760285152e07653a05594c5ac3104371c8 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Mon, 4 Mar 2019 10:12:42 +0200 Subject: [PATCH] switch to babel.config.js --- .babelrc | 12 ------------ babel.config.js | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 12 deletions(-) delete mode 100644 .babelrc create mode 100644 babel.config.js diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 8aa95a98..00000000 --- a/.babelrc +++ /dev/null @@ -1,12 +0,0 @@ -{ - "presets": [ - [ - "@babel/env", - { - "targets": { - "node": "6.7.0" - } - } - ] - ] -} diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 00000000..64f7c0d4 --- /dev/null +++ b/babel.config.js @@ -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 + } +}