Commit e6aeb22
fix: use 'import type' syntax for type-only imports
microbundle's babel parser (@babel/parser@7.29.2) doesn't support
the inline 'type' modifier in destructured imports (e.g.
'import {type Foo} from ...'). Replace with separate
'import type { Foo } from ...' statements which are supported.
Fixes the release/publish-npm CI step that was failing on every
push to main with:
SyntaxError: Unexpected token, expected "," (1:18)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0949b15 commit e6aeb22
3 files changed
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
0 commit comments