Skip to content

Commit

Permalink
Only use the relevant features for transform-new-target and transform…
Browse files Browse the repository at this point in the history
…-classes
  • Loading branch information
gausie committed Jun 22, 2021
1 parent 07928a2 commit 8ac5af5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/babel-compat-data/scripts/data/plugin-features.js
Expand Up @@ -55,7 +55,6 @@ const es2015 = {
"super",
'arrow functions / lexical "super" binding in constructors',
'arrow functions / lexical "super" binding in methods',
'arrow functions / lexical "new.target" binding',
],
},
"transform-object-super": {
Expand Down Expand Up @@ -108,12 +107,7 @@ const es2015 = {
features: ["Symbol / typeof support"],
},
"transform-new-target": {
features: [
"new.target",
'arrow functions / lexical "super" binding in constructors',
'arrow functions / lexical "super" binding in methods',
'arrow functions / lexical "new.target" binding',
],
features: ["new.target", 'arrow functions / lexical "new.target" binding'],
},
"transform-regenerator": {
features: ["generators"],
Expand Down

0 comments on commit 8ac5af5

Please sign in to comment.