Skip to content

fix: nitroV2Plugin compress public assets by default#2112

Open
yinonburgansky wants to merge 1 commit intosolidjs:mainfrom
yinonburgansky:compress-assets
Open

fix: nitroV2Plugin compress public assets by default#2112
yinonburgansky wants to merge 1 commit intosolidjs:mainfrom
yinonburgansky:compress-assets

Conversation

@yinonburgansky
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

Changes

  • match 1.x behavior for easier migration; can still be overridden to false for users who prefer uncompressed files.
  • extract common build test utilities.
  • fix tree shaking tests that were using unreliable regex (didn't account for minification and variable renaming); replace with a unique string identifier for better resilience, and add a complementary test for the tree shaking with side effects case.
  • add vitest ~ alias configuration, as the solid plugin wasn't resolving it in the test environment.

@changeset-bot
Copy link

changeset-bot bot commented Mar 16, 2026

🦋 Changeset detected

Latest commit: 0a4b697

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

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
Copy link

netlify bot commented Mar 16, 2026

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

Name Link
🔨 Latest commit 0a4b697
🔍 Latest deploy log https://app.netlify.com/projects/solid-start-landing-page/deploys/69b88d3a9094e400083a5b0b
😎 Deploy Preview https://deploy-preview-2112--solid-start-landing-page.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 16, 2026

Open in StackBlitz

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

commit: 0a4b697

fixes solidjs#2096
- match `1.x` behavior for easier migration; can still be overridden to false for users who prefer uncompressed files.
- extract common build test utilities.
- fix tree shaking tests that were using unreliable regex (didn't account for minification and variable renaming); replace with a unique string identifier for better resilience, and add a complementary test for the tree shaking with side effects case.
- add vitest `~` alias configuration, as the solid plugin wasn't resolving it in the test environment.
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?]: Solid 2.x nitroV2Plugin missing compressed files in public output

1 participant