diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2021-09-17 16:29:12 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-09-30 20:03:00 +0000 |
commit | 18582f55e72704e61c331467e90de7b023d0b46c (patch) | |
tree | 98baf9a40895b0fedb19f5d739e55ea2592f385b /server/sonar-web/babel.config.js | |
parent | 62b21006de51a5b15819e70f4a0943ab983d2b68 (diff) | |
download | sonarqube-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.js | 21 |
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', |