rescript-lang / rescript-lang/rescript-lang.org

Document required ECMAscript version

Open
#911 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
MDX
Stars
1.9k
Forks
260
Avg merge
3d 9h
Merged PRs (30d)
17

Description

I don't think we have documented the requirements on the JS version / spec at the moment.

Starting with v12, ES6 (ECMAScript 2015) is required because we are now making use of the following ES6 features:

  • let keyword
  • arrow functions
  • spread operator

Originally posted by @cknitt in https://github.com/rescript-lang/rescript-compiler/pull/7030#issuecomment-2342657669


Document for both:

  • v11 is mostly es5 (some stdlib functions may already have been es6)
  • v12 is just es6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the relevant v11 and v12 documentation entry points in the rescript-lang.org site. Document that v11 is mostly ES5 with possible ES6 standard-library usage, and that v12 requires ES6, including the listed features. Done means both version requirements are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.