Skip to content

Stop emitting pathinfo in production to limit heap size - #6077

Merged
rtibbles merged 1 commit into
learningequality:unstablefrom
rtibbles:nocap
Aug 3, 2026
Merged

Stop emitting pathinfo in production to limit heap size#6077
rtibbles merged 1 commit into
learningequality:unstablefrom
rtibbles:nocap

Conversation

@rtibbles

@rtibbles rtibbles commented Aug 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Google Cloud Builds have started failing because the wepback build has been exceeding 2GB
  • Flips the "pathinfo" conditionality to limit heap size - it was accidentally set opposite to webpack's recommendation

Reviewer guidance

Confirm the build passes on CI.

See here: https://webpack.js.org/configuration/output/#outputpathinfo

AI usage

Used Claude to experiment with a few different possibilities, removing pathinfo from prod, using parallel webpack configurations, and increasing the max heap size for NodeJS. Ended up using pathinfo because it worked and was least intrusive, and seemed to just be an error from previous tweaks.

@DXCanas DXCanas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea

but I like that it's a single-character change, and the promised impact of that change

@rtibbles
rtibbles merged commit 717cbb8 into learningequality:unstable Aug 3, 2026
21 checks passed
@rtibbles
rtibbles deleted the nocap branch August 3, 2026 18:41
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

Successfully merging this pull request may close these issues.

2 participants