Commit ba964a1
Fix React import to work with esModuleInterop: false
Changes React imports from default import syntax to namespace import
syntax in RSCRoute.tsx and RSCProvider.tsx. This fixes TypeScript
compilation errors when esModuleInterop is set to false in tsconfig.
Before: import React, { ... } from 'react'
After: import * as React from 'react'
This is required because @types/react uses 'export =' syntax, which
can only be default-imported when esModuleInterop is enabled.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 21ca217 commit ba964a1
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments