OperationCode/front-end

View on GitHub
.babelrc.js

Summary

Maintainability
A
0 mins
Test Coverage
const pathAliases = require('./pathAliases');

module.exports = {
  env: {
    production: {
      presets: ['next/babel'],
      plugins: ['add-react-displayname'],
    },
    development: {
      presets: ['next/babel'],
      plugins: ['istanbul'],
    },
    test: {
      presets: [
        [
          'next/babel',
          {
            'preset-env': {
              modules: 'commonjs',
            },
          },
        ],
        '@babel/preset-typescript',
      ],
    },
  },
  plugins: [
    [
      'module-resolver',
      {
        root: ['./'],
        alias: pathAliases,
      },
    ],
    'macros',
  ],
};