mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-11-21 01:13:16 +08:00
16 lines
406 B
JavaScript
16 lines
406 B
JavaScript
// 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-env',
|
|
{
|
|
targets: '>2%, not IE 11'
|
|
}
|
|
]
|
|
]
|
|
}
|