module.exports = function (api) {
  api.cache(true);

  const presets = [
    '@babel/preset-env',
    '@babel/preset-react',
    [
      '@babel/preset-typescript',
       {
         isTSX: true,
         allExtensions: true
       }
    ],
  ];
  const plugins = ['macros'];

  return {
    presets,
    plugins
  };
}

module.exports = function (api) {
  api.cache(true);

  const presets = [
    '@babel/preset-env',
    [
      '@babel/preset-react',
      {
        runtime: 'automatic'
      }
    ],
    [
      '@babel/preset-typescript',
       {
         isTSX: true,
         allExtensions: true
       }
    ],
  ];
  const plugins = ['macros'];

  return {
    presets,
    plugins
  };
}

add babel runtime configuration