-
-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification on Project references with webpack watch #846
Comments
@andrewbranch what's your view on this scenario? |
Not sure if this matters, but I'm using path aliases in my root ./tsconfig.json
...
"baseUrl": ".",
"paths": {
"@lib/*": ["lib/*"]
}
... But I've done some testing and changed some of imports to regular imports, but there seems to be no difference. |
Hm, interesting... this sounds like good justification for building the ability to recompile upstream projects into ts-loader, where we’ll have pretty tight control over which files are getting watched. I think the |
Yeah sounds completely reasonable @andrewbranch! Actually @jordond if you wanted to submit a docs PR suggesting this as an interim solution that might be a good idea. Doubtless other people are attempting similar and so sharing your workaround seems like it could be beneficial. Thanks for posting it! |
See #851 |
TypeScript 3.3 supports incremental build with composite projects |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing as stale. Please reopen if you'd like to work on this further. |
@jordond Was there any resolution to this? |
I'm looking for clarification on how to run webpack --watch with TS project references.
I followed the instructions in the README, and added
WatchIgnorePlugin
targeting.js
and.d.ts
files.Now when I run
webpack --watch
and in a seperate terminal runtsc --build --watch
, and make a change to one of the dependents, webpack never rebuilds because it's ignoring the compiled outputs.So I'm just wondering the proper way to watch the referenced projects, and have webpack rebuild.
If I remove the WatchIgnore plugin, then webpack will rebuild multiple times, only stopping when
tsc
has finished building the changes. I have tried offseting this by addingand adjusting the timeout, but it's more of a hack and isn't guarenteed to only reload once.
The text was updated successfully, but these errors were encountered: