Fix Dependabot security alerts across SPA samples#91
Merged
Conversation
Resolves 13 open Dependabot alerts in samples/spa. esbuild (high, alerts 419-425) — transitive via Vite 6 in all 7 projects: - Force esbuild 0.28.1 via npm overrides (only patched version). - esbuild 0.28.1 regressed destructuring lowering for Vite's default browser targets, so add `esbuild.supported.destructuring: true` to each React project's vite.config to keep production builds working. The Angular CLI builder is unaffected and needs no workaround. Angular (samples/spa/angular/car-sales-website): - @angular/common 19.2.x -> 19.2.25 (alerts 428, 429) - @angular/compiler 19.2.x -> 19.2.25 (alert 430) - @angular/core 19.2.x -> 19.2.25 (alerts 427, 431) - Bump tmp override 0.2.6 -> 0.2.7 (alert 426) Verified `npm run build` succeeds for all 7 projects. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
amitjoshi438
approved these changes
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves all 13 open Dependabot alerts in
samples/spaacross 7 npm projects.npm run buildwas verified passing for every affected project.Changes
esbuild (high — alerts #419–#425, all 7 projects)
esbuildis a build-time-only transitive dependency via Vite 6. The only patched version is 0.28.1, forced via npmoverrides.esbuild 0.28.1 has a regression where it wrongly tries to lower
destructuringfor Vite's default browser targets, which breaksvite build(Transforming destructuring to the configured target environment ... is not supported yet). To keep production builds working, each React project'svite.confignow setsesbuild.supported.destructuring: true. This is behavior-preserving (bundle output unchanged). The Angular CLI builder is unaffected and needs no workaround.Angular —
samples/spa/angular/car-sales-website@angular/common→ 19.2.25 (#428, #429)@angular/compiler→ 19.2.25 (#430)@angular/core→ 19.2.25 (#427, #431)tmpoverride bumped 0.2.6 → 0.2.7 (#426)The Angular runtime packages require each other at the exact same version, so all were resolved together to the latest
19.2.xwithin the existing^19.2.0range via a clean reinstall.Verification
npm run buildsucceeds for all 7 projects:angular/car-sales-websitereact/authentication-samplereact/car-sales-websitereact/credit-cards-websitereact/environment-variables-samples/vite-frameworkreact/fluent-ui-samplereact/localization-samplePre-existing build advisories (bundle-size budget, missing
material-icons.cssasset, chunk-size warnings) are unrelated to these changes.🤖 Generated with Copilot CLI