Skip to content

Commit

Permalink
feat: add esN envs for all post-es6 years (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb authored Feb 8, 2022
1 parent bc097b6 commit 33b8ee7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions conf/environments.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,30 @@ export default new Map(Object.entries({
ecmaVersion: 6
}
},
es2016: {
globals: newGlobals2015,
parserOptions: {
ecmaVersion: 7
}
},
es2017: {
globals: { ...newGlobals2015, ...newGlobals2017 },
parserOptions: {
ecmaVersion: 8
}
},
es2018: {
globals: { ...newGlobals2015, ...newGlobals2017 },
parserOptions: {
ecmaVersion: 9
}
},
es2019: {
globals: { ...newGlobals2015, ...newGlobals2017 },
parserOptions: {
ecmaVersion: 10
}
},
es2020: {
globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },
parserOptions: {
Expand All @@ -90,6 +108,12 @@ export default new Map(Object.entries({
ecmaVersion: 12
}
},
es2022: {
globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },
parserOptions: {
ecmaVersion: 13
}
},

// Platforms
browser: {
Expand Down

0 comments on commit 33b8ee7

Please sign in to comment.