rebassjs/rebass

How to minimize bundle size?

samuelcastro opened this issue · 0 comments

How to import component directly to minimize bundle size?

Similarly to https://material-ui.com/guides/minimizing-bundle-size/

ie:

import Button from 'rebass/Button'

instead of:

import { Button } from 'rebass'