Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rafaelalmeidatk/next-tree-shaking-bug


https://github.com/rafaelalmeidatk/next-tree-shaking-bug

Last synced: 6 days ago
JSON representation

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