What does this PR change? What problem does it solve?
When run with HUGO_UGLYURLS=true, the position count is wrong and a comma is missing between array elements, causing errors during minification.
This PR decouples position counting from (potentially skipped) bc_list array indices and length, making it slightly more robust.
Was the change discussed in an issue or in the Discussions before?
Also fixes #1441 and its reproducer, which shows the same behavior
PR Checklist
[ ] This change adds/updates translations and I have used the template present here.
What does this PR change? What problem does it solve?
When run with
HUGO_UGLYURLS=true
, the position count is wrong and a comma is missing between array elements, causing errors during minification. This PR decouples position counting from (potentially skipped) bc_list array indices and length, making it slightly more robust.Was the change discussed in an issue or in the Discussions before?
Also fixes #1441 and its reproducer, which shows the same behavior
PR Checklist