From 3a56348f2224aa45306ac6be7ec2b4916944e4b4 Mon Sep 17 00:00:00 2001 From: AtofStryker Date: Mon, 14 Sep 2020 15:35:29 -0400 Subject: [PATCH] Update babel to not use node target, but instead polyfill behavior from corejs 3. the useBuiltIns option is set to usage to polyfill functionally each time it is used, as opposed to entry (which is polyfilled once). This is only needed for testing purposes to keep async functions complacent in the jQuery $.ajax handler. Once jQuery is removed, target: node can likely be used without issue. --- babel.config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/babel.config.js b/babel.config.js index c76a0d0..dc11e0a 100644 --- a/babel.config.js +++ b/babel.config.js @@ -3,9 +3,8 @@ module.exports = { [ '@babel/preset-env', { - targets: { - node: 'current' - } + corejs: 3, + useBuiltIns: 'usage' } ] ]