Skip to content

Commit

Permalink
fix: add classPrivateProperties and classPrivateMethods to missing pl…
Browse files Browse the repository at this point in the history
…ugin helper
  • Loading branch information
JLHwung committed Apr 9, 2020
1 parent cab1e79 commit 89293d4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/babel-core/src/parser/util/missing-plugin-helper.js
Expand Up @@ -11,6 +11,16 @@ const pluginNameMap = {
url: "https://git.io/vb4SL",
},
},
classPrivateMethods: {
syntax: {
name: "@babel/plugin-syntax-class-properties",
url: "https://git.io/vb4yQ",
},
transform: {
name: "@babel/plugin-proposal-private-methods",
url: "https://git.io/JvpRG",
},
},
decorators: {
syntax: {
name: "@babel/plugin-syntax-decorators",
Expand Down Expand Up @@ -215,6 +225,7 @@ const pluginNameMap = {
},
},
};
pluginNameMap.classPrivateProperties = pluginNameMap.classProperties;

const getNameURLCombination = ({ name, url }) => `${name} (${url})`;

Expand Down

0 comments on commit 89293d4

Please sign in to comment.