| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/node_modules/@babel/plugin-proposal-decorators/lib/ |
Upload File : |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _pluginSyntaxDecorators = require("@babel/plugin-syntax-decorators");
var _helperCreateClassFeaturesPlugin = require("@babel/helper-create-class-features-plugin");
var _transformerLegacy = require("./transformer-legacy");
var _transformer = require("./transformer-2022-03");
var _default = (0, _helperPluginUtils.declare)((api, options) => {
api.assertVersion(7);
{
var {
legacy
} = options;
}
const {
version
} = options;
if (legacy || version === "legacy") {
return {
name: "proposal-decorators",
inherits: _pluginSyntaxDecorators.default,
visitor: _transformerLegacy.default
};
} else if (version === "2021-12" || version === "2022-03") {
return (0, _transformer.default)(api, options, version);
} else {
api.assertVersion("^7.0.2");
return (0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({
name: "proposal-decorators",
api,
feature: _helperCreateClassFeaturesPlugin.FEATURES.decorators,
inherits: _pluginSyntaxDecorators.default
});
}
});
exports.default = _default;
//# sourceMappingURL=index.js.map