Skip to content

Instantly share code, notes, and snippets.

@ng-the-engineer
Last active September 25, 2020 16:47
Show Gist options
  • Save ng-the-engineer/d97e7d01bfb1e189fa2f4711fe6fd846 to your computer and use it in GitHub Desktop.
Save ng-the-engineer/d97e7d01bfb1e189fa2f4711fe6fd846 to your computer and use it in GitHub Desktop.
Setup ES2020

Install @babel/cli, @babel/core, @babel/node, and @babel/preset-env

yarn add --dev @babel/cli @babel/core @babel/node @babel/preset-env

Create .babelrc

{
  "presets": ["@babel/preset-env"]
}

In package.json

"scripts": {
  "build": "babel -d lib/ src/"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment