vercel/ncc

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

Open

#1,212 创建于 2024年9月10日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (273 fork)batch import
bughelp wanted

仓库指标

Star
 (8,841 star)
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.

贡献者指南