Skip to content

chore: add scripts to report demo and npm bundle sizes#3507

Merged
tbouffard merged 4 commits intomasterfrom
chore/get_bundle_and_demo_size
Apr 21, 2026
Merged

chore: add scripts to report demo and npm bundle sizes#3507
tbouffard merged 4 commits intomasterfrom
chore/get_bundle_and_demo_size

Conversation

@tbouffard
Copy link
Copy Markdown
Member

Add two shell scripts and wire them into CI to report on bundle sizes:

  • scripts/list-npm-bundle-sizes.sh: reports sizes of the ESM/IIFE bundles in the npm package
  • scripts/list-demo-lib-chunks.sh: reports sizes of the demo's dependency chunks

Split vite config chunks by dependency (including bpmn-visualization) and enable minification
for the demo so chunk sizes are meaningful. Trigger the demo preview workflow when the script
changes.

Add two shell scripts and wire them into CI to report on bundle sizes:
- scripts/list-npm-bundle-sizes.sh: reports sizes of the ESM/IIFE bundles in the npm package
- scripts/list-demo-lib-chunks.sh: reports sizes of the demo's dependency chunks

Split vite config chunks by dependency (including bpmn-visualization) and enable minification
for the demo so chunk sizes are meaningful. Trigger the demo preview workflow when the script
changes.
@tbouffard tbouffard added the chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) label Apr 21, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 21, 2026

♻️ PR Preview cf278db has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@tbouffard tbouffard added the skip CI e2e tests GitHub Actions do not run e2e tests (for Pull Requests) label Apr 21, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 21, 2026

♻️ PR Preview cf278db has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

The demo build does not include a hash in chunk file names, so the extraction regex
was stripping the last hyphenated segment of the dependency name (e.g. 'bpmn' instead
of 'bpmn-visualization', 'es' instead of 'es-toolkit'). Strip only the '.js' suffix.
@sonarqubecloud
Copy link
Copy Markdown

@tbouffard tbouffard marked this pull request as ready for review April 21, 2026 12:18
@tbouffard tbouffard merged commit 61a634f into master Apr 21, 2026
16 checks passed
@tbouffard tbouffard deleted the chore/get_bundle_and_demo_size branch April 21, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) skip CI e2e tests GitHub Actions do not run e2e tests (for Pull Requests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant