// the file is used for jest testing & site building // > 2%, make template string not compiled to concat, since it's not fast module.exports = { presets: process.env.NODE_ENV === 'test' ? [ ['@babel/preset-env', { targets: { node: 'current' } }], [ '@babel/preset-typescript', { allExtensions: true, isTSX: true, jsxPragma: 'h', jsxPragmaFrag: 'Fragment' } ], [ '@babel/preset-react', { pragma: 'h', pragmaFrag: 'Fragment' } ] ] : [ [ '@babel/preset-env', { targets: '>2%, not IE 11' } ] ] }