From 11b5d7b4bd4df61e4cfd2117f76fca408349e636 Mon Sep 17 00:00:00 2001 From: klarstrup Date: Fri, 22 Mar 2019 11:31:17 +0100 Subject: [PATCH] specify core-js version for @babel/preset-env --- babel.config.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/babel.config.js b/babel.config.js index fa21b0fe..3282cb8a 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,13 +1,17 @@ const presets = [ - ["@babel/preset-env", { - targets: { - browsers: ["> 3%", "IE 11"], - node: 8 - }, - useBuiltIns: "usage" - }] + [ + '@babel/preset-env', + { + targets: { + browsers: ['> 3%', 'IE 11'], + node: 8 + }, + corejs: 3, + useBuiltIns: 'usage' + } + ] ]; - + module.exports = { presets -}; \ No newline at end of file +};