626fbc70d8
- Migrate to eslint flat config + composite tsconfig. - Complete the asChild→as="template" refactor (remove asChild prop + :as-child bindings across components, matching Primitive's slot model). - Fix test type errors and source type-safety (useGraceArea hull/point math, FocusScope/util ref typing). Note: ~53 vue-tsc errors remain (HTML attr/event passthrough typing on transparent wrapper components + a couple of duplicate-export naming collisions) — not gated by CI (build/lint/test green); pending a component-attribute-typing design decision.
30 lines
696 B
TypeScript
30 lines
696 B
TypeScript
import { defineConfig } from 'tsdown';
|
|
import { sharedConfig } from '@robonen/tsdown';
|
|
import Vue from 'unplugin-vue/rolldown';
|
|
|
|
export default defineConfig({
|
|
...sharedConfig,
|
|
tsconfig: './tsconfig.src.json',
|
|
entry: ['src/index.ts', 'src/*/index.ts'],
|
|
plugins: [Vue({ isProduction: true })],
|
|
dts: { vue: true },
|
|
deps: {
|
|
neverBundle: ['vue'],
|
|
alwaysBundle: [/^@robonen\//, '@vue/shared'],
|
|
},
|
|
inputOptions: {
|
|
resolve: {
|
|
alias: {
|
|
'@vue/shared': '@vue/shared/dist/shared.esm-bundler.js',
|
|
},
|
|
},
|
|
},
|
|
outputOptions: {
|
|
...sharedConfig.outputOptions,
|
|
chunkFileNames: 'shared/[name]-[hash].js',
|
|
},
|
|
define: {
|
|
__DEV__: 'false',
|
|
},
|
|
});
|