Skip to content

fix(react): $RefreshSig$ is not defined with NODE_ENV=production vite dev#1283

Open
sapphi-red wants to merge 1 commit into
mainfrom
fix/react-node-env-production-dev
Open

fix(react): $RefreshSig$ is not defined with NODE_ENV=production vite dev#1283
sapphi-red wants to merge 1 commit into
mainfrom
fix/react-node-env-production-dev

Conversation

@sapphi-red

Copy link
Copy Markdown
Member

Description

When running vite dev with NODE_ENV=production, the app errored with $RefreshSig$ is not defined (stackblitz).

This is because oxc.jsx.refresh is set to true but the preamble injection was skipped. This PR fixes that condition.

@sapphi-red sapphi-red changed the title fix(react):$RefreshSig$ is not defined with NODE_ENV=production vite dev fix(react): $RefreshSig$ is not defined with NODE_ENV=production vite dev Jul 14, 2026
@sapphi-red sapphi-red linked an issue Jul 14, 2026 that may be closed by this pull request
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blank Page on creating a New Project

1 participant