index.js 794 B

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _helperPluginUtils = require("@babel/helper-plugin-utils");
  7. var _helperCreateClassFeaturesPlugin = require("@babel/helper-create-class-features-plugin");
  8. var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => {
  9. api.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");
  10. return (0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({
  11. name: "transform-private-methods",
  12. api,
  13. feature: _helperCreateClassFeaturesPlugin.FEATURES.privateMethods,
  14. loose: options.loose,
  15. manipulateOptions(opts, parserOpts) {
  16. {
  17. parserOpts.plugins.push("classPrivateMethods");
  18. }
  19. }
  20. });
  21. });
  22. //# sourceMappingURL=index.js.map