aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/.babelrc
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/.babelrc')
-rw-r--r--server/sonar-web/.babelrc27
1 files changed, 19 insertions, 8 deletions
diff --git a/server/sonar-web/.babelrc b/server/sonar-web/.babelrc
index 0ecf1664f9c..fb5f2613035 100644
--- a/server/sonar-web/.babelrc
+++ b/server/sonar-web/.babelrc
@@ -1,17 +1,28 @@
{
- "presets": ["es2015", "stage-0", "react"],
+ "presets": ["es2015", "es2016", "react"],
"ignore": [
"**/libs/**"
],
+ "plugins": [
+ "transform-class-properties",
+ "transform-object-rest-spread"
+ ],
"env": {
- "hot": {
- "plugins": [["react-transform", {
- "transforms": [{
- "transform": "react-transform-hmr",
- "imports": ["react"],
- "locals": ["module"]
+ "production": {
+ "plugins": [
+ "transform-react-constant-elements"
+ ]
+ },
+ "development": {
+ "plugins": [
+ ["react-transform", {
+ "transforms": [{
+ "transform": "react-transform-hmr",
+ "imports": ["react"],
+ "locals": ["module"]
+ }]
}]
- }]]
+ ]
}
}
}