| 1 |
// TODO(Babel 8): Remove this file |
| 2 |
/* eslint sort-keys: "error" */ |
| 3 |
// These mappings represent the transform plugins that have been |
| 4 |
// shipped by browsers, and are enabled by the `shippedProposals` option. |
| 5 |
|
| 6 |
const proposalPluginsscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/proposalPlugins. = new Setscip-typescript npm typescript 5.9.3 lib/`lib.es2015.collection.d.ts`/Set#<string>(); |
| 7 |
|
| 8 |
// proposal syntax plugins enabled by the `shippedProposals` option. |
| 9 |
// Unlike proposalPlugins above, they are independent of compiler targets. |
| 10 |
const proposalSyntaxPluginsscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/proposalSyntaxPlugins. = ["syntax-import-assertions"] as const; |
| 11 |
|
| 12 |
// use intermediary object to enforce alphabetical key order |
| 13 |
const pluginSyntaxObjectscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/pluginSyntaxObject. = { |
| 14 |
"transform-async-generator-functions"scip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/`"transform-async-generator-functions"0`:: "syntax-async-generators", |
| 15 |
"transform-class-properties"scip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/`"transform-class-properties"0`:: "syntax-class-properties", |
| 16 |
"transform-class-static-block"scip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/`"transform-class-static-block"0`:: "syntax-class-static-block", |
| 17 |
"transform-json-strings"scip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/`"transform-json-strings"0`:: "syntax-json-strings", |
| 18 |
"transform-nullish-coalescing-operator"scip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/`"transform-nullish-coalescing-operator"0`:: "syntax-nullish-coalescing-operator", |
| 19 |
"transform-numeric-separator"scip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/`"transform-numeric-separator"0`:: "syntax-numeric-separator", |
| 20 |
"transform-object-rest-spread"scip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/`"transform-object-rest-spread"0`:: "syntax-object-rest-spread", |
| 21 |
"transform-optional-catch-binding"scip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/`"transform-optional-catch-binding"0`:: "syntax-optional-catch-binding", |
| 22 |
"transform-optional-chaining"scip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/`"transform-optional-chaining"0`:: "syntax-optional-chaining", |
| 23 |
// note: we don't have syntax-private-methods |
| 24 |
"transform-private-methods"scip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/`"transform-private-methods"0`:: "syntax-class-properties", |
| 25 |
"transform-private-property-in-object"scip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/`"transform-private-property-in-object"0`:: "syntax-private-property-in-object", |
| •26 |
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion |
| 27 |
"transform-unicode-property-regex"scip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/`"transform-unicode-property-regex"0`:: null as null, |
| 28 |
} as const; |
| 29 |
|
| •30 |
type PluginSyntaxObjectKeysscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/PluginSyntaxObjectKeys# = keyof typeof pluginSyntaxObjectscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/pluginSyntaxObject.; |
| 31 |
|
| 32 |
const pluginSyntaxEntriesscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/pluginSyntaxEntries. = Objectscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Object#.keysscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/ObjectConstructor#keys().(pluginSyntaxObjectscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/pluginSyntaxObject.).mapscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Array#map().< |
| •33 |
[PluginSyntaxObjectKeysscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/PluginSyntaxObjectKeys#, string | null] |
| 34 |
>(function (key: PluginSyntaxObjectKeysscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/PluginSyntaxObjectKeys#) { |
| 35 |
return [key, pluginSyntaxObjectscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/pluginSyntaxObject.[key]]; |
| 36 |
}); |
| 37 |
|
| 38 |
const pluginSyntaxMapscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/pluginSyntaxMap. = new Mapscip-typescript npm typescript 5.9.3 lib/`lib.es2015.collection.d.ts`/Map#(pluginSyntaxEntriesscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/pluginSyntaxEntries.); |
| 39 |
|
| 40 |
export { proposalPluginsscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/proposalPlugins., proposalSyntaxPluginsscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/proposalSyntaxPlugins., pluginSyntaxMapscip-typescript npm @babel/preset-env 7.20.2 src/`shipped-proposals.ts`/pluginSyntaxMap. }; |