-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathbabel.config.js
More file actions
28 lines (28 loc) · 854 Bytes
/
babel.config.js
File metadata and controls
28 lines (28 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = {
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-transform-flow-comments', '@babel/plugin-transform-react-jsx'],
assumptions: {
// arrayLikeIsIterable: true,
constantReexports: true,
constantSuper: true,
enumerableModuleMeta: true,
ignoreFunctionLength: true,
ignoreToPrimitiveHint: true,
iterableIsArray: true,
mutableTemplateObject: true,
noClassCalls: true,
noDocumentAll: true,
noIncompleteNsImportDetection: true,
noNewArrows: true,
objectRestNoSymbols: true,
// privateFieldsAsProperties: true,
// privateFieldsAsSymbols: true,
pureGetters: true,
setClassMethods: true,
setComputedProperties: true,
setPublicClassFields: true,
setSpreadProperties: true,
skipForOfIteratorClosing: true,
superIsCallableConstructor: true,
},
}