Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
/frameworkPublic archive

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

Merged
pi0 merged 1 commit into
mainfrom
fix/single-extend
Jul 15, 2022
Merged

fix(kit): only call viteExtendConfig callback once if possible#5929
pi0 merged 1 commit into
mainfrom
fix/single-extend

Conversation

@danielroe

Copy link
Copy Markdown
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 requested a review from pi0July 15, 2022 20:58
@danielroedanielroe self-assigned this Jul 15, 2022
@netlify

netlifyBot commented Jul 15, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs canceled.

NameLink
🔨 Latest commit987cb1f
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/62d1d4e8fbaf8b0008c1d166

Comment threadpackages/kit/src/build.ts
pi0
pi0 approved these changes Jul 15, 2022

@pi0pi0 left a comment

Copy link
Copy Markdown
Member

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 mainJul 15, 2022
@pi0
pi0 deleted the fix/single-extend branch July 15, 2022 21:34
@pi0pi0 mentioned this pull request Jul 15, 2022
Sign up for freeto 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.

2 participants

@danielroe@pi0