Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Modern JS #1938

Open
5 tasks
harshkhandeparkar opened this issue Jul 31, 2021 · 2 comments
Open
5 tasks

Use Modern JS #1938

harshkhandeparkar opened this issue Jul 31, 2021 · 2 comments

Comments

@harshkhandeparkar
Copy link
Member

harshkhandeparkar commented Jul 31, 2021

Since we are thinking of dropping node 10 support in #1935 and because most browsers support ES6 and beyond, we can:

  • Remove all vars and use let/const instead.
  • Use async/await and promises.
  • Even use ES6 imports by converting normal JS files to .mjs. (which will be compiled by browserify into a single package)
  • Output ESM for NodeJS instead of commonjs.
  • Worker Threads (NodeJS Only)

ref: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

This can be done file by file without issues. Anything else?

@Bl4ck-h00d
Copy link

Hi! I would like to work on this.

@saurabhmehta1601
Copy link

Please assign me this issue . I would really like to work on it .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants