Skip to content

Commit

Permalink
fix: add new plugin names to missing plugin helpers (#11643)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung authored May 29, 2020
1 parent d7d36a6 commit 6b7a6dc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/babel-core/src/parser/util/missing-plugin-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ const pluginNameMap = {
url: "https://git.io/vAlRe",
},
},
moduleAttributes: {
syntax: {
name: "@babel/plugin-syntax-module-attributes",
url: "https://git.io/JfK3k",
},
},
numericSeparator: {
syntax: {
name: "@babel/plugin-syntax-numeric-separator",
Expand Down Expand Up @@ -163,6 +169,16 @@ const pluginNameMap = {
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: {
syntax: {
name: "@babel/plugin-syntax-record-and-tuple",
Expand Down Expand Up @@ -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})`;

/*
Expand Down

0 comments on commit 6b7a6dc

Please sign in to comment.