Skip to content

Commit

Permalink
Fix bundling unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryuni committed Dec 22, 2024
1 parent 418cd2d commit 1278f19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-crabs-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@domain-expansion/astro": minor
---

Fix bundling unused dependencies
3 changes: 3 additions & 0 deletions package/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export default defineConfig((options) => {
...Object.keys(peerDependencies),
...Object.keys(dependencies),
/node_modules/g,
'recast',
'tslib',
],
tsconfig: "tsconfig.json",
treeshake: 'smallest',
};
});

0 comments on commit 1278f19

Please sign in to comment.