Artifact
3961280ef348e24d2bcff2807d0e69d5f9063634aa4247a494b0e53eeeeefaa9:
const commonjs = require('rollup-plugin-commonjs'),
nodeResolve = require('rollup-plugin-node-resolve'),
buble = require('rollup-plugin-buble')
module.exports = {
output: {
name: 'riot',
format: 'umd',
banner: '/* Riot WIP, @license MIT */',
},
onwarn(warning) {
if (warning.code === 'CIRCULAR_DEPENDENCY') return
},
plugins: [
nodeResolve({ jsnext: true, main: true }),
commonjs({
include: 'node_modules/**',
ignoreGlobal: true
}),
// ignore the coverage of riot external modules like riot-tmpl
{
transform (code) {
return {
code: code.replace(/(export\nvar (brackets|tmpl)|var (observable)|var (skipRegex)) =/g, function(m) {
return ['/* istanbul ignore next */', m].join('\n')
})
}
}
},
buble()
]
}