Skip to content

fix(storybook): drop the global esbuild resolution that broke Vite - #72

Merged
gfazioli merged 1 commit into
masterfrom
fix/storybook-esbuild
Nov 6, 2026
Merged

gfazioli merged 1 commit into
masterfrom
fix/storybook-esbuild

Conversation

@gfazioli

@gfazioli gfazioli commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

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), so yarn storybook and storybook build failed 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 build exits 0 (it failed before)
  • yarn test, yarn build
  • yarn npm audit --recursive: no esbuild advisory

Summary by CodeRabbit

  • Chores
    • Updated dependency configuration. This change does not alter any user-facing features or behavior.

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.
@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The esbuild resolution override was removed from the package.json resolutions list. No replacement resolution was added.

Changes: Dependency resolution

Layer / File(s) Summary
Remove esbuild resolution pin
package.json
The resolutions list no longer pins esbuild to ^0.28.1.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Merge Risk: Minimal · up to 49f2c

This dev-only dependency resolution change is reported to fix Storybook build failures and leaves the published package unchanged. No merge-blocking risk was identified.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title describes the removal of the global esbuild resolution and its reported effect on Vite.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: df56dcff-74ee-4dcb-b669-2ed5f4831ab6
Commits

Reviewing files that changed from the base of the PR and between a094819 and 49f2c9b.

Files ignored due to path filters: 1

  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
Files selected for processing: 1

  • package.json
Files with no reviewable changes: 1

  • package.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@gfazioli
gfazioli merged commit dacc27b into master Nov 6, 2026
2 checks passed
@gfazioli
gfazioli deleted the fix/storybook-esbuild branch November 6, 2026 14:08
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