rollup.config.js 448 B

1234567891011121314151617181920212223242526
  1. import typescript from 'rollup-plugin-typescript2'
  2. export default {
  3. input: './src/index.ts',
  4. output: [
  5. {
  6. format: 'iife',
  7. name: 'NP',
  8. dest: './build/index.iife.js'
  9. },
  10. {
  11. format: 'umd',
  12. name: 'NP',
  13. dest: './build/index.umd.js'
  14. },
  15. {
  16. format: 'cjs',
  17. dest: './build/index.js'
  18. },
  19. {
  20. format: 'es',
  21. dest: './build/index.es.js'
  22. }
  23. ],
  24. plugins: [typescript()]
  25. }