diff options
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/**" + ] +} |