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

refactor(vite): reuse resolved server entry from context - #7268

Merged
pi0 merged 2 commits into
mainfrom
fix/vite-node-async
Sep 6, 2022
Merged

refactor(vite): reuse resolved server entry from context#7268
pi0 merged 2 commits into
mainfrom
fix/vite-node-async

Conversation

@danielroe

@danielroedanielroe commented Sep 6, 2022

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

We are already resolving the entrypoint for the app, so I think we can remove this extra code. I see that the .mjs extension by default in vite node creation was added to fix a bug, so instead I'm moving that logic to the vite server creation so we can share that path (for example) in warming up the app. I'm not sure this makes a difference, but thought it would be better to keep logic central.

📝 Checklist

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

@danielroedanielroe added vite 🍰 p2-nice-to-have Priority 2: nothing is broken but it's worth addressing labels Sep 6, 2022
@danielroe
danielroe requested a review from antfuSeptember 6, 2022 08:02
@danielroedanielroe self-assigned this Sep 6, 2022
@netlify

netlifyBot commented Sep 6, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs canceled.

NameLink
🔨 Latest commit942730c
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/6316ff0488ecba0009c55745

pi0
pi0 approved these changes Sep 6, 2022
@pi0pi0 changed the title fix(vite): use already-resolved entry pathrefactor(vite): reuse resolved server entry from contextSep 6, 2022
@pi0
pi0 merged commit a4fa070 into mainSep 6, 2022
@pi0
pi0 deleted the fix/vite-node-async branch September 6, 2022 08:21
This was referenced Sep 9, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3.x🍰 p2-nice-to-havePriority 2: nothing is broken but it's worth addressingvite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@danielroe@pi0