File size: 533 Bytes
f56a29b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | import { nodeResolve } from '@rollup/plugin-node-resolve'
const onwarn = (warning) => {
// Silence circular dependency warning for moment package
if (warning.code === 'CIRCULAR_DEPENDENCY') {
return
}
console.warn(`(!) ${warning.message}`)
}
export default {
input: 'src/index.js',
output: [
{
file: 'dist/index.js',
format: 'module',
sourcemap: true
},
{
file: 'dist/index.cjs',
format: 'commonjs',
sourcemap: true
}
],
plugins: [nodeResolve()],
onwarn
}
|