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

[Feature request] Re-export vite/client in @vuepress/bundler-vite #1579

Closed
typed-sigterm opened this issue Jun 24, 2024 · 0 comments · Fixed by #1580
Closed

[Feature request] Re-export vite/client in @vuepress/bundler-vite #1579

typed-sigterm opened this issue Jun 24, 2024 · 0 comments · Fixed by #1580

Comments

@typed-sigterm
Copy link
Contributor

Clear and concise description of the problem

When using @vuepress/bundler-vite, Vite will do things like replacing environment variables. However, with pnpm, I need to manually install vite and write /// command to get correct types of import.meta.env.

Suggested solution

Add packages/bundler-vite/client.d.ts (exports as @vuepress/bundler-vite/client):

/// <reference types="vite/client" />

Alternative

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants