[79a0317] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
---|
| 4 | value: true
|
---|
| 5 | });
|
---|
| 6 | exports.minVersions = exports.legacyBabel7SyntaxPlugins = exports.default = void 0;
|
---|
| 7 | var _babel7AvailablePlugins = require("./babel-7-available-plugins.cjs");
|
---|
| 8 | var _pluginTransformAsyncGeneratorFunctions = require("@babel/plugin-transform-async-generator-functions");
|
---|
| 9 | var _pluginTransformAsyncToGenerator = require("@babel/plugin-transform-async-to-generator");
|
---|
| 10 | var _pluginTransformArrowFunctions = require("@babel/plugin-transform-arrow-functions");
|
---|
| 11 | var _pluginTransformBlockScopedFunctions = require("@babel/plugin-transform-block-scoped-functions");
|
---|
| 12 | var _pluginTransformBlockScoping = require("@babel/plugin-transform-block-scoping");
|
---|
| 13 | var _pluginTransformClasses = require("@babel/plugin-transform-classes");
|
---|
| 14 | var _pluginTransformClassProperties = require("@babel/plugin-transform-class-properties");
|
---|
| 15 | var _pluginTransformClassStaticBlock = require("@babel/plugin-transform-class-static-block");
|
---|
| 16 | var _pluginTransformComputedProperties = require("@babel/plugin-transform-computed-properties");
|
---|
| 17 | var _pluginTransformDestructuring = require("@babel/plugin-transform-destructuring");
|
---|
| 18 | var _pluginTransformDotallRegex = require("@babel/plugin-transform-dotall-regex");
|
---|
| 19 | var _pluginTransformDuplicateKeys = require("@babel/plugin-transform-duplicate-keys");
|
---|
| 20 | var _pluginTransformDuplicateNamedCapturingGroupsRegex = require("@babel/plugin-transform-duplicate-named-capturing-groups-regex");
|
---|
| 21 | var _pluginTransformDynamicImport = require("@babel/plugin-transform-dynamic-import");
|
---|
| 22 | var _pluginTransformExponentiationOperator = require("@babel/plugin-transform-exponentiation-operator");
|
---|
| 23 | var _pluginTransformExportNamespaceFrom = require("@babel/plugin-transform-export-namespace-from");
|
---|
| 24 | var _pluginTransformForOf = require("@babel/plugin-transform-for-of");
|
---|
| 25 | var _pluginTransformFunctionName = require("@babel/plugin-transform-function-name");
|
---|
| 26 | var _pluginTransformJsonStrings = require("@babel/plugin-transform-json-strings");
|
---|
| 27 | var _pluginTransformLiterals = require("@babel/plugin-transform-literals");
|
---|
| 28 | var _pluginTransformLogicalAssignmentOperators = require("@babel/plugin-transform-logical-assignment-operators");
|
---|
| 29 | var _pluginTransformMemberExpressionLiterals = require("@babel/plugin-transform-member-expression-literals");
|
---|
| 30 | var _pluginTransformModulesAmd = require("@babel/plugin-transform-modules-amd");
|
---|
| 31 | var _pluginTransformModulesCommonjs = require("@babel/plugin-transform-modules-commonjs");
|
---|
| 32 | var _pluginTransformModulesSystemjs = require("@babel/plugin-transform-modules-systemjs");
|
---|
| 33 | var _pluginTransformModulesUmd = require("@babel/plugin-transform-modules-umd");
|
---|
| 34 | var _pluginTransformNamedCapturingGroupsRegex = require("@babel/plugin-transform-named-capturing-groups-regex");
|
---|
| 35 | var _pluginTransformNewTarget = require("@babel/plugin-transform-new-target");
|
---|
| 36 | var _pluginTransformNullishCoalescingOperator = require("@babel/plugin-transform-nullish-coalescing-operator");
|
---|
| 37 | var _pluginTransformNumericSeparator = require("@babel/plugin-transform-numeric-separator");
|
---|
| 38 | var _pluginTransformObjectRestSpread = require("@babel/plugin-transform-object-rest-spread");
|
---|
| 39 | var _pluginTransformObjectSuper = require("@babel/plugin-transform-object-super");
|
---|
| 40 | var _pluginTransformOptionalCatchBinding = require("@babel/plugin-transform-optional-catch-binding");
|
---|
| 41 | var _pluginTransformOptionalChaining = require("@babel/plugin-transform-optional-chaining");
|
---|
| 42 | var _pluginTransformParameters = require("@babel/plugin-transform-parameters");
|
---|
| 43 | var _pluginTransformPrivateMethods = require("@babel/plugin-transform-private-methods");
|
---|
| 44 | var _pluginTransformPrivatePropertyInObject = require("@babel/plugin-transform-private-property-in-object");
|
---|
| 45 | var _pluginTransformPropertyLiterals = require("@babel/plugin-transform-property-literals");
|
---|
| 46 | var _pluginTransformRegenerator = require("@babel/plugin-transform-regenerator");
|
---|
| 47 | var _pluginTransformRegexpModifiers = require("@babel/plugin-transform-regexp-modifiers");
|
---|
| 48 | var _pluginTransformReservedWords = require("@babel/plugin-transform-reserved-words");
|
---|
| 49 | var _pluginTransformShorthandProperties = require("@babel/plugin-transform-shorthand-properties");
|
---|
| 50 | var _pluginTransformSpread = require("@babel/plugin-transform-spread");
|
---|
| 51 | var _pluginTransformStickyRegex = require("@babel/plugin-transform-sticky-regex");
|
---|
| 52 | var _pluginTransformTemplateLiterals = require("@babel/plugin-transform-template-literals");
|
---|
| 53 | var _pluginTransformTypeofSymbol = require("@babel/plugin-transform-typeof-symbol");
|
---|
| 54 | var _pluginTransformUnicodeEscapes = require("@babel/plugin-transform-unicode-escapes");
|
---|
| 55 | var _pluginTransformUnicodePropertyRegex = require("@babel/plugin-transform-unicode-property-regex");
|
---|
| 56 | var _pluginTransformUnicodeRegex = require("@babel/plugin-transform-unicode-regex");
|
---|
| 57 | var _pluginTransformUnicodeSetsRegex = require("@babel/plugin-transform-unicode-sets-regex");
|
---|
| 58 | var _index = require("@babel/preset-modules/lib/plugins/transform-async-arrows-in-class/index.js");
|
---|
| 59 | var _index2 = require("@babel/preset-modules/lib/plugins/transform-edge-default-parameters/index.js");
|
---|
| 60 | var _index3 = require("@babel/preset-modules/lib/plugins/transform-edge-function-name/index.js");
|
---|
| 61 | var _pluginBugfixFirefoxClassInComputedClassKey = require("@babel/plugin-bugfix-firefox-class-in-computed-class-key");
|
---|
| 62 | var _index4 = require("@babel/preset-modules/lib/plugins/transform-tagged-template-caching/index.js");
|
---|
| 63 | var _index5 = require("@babel/preset-modules/lib/plugins/transform-safari-block-shadowing/index.js");
|
---|
| 64 | var _index6 = require("@babel/preset-modules/lib/plugins/transform-safari-for-shadowing/index.js");
|
---|
| 65 | var _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression = require("@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression");
|
---|
| 66 | var _pluginBugfixSafariClassFieldInitializerScope = require("@babel/plugin-bugfix-safari-class-field-initializer-scope");
|
---|
| 67 | var _pluginBugfixV8SpreadParametersInOptionalChaining = require("@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining");
|
---|
| 68 | var _pluginBugfixV8StaticClassFieldsRedefineReadonly = require("@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly");
|
---|
| 69 | const availablePlugins = exports.default = {
|
---|
| 70 | "bugfix/transform-async-arrows-in-class": () => _index,
|
---|
| 71 | "bugfix/transform-edge-default-parameters": () => _index2,
|
---|
| 72 | "bugfix/transform-edge-function-name": () => _index3,
|
---|
| 73 | "bugfix/transform-firefox-class-in-computed-class-key": () => _pluginBugfixFirefoxClassInComputedClassKey.default,
|
---|
| 74 | "bugfix/transform-safari-block-shadowing": () => _index5,
|
---|
| 75 | "bugfix/transform-safari-class-field-initializer-scope": () => _pluginBugfixSafariClassFieldInitializerScope.default,
|
---|
| 76 | "bugfix/transform-safari-for-shadowing": () => _index6,
|
---|
| 77 | "bugfix/transform-safari-id-destructuring-collision-in-function-expression": () => _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression.default,
|
---|
| 78 | "bugfix/transform-tagged-template-caching": () => _index4,
|
---|
| 79 | "bugfix/transform-v8-spread-parameters-in-optional-chaining": () => _pluginBugfixV8SpreadParametersInOptionalChaining.default,
|
---|
| 80 | "bugfix/transform-v8-static-class-fields-redefine-readonly": () => _pluginBugfixV8StaticClassFieldsRedefineReadonly.default,
|
---|
| 81 | "transform-arrow-functions": () => _pluginTransformArrowFunctions.default,
|
---|
| 82 | "transform-async-generator-functions": () => _pluginTransformAsyncGeneratorFunctions.default,
|
---|
| 83 | "transform-async-to-generator": () => _pluginTransformAsyncToGenerator.default,
|
---|
| 84 | "transform-block-scoped-functions": () => _pluginTransformBlockScopedFunctions.default,
|
---|
| 85 | "transform-block-scoping": () => _pluginTransformBlockScoping.default,
|
---|
| 86 | "transform-class-properties": () => _pluginTransformClassProperties.default,
|
---|
| 87 | "transform-class-static-block": () => _pluginTransformClassStaticBlock.default,
|
---|
| 88 | "transform-classes": () => _pluginTransformClasses.default,
|
---|
| 89 | "transform-computed-properties": () => _pluginTransformComputedProperties.default,
|
---|
| 90 | "transform-destructuring": () => _pluginTransformDestructuring.default,
|
---|
| 91 | "transform-dotall-regex": () => _pluginTransformDotallRegex.default,
|
---|
| 92 | "transform-duplicate-keys": () => _pluginTransformDuplicateKeys.default,
|
---|
| 93 | "transform-duplicate-named-capturing-groups-regex": () => _pluginTransformDuplicateNamedCapturingGroupsRegex.default,
|
---|
| 94 | "transform-dynamic-import": () => _pluginTransformDynamicImport.default,
|
---|
| 95 | "transform-exponentiation-operator": () => _pluginTransformExponentiationOperator.default,
|
---|
| 96 | "transform-export-namespace-from": () => _pluginTransformExportNamespaceFrom.default,
|
---|
| 97 | "transform-for-of": () => _pluginTransformForOf.default,
|
---|
| 98 | "transform-function-name": () => _pluginTransformFunctionName.default,
|
---|
| 99 | "transform-json-strings": () => _pluginTransformJsonStrings.default,
|
---|
| 100 | "transform-literals": () => _pluginTransformLiterals.default,
|
---|
| 101 | "transform-logical-assignment-operators": () => _pluginTransformLogicalAssignmentOperators.default,
|
---|
| 102 | "transform-member-expression-literals": () => _pluginTransformMemberExpressionLiterals.default,
|
---|
| 103 | "transform-modules-amd": () => _pluginTransformModulesAmd.default,
|
---|
| 104 | "transform-modules-commonjs": () => _pluginTransformModulesCommonjs.default,
|
---|
| 105 | "transform-modules-systemjs": () => _pluginTransformModulesSystemjs.default,
|
---|
| 106 | "transform-modules-umd": () => _pluginTransformModulesUmd.default,
|
---|
| 107 | "transform-named-capturing-groups-regex": () => _pluginTransformNamedCapturingGroupsRegex.default,
|
---|
| 108 | "transform-new-target": () => _pluginTransformNewTarget.default,
|
---|
| 109 | "transform-nullish-coalescing-operator": () => _pluginTransformNullishCoalescingOperator.default,
|
---|
| 110 | "transform-numeric-separator": () => _pluginTransformNumericSeparator.default,
|
---|
| 111 | "transform-object-rest-spread": () => _pluginTransformObjectRestSpread.default,
|
---|
| 112 | "transform-object-super": () => _pluginTransformObjectSuper.default,
|
---|
| 113 | "transform-optional-catch-binding": () => _pluginTransformOptionalCatchBinding.default,
|
---|
| 114 | "transform-optional-chaining": () => _pluginTransformOptionalChaining.default,
|
---|
| 115 | "transform-parameters": () => _pluginTransformParameters.default,
|
---|
| 116 | "transform-private-methods": () => _pluginTransformPrivateMethods.default,
|
---|
| 117 | "transform-private-property-in-object": () => _pluginTransformPrivatePropertyInObject.default,
|
---|
| 118 | "transform-property-literals": () => _pluginTransformPropertyLiterals.default,
|
---|
| 119 | "transform-regenerator": () => _pluginTransformRegenerator.default,
|
---|
| 120 | "transform-regexp-modifiers": () => _pluginTransformRegexpModifiers.default,
|
---|
| 121 | "transform-reserved-words": () => _pluginTransformReservedWords.default,
|
---|
| 122 | "transform-shorthand-properties": () => _pluginTransformShorthandProperties.default,
|
---|
| 123 | "transform-spread": () => _pluginTransformSpread.default,
|
---|
| 124 | "transform-sticky-regex": () => _pluginTransformStickyRegex.default,
|
---|
| 125 | "transform-template-literals": () => _pluginTransformTemplateLiterals.default,
|
---|
| 126 | "transform-typeof-symbol": () => _pluginTransformTypeofSymbol.default,
|
---|
| 127 | "transform-unicode-escapes": () => _pluginTransformUnicodeEscapes.default,
|
---|
| 128 | "transform-unicode-property-regex": () => _pluginTransformUnicodePropertyRegex.default,
|
---|
| 129 | "transform-unicode-regex": () => _pluginTransformUnicodeRegex.default,
|
---|
| 130 | "transform-unicode-sets-regex": () => _pluginTransformUnicodeSetsRegex.default
|
---|
| 131 | };
|
---|
| 132 | const minVersions = exports.minVersions = {};
|
---|
| 133 | let legacyBabel7SyntaxPlugins = exports.legacyBabel7SyntaxPlugins = void 0;
|
---|
| 134 | {
|
---|
| 135 | Object.assign(minVersions, {
|
---|
| 136 | "bugfix/transform-safari-id-destructuring-collision-in-function-expression": "7.16.0",
|
---|
| 137 | "bugfix/transform-v8-static-class-fields-redefine-readonly": "7.12.0",
|
---|
| 138 | "syntax-import-attributes": "7.22.0",
|
---|
| 139 | "transform-class-static-block": "7.12.0",
|
---|
| 140 | "transform-duplicate-named-capturing-groups-regex": "7.19.0",
|
---|
| 141 | "transform-private-property-in-object": "7.10.0",
|
---|
| 142 | "transform-regexp-modifiers": "7.19.0"
|
---|
| 143 | });
|
---|
| 144 | const syntax = name => () => () => ({
|
---|
| 145 | manipulateOptions: (_, p) => p.plugins.push(name)
|
---|
| 146 | });
|
---|
| 147 | const legacyBabel7SyntaxPluginsLoaders = {
|
---|
| 148 | "syntax-async-generators": syntax("asyncGenerators"),
|
---|
| 149 | "syntax-class-properties": syntax("classProperties"),
|
---|
| 150 | "syntax-class-static-block": syntax("classStaticBlock"),
|
---|
| 151 | "syntax-dynamic-import": syntax("dynamicImport"),
|
---|
| 152 | "syntax-export-namespace-from": syntax("exportNamespaceFrom"),
|
---|
| 153 | "syntax-import-meta": syntax("importMeta"),
|
---|
| 154 | "syntax-json-strings": syntax("jsonStrings"),
|
---|
| 155 | "syntax-logical-assignment-operators": syntax("logicalAssignment"),
|
---|
| 156 | "syntax-nullish-coalescing-operator": syntax("nullishCoalescingOperator"),
|
---|
| 157 | "syntax-numeric-separator": syntax("numericSeparator"),
|
---|
| 158 | "syntax-object-rest-spread": syntax("objectRestSpread"),
|
---|
| 159 | "syntax-optional-catch-binding": syntax("optionalCatchBinding"),
|
---|
| 160 | "syntax-optional-chaining": syntax("optionalChaining"),
|
---|
| 161 | "syntax-private-property-in-object": syntax("privateIn"),
|
---|
| 162 | "syntax-top-level-await": syntax("topLevelAwait"),
|
---|
| 163 | "syntax-unicode-sets-regex": () => require("@babel/plugin-syntax-unicode-sets-regex"),
|
---|
| 164 | "syntax-import-assertions": _babel7AvailablePlugins["syntax-import-assertions"],
|
---|
| 165 | "syntax-import-attributes": _babel7AvailablePlugins["syntax-import-attributes"]
|
---|
| 166 | };
|
---|
| 167 | Object.assign(availablePlugins, legacyBabel7SyntaxPluginsLoaders);
|
---|
| 168 | exports.legacyBabel7SyntaxPlugins = legacyBabel7SyntaxPlugins = new Set(Object.keys(legacyBabel7SyntaxPluginsLoaders));
|
---|
| 169 | }
|
---|
| 170 |
|
---|
| 171 | //# sourceMappingURL=available-plugins.js.map
|
---|