Skip to content

Commit

Permalink
babel: exclude web.dom-collections.iterator polyfill
Browse files Browse the repository at this point in the history
as we are never iterating over DOM collections
see zloirock/core-js#1003
  • Loading branch information
maxlath committed Jun 23, 2022
1 parent c66780b commit da94ccc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bundle/rules/babel.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ module.exports = {
shippedProposals: true,
// See https://babeljs.io/docs/en/babel-preset-env#bugfixes
bugfixes: true,
exclude: [
// This would be needed if we were to use for...of on DOM collections, which we don't
// see https://github.com/zloirock/core-js/issues/1003
'web.dom-collections.iterator',
],
// Uncomment to get the list of polyfills included in build logs
// debug: true,
}
Expand Down

0 comments on commit da94ccc

Please sign in to comment.