| 12345678910111213141516171819202122232425262728 |
- 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
- }
|