UNPKG

733 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7
8var _helperPluginUtils = require("@babel/helper-plugin-utils");
9
10var _helperCreateClassFeaturesPlugin = require("@babel/helper-create-class-features-plugin");
11
12var _default = (0, _helperPluginUtils.declare)((api, options) => {
13 api.assertVersion(7);
14 return (0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({
15 name: "proposal-class-properties",
16 api,
17 feature: _helperCreateClassFeaturesPlugin.FEATURES.fields,
18 loose: options.loose,
19
20 manipulateOptions(opts, parserOpts) {
21 parserOpts.plugins.push("classProperties", "classPrivateProperties");
22 }
23
24 });
25});
26
27exports.default = _default;
\No newline at end of file