egoist / package-size

Get the bundle size of an npm package.
MIT License
425 stars 26 forks source link

bug: unable to get size of local file #18

Closed Hotell closed 5 years ago

Hotell commented 5 years ago

I wanna check library bundle size:

Libary output:

image

yarn package-size ./dist/bundles/index.esm.js

🚨 throws error:

 ERROR  Compiled with errors!

TypeError: Cannot read property 'version' of undefined
    at info.versionedName.parsed.map.pkg (/Users/hotell/Projects/devel/github/@hotell/typescript-lib-starter/node_modules/package-size/lib/index.js:243:81)
    at Array.map (<anonymous>)
    at /Users/hotell/Projects/devel/github/@hotell/typescript-lib-starter/node_modules/package-size/lib/index.js:241:8
    at Generator.next (<anonymous>)
    at onFulfilled (/Users/hotell/Projects/devel/github/@hotell/typescript-lib-starter/node_modules/co/index.js:65:19)
    at <anonymous>
egoist commented 5 years ago

:tada: This issue has been resolved in version 2.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: