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

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

Merged
merged 2 commits into from
Sep 6, 2022

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Sep 6, 2022

πŸ”— 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.

@danielroe danielroe 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 antfu September 6, 2022 08:02
@danielroe danielroe self-assigned this Sep 6, 2022
@netlify
Copy link

netlify bot commented Sep 6, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 942730c
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/6316ff0488ecba0009c55745

@pi0 pi0 changed the title fix(vite): use already-resolved entry path refactor(vite): reuse resolved server entry from context Sep 6, 2022
@pi0 pi0 merged commit a4fa070 into main Sep 6, 2022
@pi0 pi0 deleted the fix/vite-node-async branch September 6, 2022 08:21
This was referenced Sep 9, 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.
Labels
3.x 🍰 p2-nice-to-have Priority 2: nothing is broken but it's worth addressing vite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants