Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

537 B
Raw Blame
import { defineConfig } from "tsup";
import path from "path";

export default defineConfig({
  clean: true,
  dts: true,
  entry: ["src/index.ts"],
  format: ["esm"],
  esbuildOptions(options) {
    options.jsx = "automatic";
    options.alias = {
      "@components": path.resolve("src/components"),
      "@hooks": path.resolve("src/hooks"),
      "@lib": path.resolve("src/lib"),
      "@": path.resolve("src"),
    };
  },
  external: ["react", "react-dom", "react-router-dom", "virtual:mercur/config", "virtual:mercur/routes"],
});