Files
workspace/code/one-designer/packages/report-layout/tsup.config.ts
T
2026-09-20 17:34:40 +08:00

15 lines
417 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from "tsup"
export default defineConfig({
// fonts 单独入口:Node 侧字体解析会用到 node:fs,
// 与纯逻辑入口分离,避免浏览器打包被迫引入 Node 内置模块。
entry: ["src/index.ts", "src/fonts.ts"],
format: ["esm", "cjs"],
dts: true,
sourcemap: true,
clean: true,
treeshake: true,
target: "es2022",
external: ["node:fs", "node:path"],
})