vite.config.ts 324 B

123456789101112131415
  1. import { tuple } from "io-ts"
  2. import { resolve } from "path"
  3. import { defineConfig } from "vite"
  4. export default defineConfig({
  5. build: {
  6. outDir: "./dist",
  7. emptyOutDir: true,
  8. lib: {
  9. entry: resolve(__dirname, "src/index.ts"),
  10. fileName: "hoppscotch-data",
  11. formats: ["es", "cjs"],
  12. },
  13. },
  14. })