We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
external
1 parent 3ec5107 commit 7caa273Copy full SHA for 7caa273
tsup.config.ts
@@ -1,9 +1,9 @@
1
-import type { Options } from "tsup";
2
-import { defineConfig } from "tsup";
+import { defineConfig, type Options } from "tsup";
+import pkg from "./package.json";
3
4
const defaults: Options = {
5
dts: true,
6
- external: ["cheerio", "fast-xml-parser"],
+ external: Object.keys(pkg.optionalDependencies),
7
format: ["cjs", "esm"],
8
minify: "terser",
9
outDir: "dist",
0 commit comments