Skip to content

Conversation

@drichar
Copy link
Contributor

@drichar drichar commented Nov 3, 2025

Summary

This PR adds build validation for example projects to the CI/PR workflows and fixes build errors that were preventing production builds.

Changes

  • Vite Configuration: Added build configuration to all example projects to fix production build errors with vite-plugin-node-polyfills v0.24.0 + Vite 6
    • Added global: 'globalThis' polyfill definition
    • Added rollupOptions to exclude vite-plugin-node-polyfills buffer shim
  • CI/PR Workflows: Added 'Build Examples' step to validate example builds
    • Added to PR workflow at the end
    • Added to CI workflow before publish step
  • Root Package Script: Fixed build:examples script to use correct filter pattern

Test Plan

  • Verify all example projects build successfully locally
  • Verify PR workflow runs successfully with example builds
  • Verify CI workflow runs successfully with example builds

- Add global to globalThis polyfill definition
- Add `rollupOptions` to exclude `vite-plugin-node-polyfills` buffer shim
- Fixes build errors with `vite-plugin-node-polyfills` v0.24.0 + Vite 6
- Add 'Build Examples' step to PR workflow
- Add 'Build Examples' step to CI workflow before publish
- Fix `build:examples` script to use correct filter pattern
@drichar drichar merged commit 1849d9c into main Nov 3, 2025
1 check passed
@drichar drichar deleted the chore/add-example-builds-to-ci branch November 3, 2025 05:33
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