Skip to content

Commit ef05307

Browse files
author
Shaw
committed
fix: avoid shared tsup config runtime import
1 parent b095341 commit ef05307

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

plugins/tsup.plugin-packages.shared.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { existsSync, readdirSync } from "node:fs";
22
import path from "node:path";
3-
import { defineConfig } from "tsup";
43

54
function resolvePackageRoot(): string {
65
if (typeof process.env.npm_package_json === "string") {
@@ -40,7 +39,7 @@ function collectSrcEntries(srcRoot: string): string[] {
4039
}
4140

4241
/** Transpile workspace plugins/apps under `plugins/*` without bundling deps. */
43-
export default defineConfig({
42+
export default {
4443
entry: collectSrcEntries(path.join(resolvePackageRoot(), "src")),
4544
outDir: "dist",
4645
format: ["esm"],
@@ -56,4 +55,4 @@ export default defineConfig({
5655
options.packages = "external";
5756
return options;
5857
},
59-
});
58+
};

0 commit comments

Comments
 (0)