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: [
|
|
|
|
'./build/babel-plugin'
|
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' ] } ],
|
|
|
|
'./build/babel-plugin'
|
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
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|