Debian Codegraph @

packages/babel-preset-env/src/available-plugins.ts

raw symbols SCIP
1 /* eslint sort-keys: "error" */
2
3 import syntaxAsyncGenerators from "@babel/plugin-syntax-async-generators";
4 import syntaxClassProperties from "@babel/plugin-syntax-class-properties";
5 import syntaxClassStaticBlock from "@babel/plugin-syntax-class-static-block";
6 import syntaxDynamicImport from "@babel/plugin-syntax-dynamic-import";
7 import syntaxExportNamespaceFrom from "@babel/plugin-syntax-export-namespace-from";
8 import syntaxImportAssertions from "@babel/plugin-syntax-import-assertions";
9 import syntaxJsonStrings from "@babel/plugin-syntax-json-strings";
10 import syntaxLogicalAssignmentOperators from "@babel/plugin-syntax-logical-assignment-operators";
11 import syntaxNullishCoalescingOperator from "@babel/plugin-syntax-nullish-coalescing-operator";
12 import syntaxNumericSeparator from "@babel/plugin-syntax-numeric-separator";
13 import syntaxObjectRestSpread from "@babel/plugin-syntax-object-rest-spread";
14 import syntaxOptionalCatchBinding from "@babel/plugin-syntax-optional-catch-binding";
15 import syntaxOptionalChaining from "@babel/plugin-syntax-optional-chaining";
16 import syntaxPrivatePropertyInObject from "@babel/plugin-syntax-private-property-in-object";
17 import syntaxTopLevelAwait from "@babel/plugin-syntax-top-level-await";
18 import proposalAsyncGeneratorFunctions from "@babel/plugin-proposal-async-generator-functions";
19 import proposalClassProperties from "@babel/plugin-proposal-class-properties";
20 import proposalClassStaticBlock from "@babel/plugin-proposal-class-static-block";
21 import proposalDynamicImport from "@babel/plugin-proposal-dynamic-import";
22 import proposalExportNamespaceFrom from "@babel/plugin-proposal-export-namespace-from";
23 import proposalJsonStrings from "@babel/plugin-proposal-json-strings";
24 import proposalLogicalAssignmentOperators from "@babel/plugin-proposal-logical-assignment-operators";
25 import proposalNullishCoalescingOperator from "@babel/plugin-proposal-nullish-coalescing-operator";
26 import proposalNumericSeparator from "@babel/plugin-proposal-numeric-separator";
27 import proposalObjectRestSpread from "@babel/plugin-proposal-object-rest-spread";
28 import proposalOptionalCatchBinding from "@babel/plugin-proposal-optional-catch-binding";
29 import proposalOptionalChaining from "@babel/plugin-proposal-optional-chaining";
30 import proposalPrivateMethods from "@babel/plugin-proposal-private-methods";
31 import proposalPrivatePropertyInObject from "@babel/plugin-proposal-private-property-in-object";
32 import proposalUnicodePropertyRegex from "@babel/plugin-proposal-unicode-property-regex";
33 import transformAsyncToGenerator from "@babel/plugin-transform-async-to-generator";
34 import transformArrowFunctions from "@babel/plugin-transform-arrow-functions";
35 import transformBlockScopedFunctions from "@babel/plugin-transform-block-scoped-functions";
36 import transformBlockScoping from "@babel/plugin-transform-block-scoping";
37 import transformClasses from "@babel/plugin-transform-classes";
38 import transformComputedProperties from "@babel/plugin-transform-computed-properties";
39 import transformDestructuring from "@babel/plugin-transform-destructuring";
40 import transformDotallRegex from "@babel/plugin-transform-dotall-regex";
41 import transformDuplicateKeys from "@babel/plugin-transform-duplicate-keys";
42 import transformExponentialOperator from "@babel/plugin-transform-exponentiation-operator";
43 import transformForOf from "@babel/plugin-transform-for-of";
44 import transformFunctionName from "@babel/plugin-transform-function-name";
45 import transformLiterals from "@babel/plugin-transform-literals";
46 import transformMemberExpressionLiterals from "@babel/plugin-transform-member-expression-literals";
47 import transformModulesAmd from "@babel/plugin-transform-modules-amd";
48 import transformModulesCommonjs from "@babel/plugin-transform-modules-commonjs";
49 import transformModulesSystemjs from "@babel/plugin-transform-modules-systemjs";
50 import transformModulesUmd from "@babel/plugin-transform-modules-umd";
51 import transformNamedCapturingGroupsRegex from "@babel/plugin-transform-named-capturing-groups-regex";
52 import transformNewTarget from "@babel/plugin-transform-new-target";
53 import transformObjectSuper from "@babel/plugin-transform-object-super";
54 import transformParameters from "@babel/plugin-transform-parameters";
55 import transformPropertyLiterals from "@babel/plugin-transform-property-literals";
56 import transformRegenerator from "@babel/plugin-transform-regenerator";
57 import transformReservedWords from "@babel/plugin-transform-reserved-words";
58 import transformShorthandProperties from "@babel/plugin-transform-shorthand-properties";
59 import transformSpread from "@babel/plugin-transform-spread";
60 import transformStickyRegex from "@babel/plugin-transform-sticky-regex";
61 import transformTemplateLiterals from "@babel/plugin-transform-template-literals";
62 import transformTypeofSymbol from "@babel/plugin-transform-typeof-symbol";
63 import transformUnicodeEscapes from "@babel/plugin-transform-unicode-escapes";
64 import transformUnicodeRegex from "@babel/plugin-transform-unicode-regex";
65
66 import bugfixAsyncArrowsInClass from "@babel/preset-modules/lib/plugins/transform-async-arrows-in-class";
67 import bugfixEdgeDefaultParameters from "@babel/preset-modules/lib/plugins/transform-edge-default-parameters";
68 import bugfixEdgeFunctionName from "@babel/preset-modules/lib/plugins/transform-edge-function-name";
69 import bugfixTaggedTemplateCaching from "@babel/preset-modules/lib/plugins/transform-tagged-template-caching";
70 import bugfixSafariBlockShadowing from "@babel/preset-modules/lib/plugins/transform-safari-block-shadowing";
71 import bugfixSafariForShadowing from "@babel/preset-modules/lib/plugins/transform-safari-for-shadowing";
72 import bugfixSafariIdDestructuringCollisionInFunctionExpression from "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression";
73 import bugfixV8SpreadParametersInOptionalChaining from "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining";
74
75 export default {
76 "bugfix/transform-async-arrows-in-class": () => bugfixAsyncArrowsInClass,
77 "bugfix/transform-edge-default-parameters": () => bugfixEdgeDefaultParameters,
78 "bugfix/transform-edge-function-name": () => bugfixEdgeFunctionName,
79 "bugfix/transform-safari-block-shadowing": () => bugfixSafariBlockShadowing,
80 "bugfix/transform-safari-for-shadowing": () => bugfixSafariForShadowing,
81 "bugfix/transform-safari-id-destructuring-collision-in-function-expression":
82 () => bugfixSafariIdDestructuringCollisionInFunctionExpression,
83 "bugfix/transform-tagged-template-caching": () => bugfixTaggedTemplateCaching,
84 "bugfix/transform-v8-spread-parameters-in-optional-chaining": () =>
85 bugfixV8SpreadParametersInOptionalChaining,
86 "syntax-async-generators": () => syntaxAsyncGenerators,
87 "syntax-class-properties": () => syntaxClassProperties,
88 "syntax-class-static-block": () => syntaxClassStaticBlock,
89 "syntax-dynamic-import": () => syntaxDynamicImport,
90 "syntax-export-namespace-from": () => syntaxExportNamespaceFrom,
91 "syntax-import-assertions": () => syntaxImportAssertions,
92 "syntax-json-strings": () => syntaxJsonStrings,
93 "syntax-logical-assignment-operators": () => syntaxLogicalAssignmentOperators,
94 "syntax-nullish-coalescing-operator": () => syntaxNullishCoalescingOperator,
95 "syntax-numeric-separator": () => syntaxNumericSeparator,
96 "syntax-object-rest-spread": () => syntaxObjectRestSpread,
97 "syntax-optional-catch-binding": () => syntaxOptionalCatchBinding,
98 "syntax-optional-chaining": () => syntaxOptionalChaining,
99 "syntax-private-property-in-object": () => syntaxPrivatePropertyInObject,
100 "syntax-top-level-await": () => syntaxTopLevelAwait,
101 "transform-arrow-functions": () => transformArrowFunctions,
102 "transform-async-generator-functions": () => proposalAsyncGeneratorFunctions,
103 "transform-async-to-generator": () => transformAsyncToGenerator,
104 "transform-block-scoped-functions": () => transformBlockScopedFunctions,
105 "transform-block-scoping": () => transformBlockScoping,
106 "transform-class-properties": () => proposalClassProperties,
107 "transform-class-static-block": () => proposalClassStaticBlock,
108 "transform-classes": () => transformClasses,
109 "transform-computed-properties": () => transformComputedProperties,
110 "transform-destructuring": () => transformDestructuring,
111 "transform-dotall-regex": () => transformDotallRegex,
112 "transform-duplicate-keys": () => transformDuplicateKeys,
113 "transform-dynamic-import": () => proposalDynamicImport,
114 "transform-exponentiation-operator": () => transformExponentialOperator,
115 "transform-export-namespace-from": () => proposalExportNamespaceFrom,
116 "transform-for-of": () => transformForOf,
117 "transform-function-name": () => transformFunctionName,
118 "transform-json-strings": () => proposalJsonStrings,
119 "transform-literals": () => transformLiterals,
120 "transform-logical-assignment-operators": () =>
121 proposalLogicalAssignmentOperators,
122 "transform-member-expression-literals": () =>
123 transformMemberExpressionLiterals,
124 "transform-modules-amd": () => transformModulesAmd,
125 "transform-modules-commonjs": () => transformModulesCommonjs,
126 "transform-modules-systemjs": () => transformModulesSystemjs,
127 "transform-modules-umd": () => transformModulesUmd,
128 "transform-named-capturing-groups-regex": () =>
129 transformNamedCapturingGroupsRegex,
130 "transform-new-target": () => transformNewTarget,
131 "transform-nullish-coalescing-operator": () =>
132 proposalNullishCoalescingOperator,
133 "transform-numeric-separator": () => proposalNumericSeparator,
134 "transform-object-rest-spread": () => proposalObjectRestSpread,
135 "transform-object-super": () => transformObjectSuper,
136 "transform-optional-catch-binding": () => proposalOptionalCatchBinding,
137 "transform-optional-chaining": () => proposalOptionalChaining,
138 "transform-parameters": () => transformParameters,
139 "transform-private-methods": () => proposalPrivateMethods,
140 "transform-private-property-in-object": () => proposalPrivatePropertyInObject,
141 "transform-property-literals": () => transformPropertyLiterals,
142 "transform-regenerator": () => transformRegenerator,
143 "transform-reserved-words": () => transformReservedWords,
144 "transform-shorthand-properties": () => transformShorthandProperties,
145 "transform-spread": () => transformSpread,
146 "transform-sticky-regex": () => transformStickyRegex,
147 "transform-template-literals": () => transformTemplateLiterals,
148 "transform-typeof-symbol": () => transformTypeofSymbol,
149 "transform-unicode-escapes": () => transformUnicodeEscapes,
150 "transform-unicode-property-regex": () => proposalUnicodePropertyRegex,
151 "transform-unicode-regex": () => transformUnicodeRegex,
152 };
153
154 export const minVersions = {
155 "bugfix/transform-safari-id-destructuring-collision-in-function-expression":
156 "7.16.0",
157 "transform-class-static-block": "7.12.0",
158 "transform-private-property-in-object": "7.10.0",
159 };