ai / ai/size-limit

Can't ignore the entry file

オープン
#174 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
6.9k
フォーク
1.8k
平均マージ
44分
マージ済み PR(30日)
1

説明

I have multiple size-limit entry files for server, browser, etc, like this:

```json
[
{
"name": "Server",
"path": "size-limit-entries/server.mjs",
"limit": "2.6 KB",
"ignore": ["./size-limit-entries/server.mjs", "prop-types"]
},
{
"name": "Browser",
"path": "size-limit-entries/browser.mjs",
"limit": "2.6 KB",
"ignore": ["./size-limit-entries/browser.mjs", "prop-types"]
}
]
```

I don't want to include the entry files in the bundle size, as they only serve as a means to cherry pick relevant parts of the API for each size limit test and are not actually published.

For some reason none of these variations in the `ignore` array work:

- `size-limit-entries`
- `size-limit-entries/browser.mjs`
- `./size-limit-entries`
- `./size-limit-entries/browser.mjs`

When using `--why`:

Screen Shot 2020-04-06 at 6 54 49 pm

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。