Repository navigation
fix(storybook): drop the global esbuild resolution that broke Vite - #72
Conversation
The esbuild ^0.28.1 resolution, added by the 2026-07-27 security pass, forced esbuild 0.28 onto Vite 6.4.5, which declares ^0.25.0. With it, storybook dev and storybook build both stopped on esbuild's 'Transforming destructuring to the configured target environment ... is not supported yet' for Vite's default targets. The resolution is no longer needed: without it Vite resolves esbuild 0.25.12 and everything else 0.28.2, both past the advisory it was added for (<=0.24.2). Propagated from mantine-base-component#43.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
Propagated from gfazioli/mantine-base-component#43. The global
"esbuild": "^0.28.1"resolution (2026-07-27 security pass) forced esbuild 0.28 onto Vite 6.4.5 (esbuild ^0.25.0), soyarn storybookandstorybook buildfailed with "Transforming destructuring to the configured target environment … is not supported yet". Without it Vite gets esbuild 0.25.12 and everything else 0.28.2, both past the advisory it was added for (<=0.24.2).Dev-only: the published package is unchanged, so no release.
Test plan
storybook buildexits 0 (it failed before)yarn test,yarn buildyarn npm audit --recursive: no esbuild advisorySummary by CodeRabbit