diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-04-05 14:16:55 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-04-05 17:23:44 +0200 |
commit | 9cc12455020fbb47e606c3e7152a291cf3294299 (patch) | |
tree | 1739d5f7eb9ae84068906c5c44cd665b11a7b3fe /server/sonar-web/.babelrc | |
parent | 81334817358787b15faa4ceb72ac6de85f077dfc (diff) | |
download | sonarqube-9cc12455020fbb47e606c3e7152a291cf3294299.tar.gz sonarqube-9cc12455020fbb47e606c3e7152a291cf3294299.zip |
create web development server
Diffstat (limited to 'server/sonar-web/.babelrc')
-rw-r--r-- | server/sonar-web/.babelrc | 17 |
1 files changed, 14 insertions, 3 deletions
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"] + }] + }]] + } + } } |