vercel/ncc

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

Open

#1 212 ouverte le 10 sept. 2024

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (273 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (8 841 stars)
Métriques de merge PR
 (Merge moyen 31j 15h) (7 PRs mergées en 30 j)

Description

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.

Guide contributeur