Skip to content

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

Open
isaachilly wants to merge 3 commits into
improv/FRM/OGUI-1958/deprecate-allowIframeCspfrom
feature/ILG/OGUI-1939/vite-dev-server
Open

isaachilly wants to merge 3 commits into
improv/FRM/OGUI-1958/deprecate-allowIframeCspfrom
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 Dismissed
@isaachilly
isaachilly force-pushed the feature/ILG/OGUI-1939/vite-dev-server branch from cddc326 to 996a43c Compare November 11, 2026 18:58
@isaachilly
isaachilly force-pushed the feature/ILG/OGUI-1939/vite-dev-server branch 2 times, most recently from 020a72f to bd4730b Compare November 19, 2026 14:12
@isaachilly
isaachilly force-pushed the feature/ILG/OGUI-1939/vite-dev-server branch 2 times, most recently from 8696023 to 1ec76a9 Compare November 19, 2026 15:20
@isaachilly
isaachilly removed this pull request from stack #3734 November 19, 2026 15:23
@isaachilly
isaachilly changed the base branch from feature/FRM/OGUI-1936/csp-extra-connect-src to improv/FRM/OGUI-1958/deprecate-allowIframeCsp November 19, 2026 15:25
@isaachilly
isaachilly added this pull request to stack #3745 November 19, 2026 15:25
@isaachilly
isaachilly force-pushed the feature/ILG/OGUI-1939/vite-dev-server branch from 1ec76a9 to e4e9369 Compare November 19, 2026 18:51
@isaachilly
isaachilly force-pushed the feature/ILG/OGUI-1939/vite-dev-server branch from 921bec3 to 1798331 Compare November 20, 2026 13:33
@isaachilly
isaachilly force-pushed the feature/ILG/OGUI-1939/vite-dev-server branch from 1798331 to 20804eb Compare November 20, 2026 14:54
@isaachilly
isaachilly removed this pull request from stack #3745 November 20, 2026 14:56
@isaachilly
isaachilly added this pull request to stack #3747 November 20, 2026 14: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