question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is your feature request related to a problem? Please describe.

Vite 2.0 beta doesn’t seem to have any sort of SSR solution included, I assume it’s still in development and things might catch up later?

Describe the solution you’d like

A new transformRequest API to load and transform a URL and get the result that is optimized for server:

transformRequest(url, { ssr: true })

Plugins should also be able to tell if it’s requesting the build for server.

Describe alternatives you’ve considered

No other solution is available, maybe I’m missing something.

Additional context

Trying to build something like Nuxt.js using Vite, SSR in dev is necessary.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

20reactions
yyx990803commented, Jan 3, 2021

Yes, this is on the roadmap, just don’t want to finalize the API before I get a working prototype running on top of it.

FWIW, you can already use the build JavaScript API to bundle a route on the fly (with tweaked rollupOptions).

18reactions
yyx990803commented, Jan 2, 2021

@arpowers I’ll pay attention to it when I think it’s time. This is open source and you are not paying me money to prioritize things you want.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server-Side Rendering - Vite
When running SSR, a dependency that provides CommonJS builds can be "externalized" from Vite's SSR transform / module system to speed up both...
Read more >
Server-side rendering (SSR) - Lit.dev
Server-side rendering (SSR) is a technique for generating and serving the HTML of your components, including shadow DOM and styles, before their JavaScript ......
Read more >
Server-Side-Rendering Renaissance - Daily.dev
Dec 17, 2020 ... This technique is called server-side-rendering (SSR). ... The hybrid model, or as I love to call it, SSR 2.0,...
Read more >
Server-Side Rendering (SSR) - Vue.js
What is SSR? #. Vue.js is a framework for building client-side applications. By default, Vue components produce and manipulate DOM in the browser...
Read more >
Server-side rendering (SSR) with Angular Universal
To start rendering your application with Universal on your local system, use the following command. content_copy npm run dev:ssr. Open a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found