Skip to content

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

Merged
patak-cat merged 1 commit into
mainfrom
fix-bundled-types
Mar 9, 2023
Merged

fix(types): avoid resolve.exports types for bundling#12346
patak-cat merged 1 commit into
mainfrom
fix-bundled-types

Conversation

@bluwy
Copy link
Copy Markdown
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
@bolt-new-by-stackblitz
Copy link
Copy Markdown

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

@patak-cat patak-cat merged commit 6b40f03 into main Mar 9, 2023
@patak-cat patak-cat deleted the fix-bundled-types branch March 9, 2023 09:40
@patak-cat
Copy link
Copy Markdown
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.

2 participants