-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove barrel file from design-system-example (#7580)
### Description As @lorcan-codes pointed out in #7529, the `design-system` example could quickly run into performance issues. This was because we were using a barrel file. I've swapped the `main` field `./packages/ui/package.json` for an `exports` field that allows for creating individual entrypoints for the package to remove this class of issue. ### Testing Instructions I verified that `turbo build && cd apps/docs && pnpm preview-storybook` runs correctly. Additionally, I made sure that `turbo dev` works and that edits to both the `Button` component itself and the story for it show hot-reloaded changes. Happy to have someone else check me! Closes TURBO-2505
- Loading branch information
1 parent
42c4de5
commit 9e962f3
Showing
6 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { defineConfig } from "tsup"; | ||
|
||
export default defineConfig((options) => ({ | ||
entryPoints: ["src/button.tsx"], | ||
format: ["cjs", "esm"], | ||
dts: true, | ||
sourcemap: true, | ||
external: ["react"], | ||
...options, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters