-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
Transpile server code #562
Comments
For context, this issue has been opened due to #560 |
Quoting @nitedani.
I share the sentiment. Although, instead of including vavite in VPS, I currently have a slight preference for making the boilerplates use vavite. I understand that having to use a plethora of tools to get started isn't ideal – the goal in that regard is to build frameworks on top of VPS that are more opinionated and larger in scope. That said, I'll have a closer look at vavite's code and if the hacks it uses don't have negative side effects, I'll consider integrating vavite into VPS. I'll have a look at it after I'm done with the V1 design. |
This comment was marked as off-topic.
This comment was marked as off-topic.
The plan long term was to use HatTip. But, I'm starting to think that, regardless of HatTip, we still need this. Because we don't want to force users to use HatTip. I've heard that there is some discussions to integrate |
|
I use vavite and since the last changes in vitejs debugging backend (vise-plugin-ssr, trpc and express) with sourcemaps works with |
Also https://github.com/szymmis/vite-express. But it uses |
Also https://github.com/egoist/vite-plugin-mix, and in particular @rhildred's interesting approach of using |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Vite's experimental runtime api was just released in the latest beta, might give it a try in the next few days. |
@alessandrojcm FYI we're also experimenting with it at #1342. It's looking promising. Exciting. |
Vite is refactoring its Vite Runtime API design (which they're renaming Vite Environment API), see vitejs/vite#16089. Rough release estimate:
So it's going to take a while until we can finish implementing this. (Progress on Vike's side at PR #1513.) |
Dani made |
By default, your server code isn't processed by Vite:
If you want Vite to process your server code then use one of these:
If you merely want to transpile TypeScript, you can use:
Instead of having to use an extra tool, vike should have a new option
server: './path/to/server/entry.ts'
.Edit:
bundled
/standalone
option, see Trying to do transpiled and bundled standalone server #1165 (which includes an example of how Vite can be configured to bundle everything).The text was updated successfully, but these errors were encountered: