Babel: Target more modern browsers, updates browserlistrc (#32573)

* Babel: Target more modern browsers, updates browserlistrc

* Updates

* Fixed circular dependencies, grafana booted
This commit is contained in:
Torkel Ödegaard
2021-04-01 10:32:00 +02:00
committed by GitHub
parent ee06970d72
commit 7f6229494d
31 changed files with 99 additions and 90 deletions
+4 -6
View File
@@ -1,4 +1,4 @@
module.exports = function getBabelConfig() {
module.exports = function getBabelConfig(options = {}) {
return {
cacheDirectory: true,
babelrc: false,
@@ -8,12 +8,10 @@ module.exports = function getBabelConfig() {
[
'@babel/preset-env',
{
targets: {
browsers: 'last 3 versions',
},
bugfixes: true,
browserslistEnv: process.env.BABEL_ENV || options.BABEL_ENV || 'production',
useBuiltIns: 'entry',
corejs: 3,
modules: false,
corejs: '3.10',
},
],
[