babel / babel/babel

Support ECMAScript versions as `targets`?

Open
#6,613 14 comments 5 reactions 0 assignees View on GitHub
imported pkg: preset-env
Dominant language
TypeScript
Stars
44k
Forks
6k
Avg merge
5d 15h
Merged PRs (30d)
23

Description

> Issue originally reported by @rauschma in babel/babel-preset-env#381

I’m not sure how much that would be used in practice, but for some experiments and tests, it would be nice if one could specify an ES version to target.

Examples:

```
"targets": { "ecmascript": "2015" }
"targets": { "ecmascript": "5" }
```

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Babel's existing target handling and the referenced babel-preset-env#381 discussion. Compare the proposed ECMAScript 2015 and ES5 target forms with current behavior, and define completion as accepting those target values and applying the expected transformations in the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.