rollup.config.js 390 B

1234567891011121314151617181920212223242526
  1. import strip from "rollup-plugin-strip";
  2. export default {
  3. input: "source/Escher.js",
  4. plugins: [
  5. strip(
  6. {
  7. functions: ["assert.*", "debug", "alert"],
  8. debugger: false,
  9. sourceMap: false
  10. })
  11. ],
  12. output: [
  13. {
  14. format: "umd",
  15. name: "Escher",
  16. file: "build/escher.js",
  17. indent: "\t"
  18. },
  19. {
  20. format: "es",
  21. file: "build/escher.module.js",
  22. indent: "\t"
  23. }
  24. ]
  25. };