forked from box/box-content-preview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc
34 lines (34 loc) · 1.15 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
// Configuration for Babel transpilation
{
"presets": [
["es2015", { "modules": false }],
"es2016",
"react"
],
"plugins": [
"transform-class-properties",
"transform-object-rest-spread",
"transform-decorators-legacy"
],
"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",
"src/lib/viewers/doc/doc-preloader.js"
]
}],
["babel-plugin-transform-require-ignore", { "extensions": [".scss"] }]
]
}
}
}