chrisbateman / webpack-visualizer

Visualize your Webpack bundle
http://chrisbateman.github.io/webpack-visualizer/
MIT License
1.69k stars 93 forks source link

Distribute WebpackVisualizer as a standalone React Component? #50

Open magicmark opened 6 years ago

magicmark commented 6 years ago

Hi @chrisbateman, thanks for this awesome project!

I've been wanting to use this in a side project - I was hoping to be able to import the visualizer as a standalone React component.

I was thinking a nice API would be if I could just throw the stats file blob as a prop to a component.

I did a tiny bit of hacking to get this to work in a minimum viable way, as a POC.

Wondering what your thoughts are on this? Would you be open to something like this?

Thanks!