-
Notifications
You must be signed in to change notification settings - Fork 629
feat: Add react compiler behind a config #9782
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
Conversation
3ef4416 to
3a3bb56
Compare
c06ee9f to
d16f9f3
Compare
0e8d802 to
a8dc254
Compare
d16f9f3 to
d0eb886
Compare
649ffa1 to
591ad27
Compare
3e51f6d to
8f866cf
Compare
b20cdc1 to
b45e114
Compare
1450f7d to
90f1a59
Compare
b45e114 to
cd74014
Compare
d900124 to
7963bb3
Compare
3640510 to
3f57016
Compare
78dc470 to
11a83ab
Compare
778d9cb to
c878c90
Compare
| "test:e2e": "playwright test", | ||
| "test:e2e:ui": "playwright test --ui", | ||
| "dev": "pnpm run dev:server & pnpm run build:static && pnpm run build:relay && vite", | ||
| "dev": "pnpm run dev:server & pnpm run dev:ui", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Inconsistent React Compiler behavior across environments.
The build script doesn't source .env, so PHOENIX_ENABLE_REACT_COMPILER won't be available to vite.config.mts. This means the React Compiler will always be disabled during production builds, creating inconsistent behavior between development and production environments.
| "test:e2e": "playwright test", | ||
| "test:e2e:ui": "playwright test --ui", | ||
| "dev": "pnpm run dev:server & pnpm run build:static && pnpm run build:relay && vite", | ||
| "dev": "pnpm run dev:server & pnpm run dev:ui", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Inconsistent React Compiler in Dev Modes
The dev:offline and dev:embeddings scripts don't source .env before running vite, so PHOENIX_ENABLE_REACT_COMPILER won't be available. This creates inconsistent behavior where the React Compiler configuration works in dev mode but not in these alternative development modes.
No description provided.