doesdev / rollup-plugin-analyzer

Mad metrics for your rollup bundles, know all the things

Home Page:http://rollup-plugin-analyzer.doesdev.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work when emitting assets

edoardocavazza opened this issue · comments

It seems that this plugin throws in the generateBundle hook when the bundle refers to an asset emitted by the bundle, because bundleMods is undefined:

TypeError: Cannot convert undefined or null to object

Sorry for the delay, gonna try and check this out tonight. Thanks for reporting.

Well, 3.2.2 addresses the stated exception. It is however a very surface level resolution and may not truly fix the problem. That is, it only serves to prevent the exception and doesn't address the specific use case.

If that doesn't provide the expected output please reply with a basic repro and I'll try to ensure the use case is fully addressed.