Skip to content

Vite watch is slow: transforms all node_modules and recompiles all inputs on every change #20063

Discussion options

You must be logged in to vote

Our application is a Jira add-on/plugin, so our workflow is different from a typical web application. Here's how it works:

  1. The Jira server responds with templates (Velocity templates)
  2. These templates load our JS bundles
  3. We don't have standalone HTML entry points like a typical Vite application would have

It sounds like the backend integration feature may work.
The steps for using vite dev for your case would probably be:

  1. Set server.cors.origin to the backend server origin
  2. Point the script tag to http://localhost:5173/public/component/page/project-navigator/ProjectNavigator.jsx with type="module"
  3. Run vite dev alongside the backend server

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@davidgonzalezvaquero
Comment options

@acelaya
Comment options

@davidgonzalezvaquero
Comment options

@acelaya
Comment options

@davidgonzalezvaquero
Comment options

Comment options

You must be logged in to vote
1 reply
@davidgonzalezvaquero
Comment options

Answer selected by davidgonzalezvaquero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants