From b26eb65e9969cebc65def91f0bed5a2ea03d37fe Mon Sep 17 00:00:00 2001 From: Oleg Shilov Date: Sat, 23 Mar 2019 04:09:20 +0300 Subject: [PATCH] fix: update babel preset config set corejs version #12744 --- packages/babel-preset-gatsby/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/babel-preset-gatsby/src/index.js b/packages/babel-preset-gatsby/src/index.js index d0842a53188b8..5af2ed4b08cf7 100644 --- a/packages/babel-preset-gatsby/src/index.js +++ b/packages/babel-preset-gatsby/src/index.js @@ -49,6 +49,7 @@ module.exports = function preset(_, options = {}) { modules: stage === `test` ? `commonjs` : false, useBuiltIns: `usage`, targets, + corejs: 2, }, ], [