Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rafaelalmeidatk/next-tree-shaking-bug
https://github.com/rafaelalmeidatk/next-tree-shaking-bug
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rafaelalmeidatk/next-tree-shaking-bug
- Owner: rafaelalmeidatk
- License: mit
- Created: 2020-04-09T18:52:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-01T20:08:46.000Z (over 4 years ago)
- Last Synced: 2024-10-12T12:26:31.102Z (3 months ago)
- Language: TypeScript
- Size: 325 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## How to reproduce:
```bash
git clone https://github.com/rafaelalmeidatk/next-tree-shaking-bug
cd next-tree-shaking-bug
yarn
yarn build-and-analyze
```The result should be normal. Open the file `packages/ui-lib/components/BigText/index.tsx` and uncomment the last line. Run the `build-and-analyze` command again and you should see a huge increase in the bundle, but the `BigText` component isn't imported anywhere.
> Repo based from https://github.com/LukasBombach/tree-shakable-component-library