mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-29 07:01:44 +00:00
29 lines
564 B
TypeScript
29 lines
564 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:/],
|
|
},
|
|
});
|