-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
🙋 feature request
With typescript 3.0.0 there's now something called "Project reference". It basically links multiple ts packages together in mono-repository. And build them in order in a single tsc
call.
https://www.typescriptlang.org/docs/handbook/project-references.html
Faster build time, cool and all. But it requires a custom flag to tsc
: tsc -b
🤔 Expected Behavior
Parcel detects that there's project reference activated and pass -b
flag
😯 Current Behavior
-b
flag isn't passed. Therefore dependencies are not built. Leading to
Cannot resolve dependency "my-dependency"
💁 Possible Solution
If the tsconfig.json
contains references
field, add -b
flag
As a workaround, we can manually call tsc -w -b
on another terminal. But then that's the equivalent of not using parcel
🔦 Context
Simply setting up a project with "Project references".
💻 Examples
WIP