Skip to content

Commit

Permalink
Remove unnecessary polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bailey committed Aug 28, 2018
1 parent 3f53a79 commit c7858fe
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .babel-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,7 @@ function preset(context, options = {}) {
plugins: [
r("@babel/plugin-proposal-class-properties"),
r("@babel/plugin-proposal-optional-chaining"),
[
r("@babel/plugin-transform-runtime"),
{
// we are only polyfilling the node environment
// so we need to enable the runtime replacements for the browser preset
corejs: browser ? 2 : false,
},
],
r("@babel/plugin-transform-runtime"),
],
}
}
Expand Down

0 comments on commit c7858fe

Please sign in to comment.