rollup.config.js 738 B

123456789101112131415161718192021222324252627282930313233343536
  1. export default [
  2. {
  3. input: 'src/Potree.js',
  4. treeshake: false,
  5. output: {
  6. file: 'build/potree/potree.js',
  7. format: 'umd',
  8. name: 'Potree',
  9. sourcemap: true,
  10. }
  11. },{
  12. input: 'src/workers/BinaryDecoderWorker.js',
  13. output: {
  14. file: 'build/potree/workers/BinaryDecoderWorker.js',
  15. format: 'es',
  16. name: 'Potree',
  17. sourcemap: false
  18. }
  19. },{
  20. input: 'src/modules/loader/2.0/DecoderWorker.js',
  21. output: {
  22. file: 'build/potree/workers/2.0/DecoderWorker.js',
  23. format: 'es',
  24. name: 'Potree',
  25. sourcemap: false
  26. }
  27. },{
  28. input: 'src/modules/loader/2.0/DecoderWorker_brotli.js',
  29. output: {
  30. file: 'build/potree/workers/2.0/DecoderWorker_brotli.js',
  31. format: 'es',
  32. name: 'Potree',
  33. sourcemap: false
  34. }
  35. }
  36. ]