import { defineConfig } from 'vite-plus' export default defineConfig({ pack: { entry: ['./src/index.ts'], outDir: 'lib', publint: true, fixedExtension: false, dts: true, deps: { alwaysBundle: ['gunshi/combinators'], // NOTE(kazupon): Inline `args-tokens` types into the bundled `.d.ts` to hide it as a transitive // type dependency for consumers. Declarations follow the JS bundling by default (tsdown // 0.22.1+), and `args-tokens` is not a dependency, so it is bundled anyway. `deps.dts` states // the intent, and keeps the types inlined even if `args-tokens` becomes a dependency. See // `NOTES.md`. dts: { alwaysBundle: ['args-tokens', 'args-tokens/combinators'] } } } })