rollup.config.js 512 B

12345678910111213141516171819202122
  1. import resolve from "rollup-plugin-node-resolve";
  2. import babel from "rollup-plugin-babel";
  3. import commonjs from 'rollup-plugin-commonjs';
  4. export default [
  5. {
  6. input: "src/index.js",
  7. output: {
  8. name: "howLongUntilLunch",
  9. file: "dist/vap.js",
  10. format: "umd"
  11. },
  12. plugins: [
  13. resolve(), // so Rollup can find `ms`
  14. commonjs(),
  15. babel({
  16. exclude: "node_modules/**"
  17. }),
  18. ]
  19. }
  20. ];