Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): avoid resolve.exports types for bundling #12346

Merged
merged 1 commit into from Mar 9, 2023

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Mar 9, 2023

Description

Avoid resolve.exports types when bundling types, this causes tsc errors downstream as Vite's types is importing from resolve.exports (which is a dev dep).

This was introduced from #7770

Ideally we would vendor resolve.exports types like the src/types convention, but I found the types written by resolve.exports when vendored caused more errors. So I went with this simpler fix.

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@bluwy bluwy added the p4-important Violate documented behavior or significantly improves performance (priority) label Mar 9, 2023
@stackblitz
Copy link

stackblitz bot commented Mar 9, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev patak-dev merged commit 6b40f03 into main Mar 9, 2023
@patak-dev patak-dev deleted the fix-bundled-types branch March 9, 2023 09:40
@patak-dev
Copy link
Member

ecosystem-ci run after this PR here https://github.com/vitejs/vite-ecosystem-ci/actions/runs/4373070250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p4-important Violate documented behavior or significantly improves performance (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants