-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
feat: expose ssrTransform
to server
#5983
Conversation
For the context, Vitest is a WIP test running powered by Vite (which you probably already know). It uses // for components like Vue, we want to use the client side
// plugins but then covert the code to be consumed by the server
const result = await server.transformRequest(id)
if (!result)
return
return await server.ssrTransform(result.code, result.map, id) |
Marked the feature as experimental so we can merge it in 2.7, hopefully to be released today 🙌🏼 |
Description
I need this in vitest 👀
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).