Files
openmaic/OpenMAIC/packages/mathml2omml/rollup.config.js
2026-08-16 14:58:47 +08:00

29 lines
533 B
JavaScript

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
}