FormidableLabs / inspectpack

An inspection tool for Webpack frontend JavaScript bundles.
MIT License
592 stars 20 forks source link

Imports that are built using Webpack (using library output mode) cause errors. #37

Closed Trakkasure closed 6 years ago

Trakkasure commented 7 years ago

I noticed this while importing package react-draggable into my project and running tests.

I fixed by checking for unmatched empty comment filename matches and returning null. Then not pushing the modules array if the filename match was null.

The fix in my prior issue (#36) should resolve the error. But this issues is here in case that isn't added or what I suggested isn't the right way to do it.

ryan-roemer commented 6 years ago

Should be obviated in inspectpack@^3 because we use stats object now, not real bundles.