From 25b834339fb3a9da3d2cc89b397d3305755438ea Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Tue, 3 Nov 2020 01:11:07 +0300 Subject: [PATCH] Transpile lib for node 10 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. --- .eslintrc | 3 ++- babel.config.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index ac830d887..3223c1842 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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 diff --git a/babel.config.js b/babel.config.js index 00b6d20f4..a9a888e49 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,5 @@ module.exports = { - presets: ['@babel/env'], + presets: [['@babel/env', { targets: { node: '10' } }]], plugins: [ '@babel/proposal-class-properties', [