Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

perf(ssr): disable vite's pre-trasnfroming to improve perf #2574

Merged
merged 3 commits into from
Jan 5, 2022

Conversation

antfu
Copy link
Member

@antfu antfu commented Dec 30, 2021

🔗 Linked issue

In Vite 2.6, it introduced a mechanism to pre-transform the direct imports before the browser requests landed. It could improve the response time of waterflow requests. However, when in SSR, we have our custom logic to handle the externalization, which the pre-transform might start transforming the externalized modules, causing some computation power waste.

Refer to vitest-dev/vitest#229 (comment)

❓ 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 like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@netlify
Copy link

netlify bot commented Dec 30, 2021

✔️ Deploy Preview for nuxt3-docs ready!

🔨 Explore the source changes: 4ddf3c6

🔍 Inspect the deploy log: https://app.netlify.com/sites/nuxt3-docs/deploys/61d5e3d4bf37130008a712e2

😎 Browse the preview: https://deploy-preview-2574--nuxt3-docs.netlify.app

@pi0 pi0 merged commit e9128f3 into main Jan 5, 2022
@pi0 pi0 deleted the perf/vite-pre-transform branch January 5, 2022 18:31
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants