Skip to content

fix(2.0): niche cases for DCE#2161

Merged
brenelz merged 9 commits into
mainfrom
fix-2160
Jul 13, 2026
Merged

fix(2.0): niche cases for DCE#2161
brenelz merged 9 commits into
mainfrom
fix-2160

Conversation

@lxsmnsyc

@lxsmnsyc lxsmnsyc commented Jun 19, 2026

Copy link
Copy Markdown
Member

Fixes #2160
Fixes #2168

@changeset-bot

changeset-bot Bot commented Jun 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4625a17

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 Jun 19, 2026

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 4625a17
🔍 Latest deploy log https://app.netlify.com/projects/solid-start-landing-page/deploys/6a54ce4afa05f9000868d04b
😎 Deploy Preview https://deploy-preview-2161--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 Jun 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/solidjs/solid-start/@solidjs/start@2161
npm i https://pkg.pr.new/solidjs/solid-start/@solidjs/vite-plugin-nitro-2@2161

commit: 4625a17

@katywings

Copy link
Copy Markdown
Contributor

Lovely fixes <3. Thank you @lxsmnsyc. I am adding a couple tests in a few moments.

@lxsmnsyc

Copy link
Copy Markdown
Member Author

Added a change.

Moved the directives compiler step before Solid's so that the compiler's aggressive DCE can run first.

@katywings

Copy link
Copy Markdown
Contributor

@lxsmnsyc Great addition 👍. I gonna add a test for that case as well tomorrow or on wednesday :).

@katywings

Copy link
Copy Markdown
Contributor

@lxsmnsyc All looking good to me 🎉. I also quickly ran a Nitropage build with this branch and it ran just fine!

@brenelz brenelz merged commit 8fb81e6 into main Jul 13, 2026
10 checks passed
@brenelz brenelz deleted the fix-2160 branch July 13, 2026 11:44
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.

[Bug?]: "invalid server function" when having a server function without a router [Bug?]: Compiler Error for some unused variables

3 participants