Skip to content

Commit

Permalink
fix build phase when pnpm-lock is cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
odilitime committed Dec 20, 2024
1 parent a21b124 commit efac71d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/core/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ export default defineConfig({
sourcemap: true,
clean: true,
format: ["esm"], // Ensure you're targeting CommonJS
platform: "node",
target: "node18",
bundle: true,
splitting: true, // Add this for better code splitting
dts: true, // Generate declaration files
external: [
"dotenv", // Externalize dotenv to prevent bundling
"fs", // Externalize fs to use Node.js built-in module
Expand Down

0 comments on commit efac71d

Please sign in to comment.