Just started using next bundle analyzer. I cannot understand what these random numbers are, which are being given to specific pages of the Next app.
For eg: 1883.js. What is 1883?
Just started using next bundle analyzer. I cannot understand what these random numbers are, which are being given to specific pages of the Next app.
For eg: 1883.js. What is 1883?
They're the different sizes for that specific webpack chunk.
From the webpack-bundle-analyzer documentation (used internally by next-bundle-analyzer):
webpack-bundle-analyzerreports three values for sizes.defaultSizescan be used to control which of these is shown by default. The different reported sizes are:
statThis is the "input" size of your files, before any transformations like minification. It is called "stat size" because it's obtained from Webpack's stats object.
parsedThis is the "output" size of your files. If you're using a Webpack plugin such as Uglify, then this value will reflect the minified size of your code.
gzipThis is the size of running the parsed bundles/modules through gzip compression.