Next: , Up: Configuration   [Index]


3.4.5.1 babel.config.json

Create a file called babel.config.json with the following content at the root of your project (where the package.json is).

// json
{
  "presets": [...],
  "plugins": [...]
}

// js

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

  const presets = [ ... ];
  const plugins = [ ... ];

  return {
    presets,
    plugins
  };
}