forked from box/box-content-preview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.babelrc
37 lines (37 loc) · 1.23 KB
/
.babelrc
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
29
30
31
32
33
34
35
36
37
{
"presets": [
["es2015", { "modules": false }],
"es2016",
"react"
],
"plugins": [
"transform-class-properties",
"transform-object-rest-spread",
["babel-plugin-transform-builtin-extend", { "globals": ["Error"] }]
],
"env": {
"test": {
"plugins": [
["istanbul", {
"exclude": [
"**/*-test.js",
"build/**",
"src/lib/polyfill.js",
"src/lib/browser.js",
"src/lib/viewers/box3d/model3d/Model3DAnimationClipsPullup.js",
"src/lib/viewers/box3d/model3d/model3DSettingsPullup.js",
"src/lib/viewers/box3d/model3d/Model3DVrControls.js",
"src/lib/viewers/box3d/**/SceneEntities.js",
"src/lib/viewers/box3d/**Constants.js"
]
}],
["babel-plugin-transform-require-ignore", { "extensions": [".scss"] }]
]
},
"production": {
"plugins": [
["react-remove-properties", {"properties": ["data-testid"]}]
]
}
}
}