Skip to content

perf: speed up npm run build#2880

Draft
cqnykamp wants to merge 4 commits intoDoenet:mainfrom
cqnykamp:chore/improve-build-performance
Draft

perf: speed up npm run build#2880
cqnykamp wants to merge 4 commits intoDoenet:mainfrom
cqnykamp:chore/improve-build-performance

Conversation

@cqnykamp
Copy link
Copy Markdown
Contributor

Summary

  • speed up production TypeScript builds by excluding test-only app/api work and the e2e workspace from the root build graph
  • lazy-load Doenet-heavy app routes, keep MathJax config local, and avoid pulling the shared activity helper through @doenet/assignment-viewer
  • move the v0.6 -> v0.7 syntax upgrader out of the Vite bundle by copying its runtime files into public/vendor and loading them only when the upgrade action is used
  • document the vendor runtime setup in the relevant files

Results

  • root build:ts dropped from about 34.5s to about 31.5s on this machine
  • app build:assets dropped from about 58.7s to about 37.5s on this machine after vendoring the syntax upgrader
  • root npm run build dropped to about 76.6s on this machine in the best retained run

cqnykamp and others added 4 commits April 23, 2026 04:54
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@cqnykamp cqnykamp changed the title perf: speed up production build work perf: speed up npm run build Apr 23, 2026
@cqnykamp cqnykamp marked this pull request as draft April 29, 2026 15:26
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.

1 participant