@babel/plugin-proposal-decorators
Advanced tools
Comparing version 7.2.0 to 7.2.2
@@ -28,4 +28,12 @@ "use strict"; | ||
var _transformer = _interopRequireDefault(require("./transformer")); | ||
function _helperCreateClassFeaturesPlugin() { | ||
const data = require("@babel/helper-create-class-features-plugin"); | ||
_helperCreateClassFeaturesPlugin = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
var _transformerLegacy = _interopRequireDefault(require("./transformer-legacy")); | ||
@@ -63,16 +71,34 @@ | ||
return { | ||
if (legacy) { | ||
return { | ||
name: "proposal-decorators", | ||
inherits: _pluginSyntaxDecorators().default, | ||
manipulateOptions({ | ||
generatorOpts | ||
}) { | ||
generatorOpts.decoratorsBeforeExport = decoratorsBeforeExport; | ||
}, | ||
visitor: _transformerLegacy.default | ||
}; | ||
} | ||
return (0, _helperCreateClassFeaturesPlugin().createClassFeaturePlugin)({ | ||
name: "proposal-decorators", | ||
inherits: _pluginSyntaxDecorators().default, | ||
feature: _helperCreateClassFeaturesPlugin().FEATURES.decorators, | ||
manipulateOptions({ | ||
generatorOpts | ||
generatorOpts, | ||
parserOpts | ||
}) { | ||
parserOpts.plugins.push(["decorators", { | ||
decoratorsBeforeExport | ||
}]); | ||
generatorOpts.decoratorsBeforeExport = decoratorsBeforeExport; | ||
}, | ||
} | ||
visitor: legacy ? _transformerLegacy.default : _transformer.default | ||
}; | ||
}); | ||
}); | ||
exports.default = _default; |
{ | ||
"name": "@babel/plugin-proposal-decorators", | ||
"version": "7.2.0", | ||
"version": "7.2.2", | ||
"author": "Logan Smyth <loganfsmyth@gmail.com>", | ||
@@ -18,5 +18,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@babel/helper-create-class-features-plugin": "^7.2.2", | ||
"@babel/helper-plugin-utils": "^7.0.0", | ||
"@babel/helper-replace-supers": "^7.1.0", | ||
"@babel/helper-split-export-declaration": "^7.0.0", | ||
"@babel/plugin-syntax-decorators": "^7.2.0" | ||
@@ -28,5 +27,5 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.2.0", | ||
"@babel/core": "^7.2.2", | ||
"@babel/helper-plugin-test-runner": "^7.0.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
12287
5
225
+ Added@babel/helper-annotate-as-pure@7.25.7(transitive)
+ Added@babel/helper-create-class-features-plugin@7.25.7(transitive)
+ Added@babel/helper-skip-transparent-expression-wrappers@7.25.7(transitive)
- Removed@babel/helper-replace-supers@^7.1.0
- Removed@babel/helper-split-export-declaration@7.24.7(transitive)