mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
Introduce the build-time compiler for constrained-JSX skins, rebased onto current main as a clean, additive package. Provides: - core pipeline: parse, compile, generate, JSX runtime, define-component - transforms: import rewriting, replace/wrap, drop-unused locals/imports - matchers + react lowering (add-prop, child-as-prop) - styles className analyzer - tailwind subsystem: design-system loader, decompose, evaluator, deriveClassName, emitCss, tailwindPlugin (three targets) Self-contained: the integration smoke test now reads a vendored skin fixture instead of the skins package, so the compiler builds and tests green independently. 158 tests pass. Wiring: register the project reference (tsconfig), commitlint scope, CI test-matrix entry, and lockfile entries (lightningcss, tailwindcss). The skin migration that consumes this compiler is parked separately — its token refactor conflicts with skin work that landed on main; see the follow-up commit and .claude/plans/compiler-rebase-audit.md.
23 lines
588 B
TypeScript
23 lines
588 B
TypeScript
import { defineConfig } from 'tsdown';
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
index: './src/index.ts',
|
|
cli: './src/cli.ts',
|
|
'jsx-runtime': './src/jsx-runtime.ts',
|
|
'jsx-dev-runtime': './src/jsx-dev-runtime.ts',
|
|
'plugins/vite': './src/plugins/vite.ts',
|
|
'matchers/index': './src/matchers/index.ts',
|
|
'react/index': './src/react/index.ts',
|
|
'styles/index': './src/styles/index.ts',
|
|
'tailwind/index': './src/tailwind/index.ts',
|
|
},
|
|
platform: 'neutral',
|
|
format: 'es',
|
|
sourcemap: true,
|
|
clean: true,
|
|
hash: false,
|
|
unbundle: true,
|
|
dts: true,
|
|
});
|