aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/babel.config.js
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2021-09-17 16:29:12 +0200
committersonartech <sonartech@sonarsource.com>2021-09-30 20:03:00 +0000
commit18582f55e72704e61c331467e90de7b023d0b46c (patch)
tree98baf9a40895b0fedb19f5d739e55ea2592f385b /server/sonar-web/babel.config.js
parent62b21006de51a5b15819e70f4a0943ab983d2b68 (diff)
downloadsonarqube-18582f55e72704e61c331467e90de7b023d0b46c.tar.gz
sonarqube-18582f55e72704e61c331467e90de7b023d0b46c.zip
[NO-JIRA] use esbuild for sonar-web
Diffstat (limited to 'server/sonar-web/babel.config.js')
-rw-r--r--server/sonar-web/babel.config.js21
1 files changed, 2 insertions, 19 deletions
diff --git a/server/sonar-web/babel.config.js b/server/sonar-web/babel.config.js
index d79c56f56fc..d991803dabd 100644
--- a/server/sonar-web/babel.config.js
+++ b/server/sonar-web/babel.config.js
@@ -13,31 +13,14 @@ module.exports = {
'last 2 Edge versions'
]
},
- corejs: 3,
+ corejs: '3.6',
useBuiltIns: 'entry'
}
],
'@babel/preset-react'
],
- plugins: [
- '@babel/plugin-proposal-class-properties',
- ['@babel/plugin-proposal-object-rest-spread', { useBuiltIns: true }],
- 'lodash'
- ],
+ plugins: [['@babel/plugin-proposal-object-rest-spread', { useBuiltIns: true }], 'lodash'],
env: {
- production: {
- plugins: [
- '@babel/plugin-syntax-dynamic-import',
- '@babel/plugin-transform-react-constant-elements'
- ]
- },
- development: {
- plugins: [
- '@babel/plugin-syntax-dynamic-import',
- '@babel/plugin-transform-react-jsx-source',
- '@babel/plugin-transform-react-jsx-self'
- ]
- },
test: {
plugins: [
'@babel/plugin-transform-modules-commonjs',