Skip to content

Commit e682f3e

Browse files
committed
chore(): remove use of "bind" proposal code
- Removes the experimental "function bind" syntax code - Removes a bunch of babel plugins; replaces with "shipped proposals" setting in babel-env - build now targets Node.js 12 - upgrade eslint; remove now-unnecessary babel eslint parser - `process.kill.bind(process)` was unnecessary The output of the build before and after this change looks nearly identical.
1 parent fbd0866 commit e682f3e

File tree

6 files changed

+244
-492
lines changed

6 files changed

+244
-492
lines changed

.eslintrc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ module.exports = {
99
node: true,
1010
es6: true,
1111
},
12-
parser: '@babel/eslint-parser',
1312
parserOptions: {
14-
ecmaVersion: 2016,
13+
ecmaVersion: 'latest',
1514
sourceType: 'module',
1615
},
1716
rules: {

babel.config.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,12 @@ module.exports = {
44
'@babel/preset-env',
55
{
66
targets: {
7-
node: 10,
7+
node: 12,
88
},
9+
shippedProposals: true,
910
},
1011
],
1112
],
12-
plugins: [
13-
'@babel/plugin-proposal-function-bind',
14-
'@babel/plugin-proposal-export-default-from',
15-
'@babel/plugin-proposal-class-properties',
16-
'@babel/plugin-proposal-optional-catch-binding',
17-
],
1813
env: {
1914
development: {
2015
sourceMaps: 'inline',

0 commit comments

Comments
 (0)