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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
import { defineConfig } from 'tsup'
export default defineConfig({
entry: {
index: 'src/index.ts',
},
format: ['cjs', 'esm'],
// Inlined, so the SDKs that bundle this package stay self-contained.
dts: { resolve: ['@spree/core'] },
noExternal: ['@spree/core'],
splitting: false,
sourcemap: true,
clean: true,
treeshake: true,
minify: false,
// Left to the SDKs that upload, which bundle it themselves; the Store SDK
// never uploads and so never ships it.
external: ['spark-md5'],
})