From 9cc12455020fbb47e606c3e7152a291cf3294299 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 5 Apr 2016 14:16:55 +0200 Subject: create web development server --- server/sonar-web/.babelrc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'server/sonar-web/.babelrc') diff --git a/server/sonar-web/.babelrc b/server/sonar-web/.babelrc index 8c43a477c18..0ecf1664f9c 100644 --- a/server/sonar-web/.babelrc +++ b/server/sonar-web/.babelrc @@ -1,6 +1,17 @@ { "presets": ["es2015", "stage-0", "react"], - "ignore": [ - "**/libs/**" - ] + "ignore": [ + "**/libs/**" + ], + "env": { + "hot": { + "plugins": [["react-transform", { + "transforms": [{ + "transform": "react-transform-hmr", + "imports": ["react"], + "locals": ["module"] + }] + }]] + } + } } -- cgit v1.2.3