Skip to content

Commit

Permalink
fix: re-adds new es versions
Browse files Browse the repository at this point in the history
  • Loading branch information
yowainwright committed Jan 11, 2021
1 parent 73f05cc commit 9f64841
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ prog
case 'es10':
ecmaVersion = '10'
break
case 'es11':
ecmaVersion = '11'
break
case 'es12':
ecmaVersion = '12'
break
case 'es2015':
ecmaVersion = '6'
break
Expand All @@ -102,6 +108,12 @@ prog
case 'es2019':
ecmaVersion = '10'
break
case 'es2020':
ecmaVersion = '2020'
break
case 'es2021':
ecmaVersion = '2021'
break
default:
logger.error('Invalid ecmaScript version, please pass a valid version, use --help for help')
process.exit(1)
Expand Down

0 comments on commit 9f64841

Please sign in to comment.