Skip to content

build: only apply build output customisation to client build#806

Merged
antfu merged 1 commit intomainfrom
fix/chunk-output
Mar 13, 2025
Merged

build: only apply build output customisation to client build#806
antfu merged 1 commit intomainfrom
fix/chunk-output

Conversation

@danielroe
Copy link
Member

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Nuxt has switched to use preserveModules for Vite server build, meaning that manual chunks won't work.

I will likely revert this for this reason but it's probably safer only to customise the vite client chunks.

@cloudflare-workers-and-pages
Copy link

Deploying nuxt-devtools with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2540937
Status: ✅  Deploy successful!
Preview URL: https://25ae50f3.nuxt-devtools.pages.dev
Branch Preview URL: https://fix-chunk-output.nuxt-devtools.pages.dev

View logs

@antfu antfu merged commit 68df38e into main Mar 13, 2025
2 of 3 checks passed
@antfu antfu deleted the fix/chunk-output branch March 13, 2025 04:22
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.

2 participants