Files
docs/packages/story/tsdown.config.ts
zeekay 7593cddcf7 fix(docs): normalize phantom names in CSS/astro/changeset/next-config (red review)
Follow-up to 4b114df1: the package-name normalization covered JS/TS imports +
package.json but missed four other surfaces that name the same phantom packages,
relocating the breakage from 'pnpm install' to 'next/vite/astro build':
- H1: 46 CSS @import strings (@hanzo/docs-{base-ui,ui,openapi}/css/*) → real pkgs
  (preserved legit @hanzo/docs-{twoslash,story} CSS)
- H2: examples/astro .astro imports (base-ui/mdx→fumadocs-ui/mdx, docs-core/toc→fumadocs-core/toc)
- L1: .changeset/config.json fixed-array lockstep names
- L2: removed apps/docs/next.config.mts dead phantom→phantom self-alias + dup keys
Found by adversarial red review of 4b114df1.
2026-06-24 15:52:22 -07:00

29 lines
583 B
TypeScript

import { defineConfig } from 'tsdown';
export default defineConfig({
format: 'esm',
target: 'es2023',
entry: [
'./src/index.{ts,tsx}',
'./src/i18n.ts',
'./src/type-tree/index.ts',
'./src/vite/*',
'./src/next/*',
'./src/webpack/story.ts',
],
unbundle: true,
dts: {
sourcemap: false,
},
platform: 'browser',
exports: {
customExports: {
'./css/*': './css/*',
},
},
deps: {
onlyBundle: ['@fastify/deepmerge', '@ungap/structured-clone', 'react-error-boundary'],
neverBundle: [/^node:/, 'next', 'webpack'],
},
});