rollup.config.js 363 B

123456789101112131415161718
  1. import resolve from 'rollup-plugin-node-resolve'
  2. import commonjs from 'rollup-plugin-commonjs'
  3. var pkg = require('./package.json')
  4. export default {
  5. input: 'index.js',
  6. name: 'deepmerge',
  7. plugins: [
  8. commonjs(),
  9. resolve()
  10. ],
  11. output: [
  12. { file: pkg.main, format: 'umd' },
  13. { file: pkg.module, format: 'es' },
  14. { file: pkg.browser, format: 'cjs' },
  15. ]
  16. }