module.exports = {
  presets: [
    [
      '@vue/cli-plugin-babel/preset',
      {
        modules: false,
        loose: false,
        targets: {
          browsers: ['> 1%', 'not ie <= 8', 'ios >= 6', 'safari >= 8'],
        },
        useBuiltIns: 'usage',
      },
    ],
  ],
  env: {
    test: {
      presets: [
        [
          '@vue/cli-plugin-babel/preset',
          {
            modules: false,
            targets: { node: 'current' },
          },
        ],
      ],
      plugins: ['require-context-hook'],
    },
  },
}
