Skip to content

Commit 7caa273

Browse files
committed
fix(build): add all optional depedencies to external
1 parent 3ec5107 commit 7caa273

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tsup.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import type { Options } from "tsup";
2-
import { defineConfig } from "tsup";
1+
import { defineConfig, type Options } from "tsup";
2+
import pkg from "./package.json";
33

44
const defaults: Options = {
55
dts: true,
6-
external: ["cheerio", "fast-xml-parser"],
6+
external: Object.keys(pkg.optionalDependencies),
77
format: ["cjs", "esm"],
88
minify: "terser",
99
outDir: "dist",

0 commit comments

Comments
 (0)