Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

ooade/always-treeshake-mui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

always-treeshake-mui

Always TreeShake MUI with Next.js?

Yes! You should to save few kilobytes

The Example used here was gotten from https://github.com/mui-org/material-ui/blob/master/examples/nextjs/, and it shows how to properly remove unused code.

What % difference?

Initial is the slightly almost the same when not importing multiple exports from the modules.

Packages(s) Before After Percentage Gain
@material-ui 679kb 421kb 62% gain
mui+icons 905kb 427kb 47% gain

License

CC0

About

An example on how to properly tree-shake mui with next.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published