mirror of
https://github.com/zoriya/v10.git
synced 2026-08-06 14:18:10 +00:00
- Migrate HTML and React demo applications from prototype to examples/ directory - Add examples to workspace configuration with selective build support - Update workspace scripts for library-only builds (build:libs) and example dev servers - Fix React MediaProvider context conflicts by consolidating exports - Add esbuild-css-modules-plugin for CSS modules support in React package - Configure tsup for flattened output structure with CSS processing - Update package exports and imports for new @vjs-10/* scoped packages 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
22 lines
435 B
TypeScript
22 lines
435 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
format: ['cjs', 'esm'],
|
|
clean: true,
|
|
sourcemap: true,
|
|
outDir: 'dist',
|
|
external: [
|
|
// Keep all dependencies external for library builds
|
|
/^@vjs-10\//,
|
|
/^[^.]/,
|
|
],
|
|
// Generate TypeScript declarations with custom config
|
|
dts: {
|
|
compilerOptions: {
|
|
composite: false,
|
|
incremental: false,
|
|
},
|
|
},
|
|
});
|