-
Notifications
You must be signed in to change notification settings - Fork 0
Fix issue #670
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
base: main
Are you sure you want to change the base?
Fix issue #670
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,9 +6,6 @@ | |||||||||||||||||||
| "dom.iterable", | ||||||||||||||||||||
| "esnext" | ||||||||||||||||||||
| ], | ||||||||||||||||||||
| "types": [ | ||||||||||||||||||||
| "react/experimental" | ||||||||||||||||||||
| ], | ||||||||||||||||||||
| "allowJs": true, | ||||||||||||||||||||
| "skipLibCheck": true, | ||||||||||||||||||||
| "strict": true, | ||||||||||||||||||||
|
|
@@ -34,7 +31,6 @@ | |||||||||||||||||||
| ".next/types/**/*.ts" | ||||||||||||||||||||
| ], | ||||||||||||||||||||
| "exclude": [ | ||||||||||||||||||||
| "node_modules", | ||||||||||||||||||||
| "../../../**" | ||||||||||||||||||||
| "node_modules" | ||||||||||||||||||||
| ] | ||||||||||||||||||||
|
Comment on lines
33
to
35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removal of monorepo exclude pattern may cause build issues
Suggested change
Prompt To Fix With AIThis is a comment left during a code review.
Path: compiler/apps/playground/tsconfig.json
Line: 33-35
Comment:
**Removal of monorepo exclude pattern may cause build issues**
The `"../../../**"` exclude pattern was intentional — the playground sits at `compiler/apps/playground/` (3 levels deep in the monorepo). This pattern prevents TypeScript from accidentally resolving and type-checking files from the broader React monorepo, which could cause compilation slowdowns or spurious type errors. It should be restored.
```suggestion
"exclude": [
"node_modules",
"../../../**"
]
```
How can I resolve this? If you propose a fix, please make it concise. |
||||||||||||||||||||
| } | ||||||||||||||||||||
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.
Removal of
react/experimentaltypes breaks type coverageThe
"types": ["react/experimental"]configuration was intentionally added to provide TypeScript type definitions for React's experimental APIs (e.g.,useActionState,useOptimistic, and other canary features). The React Compiler playground is specifically designed to work with these experimental APIs. Removing this will cause TypeScript to fall back to the stable React type definitions, potentially losing type coverage for experimental features used in the playground.Prompt To Fix With AI