Skip to content

Commit

Permalink
List all @lg-* scoped packages as external (#1913)
Browse files Browse the repository at this point in the history
* Update rollup.config.mjs

* Create small-jokes-notice.md
  • Loading branch information
TheSonOfThomp authored Aug 31, 2023
1 parent 63877b7 commit 74071b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/small-jokes-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lg-tools/build': minor
---

Adds the regex `^@lg-[a-z]+\/` to rollup's `external` property. This tells rollup to treat any `@lg-*` scoped package as external, and to not bundle it into the package.
2 changes: 1 addition & 1 deletion tools/build/config/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const external = [
'typescript',
/^@emotion\//,
/^@leafygreen-ui\//,
/^@lg-tools\//,
/^@lg-[a-z]+\//,
/^@storybook\//,
/^highlight/,
/^lodash\//,
Expand Down

0 comments on commit 74071b6

Please sign in to comment.