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

fix(kit): only call viteExtendConfig callback once if possible #5929

Merged
merged 1 commit into from Jul 15, 2022

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

πŸ“š Description

There's an outstanding issue with kit RC 5 that may break plugins that rely on being shared between client + server vite configs. (see unocss/unocss#1276 for an upstream hotfix). This PR ensures that if client/server flags aren't set, we will call the function only once.

πŸ“ Checklist

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

@danielroe danielroe added the kit label Jul 15, 2022
@danielroe danielroe requested a review from pi0 July 15, 2022 20:58
@danielroe danielroe self-assigned this Jul 15, 2022
@netlify
Copy link

netlify bot commented Jul 15, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 987cb1f
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62d1d4e8fbaf8b0008c1d166

Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as workaround. To discuss later about possible behavior changes for client+server mode.

@pi0 pi0 merged commit a54925f into main Jul 15, 2022
@pi0 pi0 deleted the fix/single-extend branch July 15, 2022 21:34
@pi0 pi0 mentioned this pull request Jul 15, 2022
@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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants