diff options
author | Stas Vilchik <stas-vilchik@users.noreply.github.com> | 2017-02-09 13:22:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-09 13:22:26 +0100 |
commit | 1b28e2d59a49f6c76b201bfb0648576b2adbb32e (patch) | |
tree | 1869c119312fca79cf09d2dfd57ce965266d4af5 /server/sonar-web/.babelrc | |
parent | 979b2d26852ccf62252fc8590914eec3fb29dfd9 (diff) | |
download | sonarqube-1b28e2d59a49f6c76b201bfb0648576b2adbb32e.tar.gz sonarqube-1b28e2d59a49f6c76b201bfb0648576b2adbb32e.zip |
use babel-preset-env (#1645)
Diffstat (limited to 'server/sonar-web/.babelrc')
-rw-r--r-- | server/sonar-web/.babelrc | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/server/sonar-web/.babelrc b/server/sonar-web/.babelrc new file mode 100644 index 00000000000..0c0ba456b83 --- /dev/null +++ b/server/sonar-web/.babelrc @@ -0,0 +1,46 @@ +{ + "presets": [ + ["env", { + "targets": { + "browsers": [ + "last 3 Chrome versions", + "last 3 Firefox versions", + "last 3 Safari versions", + "last 3 Edge versions", + "IE 11" + ] + }, + "useBuiltIns": true + }], + "react" + ], + "plugins": [ + "transform-class-properties", + ["transform-object-rest-spread", { + // use built-in `Object.assign` + "useBuiltIns": true + }] + ], + "env": { + "production": { + "plugins": [ + "transform-react-constant-elements" + ] + }, + "development": { + "plugins": [ + "transform-react-jsx-source", + "transform-react-jsx-self" + ] + }, + "test": { + "plugins": [ + "transform-react-jsx-source", + "transform-react-jsx-self" + ] + } + }, + "ignore": [ + "**/libs/**" + ] +} |