rollup.config.js 346 B

12345678910111213141516171819202122
  1. import typescript from "@rollup/plugin-typescript";
  2. import { defineConfig } from "rollup";
  3. export default defineConfig({
  4. input: ["src/index.ts"],
  5. external: ["lodash"],
  6. output: {
  7. name: "index",
  8. format: "umd",
  9. file: "dist/index.js",
  10. },
  11. plugins: [
  12. typescript({
  13. module: "esnext",
  14. exclude: ["./node_modules/**"],
  15. }),
  16. ],
  17. });