AloisSeckar / AloisSeckar/nuxt-spec

CLI error if non-standard syntax encountered

未关闭
#25 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
1
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

Testing automatic installation in one of my project resulted into failure when touching `nuxt.config.ts`

```
Error updating 'nuxt.config.ts':
Casting "ConditionalExpression" is not supported

137 | alias: {
138 | // https://stackoverflow.com/a/50449379/3204544
139 | inferno: (process.env.NODE_ENV !== 'production') ? 'inferno/dist/index.dev.esm.js' : 'inferno/dist/index.esm.js',
^
140 | },
141 | },
142 | },
```

Looks like a limitation of `magicast` in `elrh-cosca` library. And adds up another argument for better AST solution - https://github.com/AloisSeckar/elrh-cosca/issues/1

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。