Commit 7395379
fix: 修复 script-setup-compiler 中 formatCodeFrame 不是函数的报错
将 @babel/code-frame 的导入方式从默认导出改为具名导出 codeFrameColumns,
并更新调用签名以传入 node.loc 对象。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 331b6e0 commit 7395379
1 file changed
Lines changed: 3 additions & 5 deletions
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
| 96 | + | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
103 | | - | |
104 | | - | |
| 102 | + | |
105 | 103 | | |
106 | 104 | | |
107 | 105 | | |
| |||
0 commit comments