text: module.exports = {
    presets: [
      [
        '@babel/preset-env',
        {
          modules: false,
        },
      ],
    ],
    plugins: [
      '@babel/plugin-proposal-object-rest-spread',
      [
        '@babel/plugin-transform-runtime',
        {
          useESModules: true,
        },
      ],
    ],
    env: {
      test: {
        presets: [
          ['@babel/preset-typescript', { allExtensions: true }],
          [
            '@babel/preset-env',
            {
              modules: 'commonjs',
            },
          ],
        ],
        plugins: [
          [
            '@babel/plugin-transform-runtime',
            {
              useESModules: false,
            },
          ],
        ],
      },
    },
  };
  