ctrlplusb / react-universally

A starter kit for universal react applications.
MIT License
1.7k stars 244 forks source link

webpack-bundle-analyzer not showing bundle dependencies #543

Open jordmccord opened 6 years ago

jordmccord commented 6 years ago

Just a heads up that for some reason the analyze:client script is not showing the dependencies of each bundle on the interactive report. I'm currently looking to see why but I thought I'd make every aware.

menberg commented 6 years ago

I had a similar issue some time ago. The solution was to modify https://github.com/ctrlplusb/react-universally/blob/d71b1e4475b31155260ea7ad3d793890aef5aed4/internal/scripts/analyze.js#L41 to JSON.stringify(stats.toJson(), null, 4)

Not sure if it's related to your issue though.

jordmccord commented 6 years ago

That did the trick, thanks for that

ctrlplusb commented 6 years ago

Would be great to get this fix into next branch. Are either of you up for creating a PR?