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.

515 B
Raw Blame
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'],
})