vite.config.ts 338 B

1234567891011121314151617
  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: [
  12. "es", "cjs"
  13. ],
  14. }
  15. }
  16. })