rollup.config.js 663 B

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