20260920173439
This commit is contained in:
1 parent
f4bfc1ddfc
commit
6f03d92425
174 files changed
+23490
-157
No files matched your search
@@ -0,0 +1,14 @@
|
||||
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"],
|
||||
})
|
||||
Reference in new issue
Block a user