vercel/ncc

Build fails with `composite: true` in `tsconfig.json`

開放

#1,212 建立於 2024年9月10日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (273 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (8,841 顆星)
PR 合併指標
 (平均合併 31天 15小時) (30 天內合併 7 個 PR)

描述

I'm not sure if this is as designed or a bug. Any help is appreciated!

I have a npm workspace that uses TypeScript. All the packages have composite: true so they can be consumed by other packages using TypeScript references. When I try to use ncc to build one of the packages. the building fails. It succeeds if I set composite to false.

See the reproduction example in https://github.com/chubei-urus/ncc-demo.

貢獻者指南