项目文件夹

文件
wehub-resource-sync c48612c494
CI / E2E Tests (push) Has been cancelled
CI / Lint, Typecheck & Unit Tests (push) Has been cancelled
Docs Build / Build docs site (push) Has been cancelled
Publish @openmaic packages / Build, validate & publish (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:03:23 +08:00

29 行
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
}