Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

500 B
Raw Blame
import { defineConfig } from 'tsup'

// Compile ONLY the Node-side Vite integration to JS — Node refuses to
// type-strip .ts under node_modules, and vite.config.ts imports resolve
// through Node. bundle: false transpiles 1:1; bare imports (dashboard-core,
// TanStack) resolve through node_modules at runtime.
export default defineConfig({
  entry: ['src/vite/index.ts'],
  outDir: 'dist/vite-plugin',
  format: ['esm'],
  target: 'node20',
  bundle: false,
  splitting: false,
  clean: true,
})