rollup.config.js 343 B

12345678910111213141516171819202122
  1. import resolve from 'rollup-plugin-node-resolve'
  2. import commonjs from 'rollup-plugin-commonjs'
  3. import pkg from './package.json'
  4. export default {
  5. input: `index.js`,
  6. plugins: [
  7. commonjs(),
  8. resolve(),
  9. ],
  10. output: [
  11. {
  12. file: pkg.main,
  13. format: `cjs`
  14. },
  15. {
  16. name: 'deepmerge',
  17. file: 'dist/umd.js',
  18. format: `umd`
  19. },
  20. ],
  21. }