Initial commit: breakpilot-compliance - Compliance SDK Platform
Services: Admin-Compliance, Backend-Compliance, AI-Compliance-SDK, Consent-SDK, Developer-Portal, PCA-Platform, DSMS Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
32
breakpilot-compliance-sdk/packages/vanilla/tsup.config.ts
Normal file
32
breakpilot-compliance-sdk/packages/vanilla/tsup.config.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { defineConfig } from 'tsup'
|
||||
|
||||
export default defineConfig([
|
||||
// Main bundle with web components
|
||||
{
|
||||
entry: ['src/index.ts'],
|
||||
format: ['cjs', 'esm'],
|
||||
dts: true,
|
||||
splitting: false,
|
||||
sourcemap: true,
|
||||
clean: true,
|
||||
treeshake: true,
|
||||
},
|
||||
// Embed script (IIFE for <script> tag usage)
|
||||
{
|
||||
entry: ['src/embed.ts'],
|
||||
format: ['iife'],
|
||||
globalName: 'BreakPilotSDK',
|
||||
outDir: 'dist',
|
||||
minify: true,
|
||||
sourcemap: true,
|
||||
outExtension: () => ({ js: '.min.js' }),
|
||||
},
|
||||
// Embed script (ESM for modern usage)
|
||||
{
|
||||
entry: ['src/embed.ts'],
|
||||
format: ['esm', 'cjs'],
|
||||
dts: false,
|
||||
splitting: false,
|
||||
sourcemap: true,
|
||||
},
|
||||
])
|
||||
Reference in New Issue
Block a user