[Question] Does SSR with Vue really need a build? (i.e. Handle component files like Ts-Node)
See original GitHub issueSince SSR is essentially just rendering a “snapshot” of the initial state of the HTML generated by components, shouldn’t it be possible to handle component files in a similar way to how ts-node deals with .ts
files?
Essentially we could use require.extensions to convert .vue
files to es modules, add a .ts extension and then handle them with ts-node
… giving us the ability to use Vue components without the hassle of a build.
I know, for some reason, Node says not to use this but it’s a critically useful feature when implemented carefully (as with ts-node
)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Server-Side Rendering (SSR) - Vue.js
Vue.js is a framework for building client-side applications. ... using SSR for your app, the first question you should ask is whether you...
Read more >Vue 3 Server Side Rendering (SSR)
A guide to building and running a server-side rendered Vue 3 application in a Node environment with routing, state, and meta.
Read more >Vue SSR without node - Stack Overflow
Is it possible for me to build my components (using webpack etc), upload them to the server - and have them pre-populated server...
Read more >Basic Server Side Rendering with Vue.js and Express
Learn how to implement rudimentary server-side for your Vue.js apps. ... Server side rendering (SSR) is one of those things that's long been ......
Read more >Fullstack TypeScript: Node.js + React SSR | Nils Mehlhorn
Our source code will consist out of TypeScript files which we'll compile ... You'll also want to install type definitions for Node.js and ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@arpowers Very interesting idea. It could be useful at least for development in order to have a local SSR environment that doesn’t require build watching, like what you mentioned in another issue.
In production, however, I think a build would still be better at least for short-lived environments such as serverless functions or workers. Maybe it could be fine for Node servers 🤔
Closing for #1290