developit / developit/microbundle

Types haven't been bundled by microbundle

未關閉
#1,084 2 則留言 0 個 reaction 已指派 0 人 已被 @rschristian 認領 在 GitHub 檢視
主要語言
JavaScript
星號
8.1k
分支
358
PR 合併指標
30 天內沒有已合併 PR

描述

Microbundle ignores `*.ts` files if they contain only types. Example of the file: https://github.com/XaveScor/signal-components/blob/dff96fd7151db5aae7421059836794a7880c2649/src/types.ts.

### Reproduction:
```
git clone https://github.com/XaveScor/signal-components
git checkout tags/v0.11.0
pnpm install
pnpm build
```

### Expected Result:
`types.d.ts` is included in the `./dist` directory.

### Actual Result:
`types.d.ts` does not exist. Types are broken because we have `./types` imports, but the file is missing.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。