Shmew/Feliz.MaterialUI

How to check bundle size?

Closed this issue · 2 comments

What is the simplest way I can check the bundle size for any given example usage of the library?

/cc @Zaid-Ajaj

The bundle size itself, as in the number per example, doesn't tell much because it varies depending on the size of the consuming application but if you curious to see what gets inline-compiled or defined once and re-used then it is better to compile the application using fable-splitter like Feliz does which compiles the project into raw babel/es6 modules, this way you can get the the same output (more or less) you get from Fable REPL so you can inspect it and see how much it differs from the JS equivalent

Thanks a lot! I will try that.