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

perf(vite): do not resolve module field for packages#2636

Merged
pi0 merged 5 commits intomainfrom
pref/vite-resolve-fields
Jan 11, 2022
Merged

perf(vite): do not resolve module field for packages#2636
pi0 merged 5 commits intomainfrom
pref/vite-resolve-fields

Conversation

@antfu
Copy link
Copy Markdown
Member

@antfu antfu commented Jan 7, 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

https://github.com/vitejs/vite/blob/04016df8beb7110ad2087ada8e1abbefdbd70254/packages/vite/src/node/constants.ts#L3-L7

We have confirmed this works for Vitest and sloved many issues we had.

📝 Checklist

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

@netlify
Copy link
Copy Markdown

netlify bot commented Jan 7, 2022

✔️ Deploy Preview for nuxt3-docs ready!

🔨 Explore the source changes: e0ca661

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

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

Comment thread packages/vite/src/server.ts Outdated
Co-authored-by: pooya parsa <pyapar@gmail.com>
Comment thread packages/bridge/src/vite/server.ts Outdated
Comment thread packages/bridge/src/vite/server.ts
Comment thread packages/vite/src/server.ts
@pi0 pi0 merged commit a2e2e04 into main Jan 11, 2022
@pi0 pi0 deleted the pref/vite-resolve-fields branch January 11, 2022 19:37
@pi0 pi0 restored the pref/vite-resolve-fields branch January 12, 2022 09:34
@pi0
Copy link
Copy Markdown
Member

pi0 commented Jan 12, 2022

Changes temporary reverted because of regression discussed in nuxt/nuxt#13196

@antfu
Copy link
Copy Markdown
Member Author

antfu commented Jan 12, 2022

Ah sorry for that. I think it also requires some additional logic to interop the default, I will include that in the upcoming refactor of using on-demand module evaluation

danielroe added a commit that referenced this pull request Jan 13, 2022
danielroe added a commit that referenced this pull request Jan 17, 2022
@antfu antfu deleted the pref/vite-resolve-fields branch February 18, 2022 05:40
@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