Skip to content

[OGUI-1939] Add Vite dev server and HMR integration - #3701

Open
isaachilly wants to merge 1 commit into
feature/FRM/OGUI-1936/csp-extra-connect-srcfrom
feature/ILG/OGUI-1939/vite-dev-server
Open

isaachilly wants to merge 1 commit into
feature/FRM/OGUI-1936/csp-extra-connect-srcfrom
feature/ILG/OGUI-1939/vite-dev-server

Conversation

@isaachilly

@isaachilly isaachilly commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

I have JIRA issue created

  • branch and/or PR name(s) includes JIRA ID
  • issue has "Fix version" assigned
  • issue "Status" is set to "In review"
  • PR labels are selected
  • FLP integration tests were ran successful

Ticket:

Integrate the Vite development server into ILG and fix any compatibility issues. Frontend changes can then show up in the browser straight away with no rebuild or reload.

Code:

When NODE_ENV= development, the frontend is served not as the Vite dist/ but through Vite middleware with the HMR WebSocket live as well.
/api/* skip the Vite middleware
Root view is mounted through a reference so that Vite's HMR can swap in a new view tree and keep old model state.
Use node watch instead of nodemon.

Reviewer:

Requires Framework release as it depends on the extraConnectSrc for Vite's HMR to be allowed by our CSP.

@isaachilly
isaachilly added this pull request to stack #3702 October 23, 2026 14:51
@isaachilly isaachilly changed the title [OGUI-1939] Add Vite dev server and HMR integrationB [OGUI-1939] Add Vite dev server and HMR integration Oct 23, 2026
@isaachilly isaachilly self-assigned this Oct 23, 2026
@isaachilly
isaachilly force-pushed the feature/ILG/OGUI-1939/vite-dev-server branch from 8add018 to 74ca3e5 Compare November 10, 2026 15:45
@isaachilly
isaachilly force-pushed the feature/ILG/OGUI-1939/vite-dev-server branch from 74ca3e5 to cddc326 Compare November 10, 2026 15:59
@isaachilly
isaachilly marked this pull request as ready for review November 11, 2026 07:51
@isaachilly
isaachilly requested a review from graduta as a code owner November 11, 2026 07:51
@isaachilly
isaachilly removed this pull request from stack #3702 November 11, 2026 16:55
@isaachilly
isaachilly added this pull request to stack #3734 November 11, 2026 16:56
Comment thread InfoLogger/src/index.js

// Dev only: swap in the new view tree on edit and keep model state; stripped from the prod build
if (import.meta.hot) {
import.meta.hot.accept('./view.js', (newModule) => {
@isaachilly
isaachilly force-pushed the feature/ILG/OGUI-1939/vite-dev-server branch from cddc326 to 996a43c Compare November 11, 2026 18:58

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants