Skip to content

Commit

Permalink
Transpile lib for node 10
Browse files Browse the repository at this point in the history
This change allows to not add helpers and regenerator for many features
which work in node and modern web.

Disabled syntax restriction in eslint to allow using for/of loops.
  • Loading branch information
TrySound authored and iRyusa committed Nov 3, 2020
1 parent c19a5de commit 25b8343
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"semi": [ 2, "never" ],
"no-mixed-operators": 0,
"no-shadow": 0,
"no-param-reassign": 0
"no-param-reassign": 0,
"no-restricted-syntax": 0
},
"env": {
"node": true
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
presets: ['@babel/env'],
presets: [['@babel/env', { targets: { node: '10' } }]],
plugins: [
'@babel/proposal-class-properties',
[
Expand Down

0 comments on commit 25b8343

Please sign in to comment.