Skip to content

Commit

Permalink
fix(build-scripts): Add peerDependencies to external
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Feb 15, 2024
1 parent f341a09 commit 7e004dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/build-scripts/bin/build-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ async function buildBundle(options) {

const bundle = await rollup({
input: entryFiles,
external: Object.keys(dependencies),
external: [
...Object.keys(dependencies),
...Object.keys(pkgJson.peerDependencies ?? {})
],
treeshake: {
preset: "recommended",
// Assume all modules has no side effects in order to remove all unused
Expand Down

0 comments on commit 7e004dd

Please sign in to comment.