2016-11-23 11:17:42 -08:00
|
|
|
{
|
2017-02-26 21:51:37 -08:00
|
|
|
env: {
|
|
|
|
test: {
|
|
|
|
presets: [
|
|
|
|
[ 'env', {
|
|
|
|
loose: true,
|
|
|
|
targets: { node: 4 },
|
|
|
|
exclude: [
|
|
|
|
// skip some almost-compliant features on Node.js v4.x
|
|
|
|
'transform-es2015-block-scoping',
|
|
|
|
'transform-es2015-classes',
|
|
|
|
'transform-es2015-for-of',
|
|
|
|
]
|
|
|
|
} ]
|
2017-01-14 20:50:10 -08:00
|
|
|
],
|
2017-02-26 21:51:37 -08:00
|
|
|
plugins: [
|
2022-07-16 06:16:51 -07:00
|
|
|
'./build/babel-plugin',
|
|
|
|
'transform-async-generator-functions'
|
2016-11-23 11:17:42 -08:00
|
|
|
]
|
|
|
|
},
|
2017-02-26 21:51:37 -08:00
|
|
|
coverage: {
|
|
|
|
presets: [
|
|
|
|
[ 'env', {
|
|
|
|
loose: true,
|
|
|
|
targets: { node: 4 },
|
|
|
|
exclude: [
|
|
|
|
'transform-es2015-block-scoping',
|
|
|
|
'transform-es2015-classes',
|
|
|
|
'transform-es2015-for-of'
|
|
|
|
]
|
|
|
|
} ]
|
2016-11-23 11:17:42 -08:00
|
|
|
],
|
2017-02-26 21:51:37 -08:00
|
|
|
plugins: [
|
|
|
|
[ 'istanbul', { exclude: [ 'src/blob.js', 'build', 'test' ] } ],
|
2022-07-16 06:16:51 -07:00
|
|
|
'./build/babel-plugin',
|
|
|
|
'transform-async-generator-functions'
|
2016-11-23 11:17:42 -08:00
|
|
|
]
|
|
|
|
},
|
2017-02-26 21:51:37 -08:00
|
|
|
rollup: {
|
|
|
|
presets: [
|
|
|
|
[ 'env', {
|
|
|
|
loose: true,
|
|
|
|
targets: { node: 4 },
|
|
|
|
exclude: [
|
|
|
|
'transform-es2015-block-scoping',
|
|
|
|
'transform-es2015-classes',
|
|
|
|
'transform-es2015-for-of'
|
|
|
|
],
|
|
|
|
modules: false
|
|
|
|
} ]
|
2016-11-23 11:17:42 -08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|