Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack 5 support #8

Open
irudoy opened this issue Apr 6, 2021 · 1 comment
Open

Webpack 5 support #8

irudoy opened this issue Apr 6, 2021 · 1 comment

Comments

@irudoy
Copy link

irudoy commented Apr 6, 2021

It throws when comparing two webpack-5 stats.

Obviously the problem in chunkalyse package, but seems like it's not maintained. And other issues may occur after fixing this one.

TypeError: Cannot read property 'reduce' of undefined
    at /.../.yarn/cache/chunkalyse-npm-0.5.3-853143bb41-56c74e2f5f.zip/node_modules/chunkalyse/index.js:44:15
    at Array.reduce (<anonymous>)
    at analyseChunks (/.../.yarn/cache/chunkalyse-npm-0.5.3-853143bb41-56c74e2f5f.zip/node_modules/chunkalyse/index.js:37:3)
    at module.exports (/.../.yarn/cache/chunkalyse-npm-0.5.3-853143bb41-56c74e2f5f.zip/node_modules/chunkalyse/index.js:19:10)
    at Array.map (<anonymous>)
    at bundles (/.../.yarn/cache/statistician-npm-0.5.7-4d025164e9-4020e114f0.zip/node_modules/statistician/programs/diff-summary/bundles/index.js:17:32)
    at module.exports (/.../.yarn/cache/statistician-npm-0.5.7-4d025164e9-4020e114f0.zip/node_modules/statistician/programs/diff-summary/index.js:15:30)
    at module.exports (/.../.yarn/cache/statistician-npm-0.5.7-4d025164e9-4020e114f0.zip/node_modules/statistician/programs/diff-summary/cli.js:10:54)
    at async /.../.yarn/cache/statistician-npm-0.5.7-4d025164e9-4020e114f0.zip/node_modules/statistician/cli.js:21:18
@floydjones1
Copy link

weird, I am not having this issue and I am using webpack 5. Here is my example repo https://github.com/floydjones1/bundle-benchmark-pr-example

You can follow my repo if you like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants