ai / ai/size-limit

Better error message if file is missing

未关闭
#221 6 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
6.9k
派生
1.8k
平均合并
44 分钟
30 天内合并 PR
1

描述

It took me a while to realize what was wrong: the file I tried to test was missing, because I forgot to build my library before I ran `npm size-limit`.

I got following error message:
```
✖ Adding to empty webpack project
ERROR WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
```

It would be a nice UX improvements when the error could be catched and a "human-readable" error message would be displayed instead. Something like: "Could not test `{{name}}` because file '{{path}}' is missing"

used package-versions:
```
@size-limit/preset-app: ^4.10.2
@size-limit/webpack: 4.10.2
size-limit: 4.10.2
```

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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