Next.js generates chunks with non numeric ids which breaks chunk analysis.
This commit preserves the existing behaviour by handling numeric chunk identifiers but falls back to string identifiers if it
can't decode the id as an int. Proper URI encoding has been accounted for.
you can find a zipped example stat.json with non-numeric identifiers attached to this PR which breaks analyse without this PR.
stats.zip
Next.js generates chunks with non numeric ids which breaks chunk analysis.
This commit preserves the existing behaviour by handling numeric chunk identifiers but falls back to string identifiers if it can't decode the id as an int. Proper URI encoding has been accounted for.
you can find a zipped example stat.json with non-numeric identifiers attached to this PR which breaks analyse without this PR. stats.zip