Repository navigation
Commit fb6131f
committed
fix(compiler): skip type-only signal imports in nativeReadOptions
Type-only imports (import type { ... } and import { type ... }) from
octane/signals modules were incorrectly enabling native read mode in
nativeReadOptions. This caused native memoization, read-scope wrapping,
and return-JSX compilation for modules with no runtime signal use,
breaking non-DOM renderers.
Add importKind checks consistent with analyzeNativeReadDiagnostics:
- Skip declarations where importKind is 'type'
- Require at least one non-type specifier1 parent 0dcc53c commit fb6131f
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
0 commit comments