Skip to content

Commit

Permalink
Update babel to not use node target, but instead polyfill behavior fr…
Browse files Browse the repository at this point in the history
…om 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.
  • Loading branch information
AtofStryker authored and AtofStryker committed Sep 14, 2020
1 parent 1395303 commit 3a56348
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ module.exports = {
[
'@babel/preset-env',
{
targets: {
node: 'current'
}
corejs: 3,
useBuiltIns: 'usage'
}
]
]
Expand Down

0 comments on commit 3a56348

Please sign in to comment.