fix: add new plugin names to missing plugin helpers (#11643)

This commit is contained in:
Huáng Jùnliàng 2020-05-29 14:04:47 -04:00 committed by GitHub
parent d7d36a6c25
commit 6b7a6dccd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,6 +133,12 @@ const pluginNameMap = {
url: "https://git.io/vAlRe", url: "https://git.io/vAlRe",
}, },
}, },
moduleAttributes: {
syntax: {
name: "@babel/plugin-syntax-module-attributes",
url: "https://git.io/JfK3k",
},
},
numericSeparator: { numericSeparator: {
syntax: { syntax: {
name: "@babel/plugin-syntax-numeric-separator", name: "@babel/plugin-syntax-numeric-separator",
@ -163,6 +169,16 @@ const pluginNameMap = {
url: "https://git.io/vb4SU", url: "https://git.io/vb4SU",
}, },
}, },
privateIn: {
syntax: {
name: "@babel/plugin-syntax-private-property-in-object",
url: "https://git.io/JfK3q",
},
transform: {
name: "@babel/plugin-proposal-private-property-in-object",
url: "https://git.io/JfK3O",
},
},
recordAndTuple: { recordAndTuple: {
syntax: { syntax: {
name: "@babel/plugin-syntax-record-and-tuple", name: "@babel/plugin-syntax-record-and-tuple",
@ -236,6 +252,9 @@ const pluginNameMap = {
}, },
}; };
//todo: we don't have plugin-syntax-private-property-in-object
pluginNameMap.privateIn.syntax = pluginNameMap.privateIn.transform;
const getNameURLCombination = ({ name, url }) => `${name} (${url})`; const getNameURLCombination = ({ name, url }) => `${name} (${url})`;
/* /*