Skip to content

fix: restore the dev toolbar's optimizeDeps entries dropped in the Vite rewrite - #2282

Draft
adipascu wants to merge 1 commit into
solidjs:mainfrom
adipascu:fix-dev-toolbar-cjs-deps
Draft

fix: restore the dev toolbar's optimizeDeps entries dropped in the Vite rewrite#2282
adipascu wants to merge 1 commit into
solidjs:mainfrom
adipascu:fix-dev-toolbar-cjs-deps

Conversation

@adipascu

@adipascu adipascu commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Addresses an existing open issue: fixes #000
  • Tests for the changes have been added (for bug fixes / features)

What is the current behavior?

With the dev toolbar enabled, every dev page load throws:

The requested module '/@fs/.../source-map-js/source-map.js' does not provide an export named 'SourceMapConsumer'

source-map-js and error-stack-parser are CommonJS with neither an exports nor a module field, so Vite serves them untransformed unless they are pre-bundled. ErrorBoundary imports DevToolbar statically, so this fires on healthy pages rather than only on errors.

This is a v2 regression. #1231 added both to optimizeDeps in 2024 and every published v1 still carries it. The v2 src/config/index.ts is a rewrite that never did, so every v2 release is affected, 2.0.0-alpha.0 through 2.0.0.

What is the new behavior?

Both are pre-bundled again, on the client environment, gated on devOverlay.

Other information

The @solidjs/start > prefix is required. Both are dependencies of @solidjs/start rather than of the app, so a bare specifier does not resolve from the project root under pnpm and Vite skips the entry silently.

Draft because you may prefer to drop the CommonJS dependencies from the toolbar instead.

@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d57077a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@solidjs/start Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploy Preview for solid-start-landing-page ready!

Name Link
🔨 Latest commit d57077a
🔍 Latest deploy log https://app.netlify.com/projects/solid-start-landing-page/deploys/6a7276e3fc0e950008c02f59
😎 Deploy Preview https://deploy-preview-2282--solid-start-landing-page.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented Aug 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@solidjs/start@2282

commit: d57077a

@adipascu
adipascu force-pushed the fix-dev-toolbar-cjs-deps branch from 40e5e97 to 83eb0b4 Compare August 4, 2026 19:34
@adipascu
adipascu force-pushed the fix-dev-toolbar-cjs-deps branch from 83eb0b4 to c2ed103 Compare August 4, 2026 23:14
@adipascu adipascu changed the title fix: pre-bundle the dev toolbar's CommonJS dependencies fix: restore the dev toolbar's optimizeDeps entries dropped in the Vite rewrite Aug 4, 2026
@adipascu
adipascu force-pushed the fix-dev-toolbar-cjs-deps branch from c2ed103 to d57077a Compare August 4, 2026 23: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.

1 participant