Skip to content

Commit

Permalink
Add @babel/plugin-proposal-private-methods to @babel/standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Dec 2, 2018
1 parent 806e133 commit 2ec45f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/babel-standalone/package.json
Expand Up @@ -27,6 +27,7 @@
"@babel/plugin-proposal-optional-catch-binding": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
"@babel/plugin-proposal-private-methods": "^7.2.0",
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
"@babel/plugin-proposal-unicode-property-regex": "^7.0.0",
"@babel/plugin-syntax-async-generators": "^7.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-standalone/src/index.js
Expand Up @@ -165,6 +165,7 @@ registerPlugins({
"proposal-export-default-from": require("@babel/plugin-proposal-export-default-from"),
"proposal-export-namespace-from": require("@babel/plugin-proposal-export-namespace-from"),
"proposal-pipeline-operator": require("@babel/plugin-proposal-pipeline-operator"),
"proposal-private-methods": require("@babel/plugin-proposal-private-methods"),
"transform-arrow-functions": require("@babel/plugin-transform-arrow-functions"),
"transform-block-scoped-functions": require("@babel/plugin-transform-block-scoped-functions"),
"transform-block-scoping": require("@babel/plugin-transform-block-scoping"),
Expand Down
2 changes: 2 additions & 0 deletions packages/babel-standalone/src/preset-stage-3.js
Expand Up @@ -2,6 +2,7 @@ import syntaxDynamicImport from "@babel/plugin-syntax-dynamic-import";
import syntaxImportMeta from "@babel/plugin-syntax-import-meta";
import transformClassProperties from "@babel/plugin-proposal-class-properties";
import transformJsonStrings from "@babel/plugin-proposal-json-strings";
import transformPrivateMethods from "@babel/plugin-proposal-private-methods";

export default (_, opts) => {
let loose = false;
Expand All @@ -16,6 +17,7 @@ export default (_, opts) => {
syntaxImportMeta,
[transformClassProperties, { loose }],
transformJsonStrings,
[transformPrivateMethods, { loose }],
],
};
};

0 comments on commit 2ec45f7

Please sign in to comment.