@babel/plugin-transform-class-properties 7.25.9 → 7.28.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -4
- package/lib/index.js.map +1 -1
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -7,16 +7,14 @@ exports.default = void 0;
|
|
|
7
7
|
var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
|
8
8
|
var _helperCreateClassFeaturesPlugin = require("@babel/helper-create-class-features-plugin");
|
|
9
9
|
var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => {
|
|
10
|
-
api.assertVersion(7);
|
|
10
|
+
api.assertVersion("^7.0.0-0 || ^8.0.0-0");
|
|
11
11
|
return (0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({
|
|
12
12
|
name: "transform-class-properties",
|
|
13
13
|
api,
|
|
14
14
|
feature: _helperCreateClassFeaturesPlugin.FEATURES.fields,
|
|
15
15
|
loose: options.loose,
|
|
16
16
|
manipulateOptions(opts, parserOpts) {
|
|
17
|
-
|
|
18
|
-
parserOpts.plugins.push("classProperties", "classPrivateProperties");
|
|
19
|
-
}
|
|
17
|
+
parserOpts.plugins.push("classProperties", "classPrivateProperties");
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
20
|
});
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_helperPluginUtils","require","_helperCreateClassFeaturesPlugin","_default","exports","default","declare","api","options","assertVersion","createClassFeaturePlugin","name","feature","FEATURES","fields","loose","manipulateOptions","opts","parserOpts","plugins","push"],"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(REQUIRED_VERSION(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 if (!process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) These plugins have been removed\n parserOpts.plugins.push(\"classProperties\", \"classPrivateProperties\");\n }\n },\n });\n});\n"],"mappings":";;;;;;AAEA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,gCAAA,GAAAD,OAAA;AAGoD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMrC,IAAAC,0BAAO,EAAC,CAACC,GAAG,EAAEC,OAAgB,KAAK;EAChDD,GAAG,CAACE,aAAa,CAAkB,
|
|
1
|
+
{"version":3,"names":["_helperPluginUtils","require","_helperCreateClassFeaturesPlugin","_default","exports","default","declare","api","options","assertVersion","createClassFeaturePlugin","name","feature","FEATURES","fields","loose","manipulateOptions","opts","parserOpts","plugins","push"],"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(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\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 if (!process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) These plugins have been removed\n parserOpts.plugins.push(\"classProperties\", \"classPrivateProperties\");\n }\n },\n });\n});\n"],"mappings":";;;;;;AAEA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,gCAAA,GAAAD,OAAA;AAGoD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMrC,IAAAC,0BAAO,EAAC,CAACC,GAAG,EAAEC,OAAgB,KAAK;EAChDD,GAAG,CAACE,aAAa,CAAkB,sBAAuB,CAAC;EAE3D,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;MAGhCA,UAAU,CAACC,OAAO,CAACC,IAAI,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;IAExE;EACF,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babel/plugin-transform-class-properties",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.28.6",
|
|
4
4
|
"description": "This plugin transforms static class properties as well as properties declared with the property initializer syntax",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"babel-plugin"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@babel/helper-create-class-features-plugin": "^7.
|
|
21
|
-
"@babel/helper-plugin-utils": "^7.
|
|
20
|
+
"@babel/helper-create-class-features-plugin": "^7.28.6",
|
|
21
|
+
"@babel/helper-plugin-utils": "^7.28.6"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@babel/core": "^7.0.0-0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@babel/core": "^7.
|
|
28
|
-
"@babel/helper-plugin-test-runner": "^7.
|
|
27
|
+
"@babel/core": "^7.28.6",
|
|
28
|
+
"@babel/helper-plugin-test-runner": "^7.27.1"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=6.9.0"
|