aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/babel.config.js
blob: 353be5de9f40bbaff38130e8af3de3d3b3b9a14a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (C) 2009-2024 SonarSource SA
 * All rights reserved
 * mailto:info AT sonarsource DOT com
 */

const envPlugins = [];

module.exports = {
  plugins: ['@emotion'],
  presets: [
    ['@babel/preset-react', { runtime: 'automatic' }],
    ['@babel/preset-typescript', { allowNamespaces: true }],
  ],
  env: {
    production: {
      plugins: envPlugins,
    },
    development: {
      plugins: envPlugins,
    },
  },
};