mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-11-27 04:09:51 +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'
|
|
}
|
|
]
|
|
]
|
|
}
|