diff --git a/grafana-plugin/.babelrc.js b/grafana-plugin/.babelrc.js deleted file mode 100644 index 5b41eecf..00000000 --- a/grafana-plugin/.babelrc.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - presets: ['@babel/preset-env'], - plugins: [['@babel/plugin-proposal-decorators', { legacy: true }]], -}; diff --git a/grafana-plugin/webpack.config.js b/grafana-plugin/webpack.config.js index 0a1afefb..8369d526 100644 --- a/grafana-plugin/webpack.config.js +++ b/grafana-plugin/webpack.config.js @@ -61,6 +61,12 @@ module.exports.getWebpackConfig = (config, options) => { loose: true, }, ], + [ + '@babel/plugin-proposal-decorators', + { + legacy: true, + }, + ], '@babel/plugin-transform-react-constant-elements', '@babel/plugin-proposal-nullish-coalescing-operator', '@babel/plugin-proposal-optional-chaining', @@ -86,7 +92,7 @@ module.exports.getWebpackConfig = (config, options) => { localIdentName: options.production ? '[name]__[hash:base64]' : '[path][name]__[local]', }, }, - } + }, ], }, ],