Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

Commit a8efea2

Browse files
committed
Remove babel plugins that are already supported
1 parent 8024dfd commit a8efea2

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/parsers/babylon-parser.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,11 @@ module.exports = (type, plugins) => input =>
66
plugins: [type].concat(
77
plugins || [
88
'jsx',
9-
'objectRestSpread',
109
['decorators', { decoratorsBeforeExport: true }],
1110
'classProperties',
1211
'exportExtensions',
13-
'asyncGenerators',
1412
'functionBind',
15-
'functionSent',
16-
'dynamicImport',
17-
'optionalCatchBinding',
18-
'optionalChaining'
13+
'functionSent'
1914
]
2015
)
2116
})

test/options.test.js

-5
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,11 @@ describe('options', () => {
192192
beforeEach(done => {
193193
const plugins = [
194194
'jsx',
195-
'objectRestSpread',
196195
['decorators', { decoratorsBeforeExport: true }],
197196
'classProperties',
198197
'exportExtensions',
199-
'asyncGenerators',
200198
'functionBind',
201199
'functionSent',
202-
'dynamicImport',
203-
'optionalCatchBinding',
204-
'optionalChaining',
205200
// Enable experimental feature
206201
'exportDefaultFrom'
207202
]

0 commit comments

Comments
 (0)