Repository navigation
Commit 091dd1d
committed
fix(cli): strip comments before checking type-only import specifiers
A comment inside a named import clause (e.g. `import { type A, // note\ntype B } from 'octane'`) would produce a non-type fragment after comma-splitting, causing `importsOctaneAtRuntime` to misclassify a fully type-erased import as runtime. Strip line and block comments from the clause content before splitting.1 parent f4990f4 commit 091dd1d
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
0 commit comments