OpenMAIC-React / packages /mathml2omml /rollup.config.js
muthuk1's picture
Convert OpenMAIC from Next.js to React (Vite)
f56a29b verified
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
}