diff options
Diffstat (limited to 'node_modules/@babel/plugin-transform-class-properties/lib')
| -rw-r--r-- | node_modules/@babel/plugin-transform-class-properties/lib/index.js | 23 | ||||
| -rw-r--r-- | node_modules/@babel/plugin-transform-class-properties/lib/index.js.map | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/node_modules/@babel/plugin-transform-class-properties/lib/index.js b/node_modules/@babel/plugin-transform-class-properties/lib/index.js new file mode 100644 index 00000000..fcbc860a --- /dev/null +++ b/node_modules/@babel/plugin-transform-class-properties/lib/index.js @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _helperPluginUtils = require("@babel/helper-plugin-utils"); +var _helperCreateClassFeaturesPlugin = require("@babel/helper-create-class-features-plugin"); +var _default = (0, _helperPluginUtils.declare)((api, options) => { + api.assertVersion(7); + return (0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({ + name: "transform-class-properties", + api, + feature: _helperCreateClassFeaturesPlugin.FEATURES.fields, + loose: options.loose, + manipulateOptions(opts, parserOpts) { + parserOpts.plugins.push("classProperties", "classPrivateProperties"); + } + }); +}); +exports.default = _default; + +//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-transform-class-properties/lib/index.js.map b/node_modules/@babel/plugin-transform-class-properties/lib/index.js.map new file mode 100644 index 00000000..83dde626 --- /dev/null +++ b/node_modules/@babel/plugin-transform-class-properties/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_helperPluginUtils","require","_helperCreateClassFeaturesPlugin","_default","declare","api","options","assertVersion","createClassFeaturePlugin","name","feature","FEATURES","fields","loose","manipulateOptions","opts","parserOpts","plugins","push","exports","default"],"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @babel/development/plugin-name */\n\nimport { declare } from \"@babel/helper-plugin-utils\";\nimport {\n createClassFeaturePlugin,\n FEATURES,\n} from \"@babel/helper-create-class-features-plugin\";\n\nexport interface Options {\n loose?: boolean;\n}\n\nexport default declare((api, options: Options) => {\n api.assertVersion(7);\n\n return createClassFeaturePlugin({\n name: \"transform-class-properties\",\n\n api,\n feature: FEATURES.fields,\n loose: options.loose,\n\n manipulateOptions(opts, parserOpts) {\n parserOpts.plugins.push(\"classProperties\", \"classPrivateProperties\");\n },\n });\n});\n"],"mappings":";;;;;;AAEA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,gCAAA,GAAAD,OAAA;AAGoD,IAAAE,QAAA,GAMrC,IAAAC,0BAAO,EAAC,CAACC,GAAG,EAAEC,OAAgB,KAAK;EAChDD,GAAG,CAACE,aAAa,CAAC,CAAC,CAAC;EAEpB,OAAO,IAAAC,yDAAwB,EAAC;IAC9BC,IAAI,EAAE,4BAA4B;IAElCJ,GAAG;IACHK,OAAO,EAAEC,yCAAQ,CAACC,MAAM;IACxBC,KAAK,EAAEP,OAAO,CAACO,KAAK;IAEpBC,iBAAiBA,CAACC,IAAI,EAAEC,UAAU,EAAE;MAClCA,UAAU,CAACC,OAAO,CAACC,IAAI,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;IACtE;EACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAAAC,OAAA,CAAAC,OAAA,GAAAjB,QAAA"}
\ No newline at end of file |
