-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
configOverride ignored when build: true #734
Comments
Hi! 👋🏻 Thanks for the report. There is no explicit logic that disables config overwrite for build: true, but I guess this is probably related to project references 🤔 When you have |
Probably just leave as is, but clarify the documentation. I do not have multiple project references but I set build: true because I needed to set ‘write-references’ true to get it to spit out the tsBuildInfo caching file, this raises two questions:
1) should I have to set write-references: true to get it to spit out tsBuildInfoFile?
2) does build: true have to be set when write-references is set?
… On Apr 15, 2022, at 16:44, Piotr Oleś ***@***.***> wrote:
Hi! 👋🏻 Thanks for the report. There is no explicit logic that disables config overwrite for build: true, but I guess this is probably related to project references 🤔 When you have build: true, it creates multiple typescript projects, each with its own configuration. I think we overwrite only the entry one (but maybe even this doesn't work? I'm not sure how typescript is handling this).
My point is that it's hard to define how configOverwrite should behave in the case where we have multiple tsconfg.json files. Personally, I would expect that this overwrites only the entry config file, but I guess there are some use-cases, where overwriting all config files would be desired behaviour.
What do you think? What behaviour do you expect?
—
Reply to this email directly, view it on GitHub <#734 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAOSIPYB6R6BUXO2OG3G7TDVFEM6ZANCNFSM5TPYCRDA>.
You are receiving this because you authored the thread.
|
Any more thoughts @piotr-oles ? To help solve this issue I need to understand the design intent points 1) and 2) above |
According to TypeScript docs, it should be possible to spit out tsbuildinfo with |
I'll mention I'm seeing this in an Aside, it would be nice if it could override a multi project setup but understandably maybe not worth the investment. |
Current behavior
configOverride ignored when build:true
Expected behavior
configOverride should either work when build:true or the documentation should more clearly explain why not. Happy to submit a PR for either case once this is clarified. You accepted a documentation PR from me the other day.
Steps to reproduce the issue
Clone the below repo. Try running
npm start
withbuild
inwebpack.config.js
set to both true and false. When build: false the plugin correctly detects the configOverride and does incremental compilation.Issue reproduction repository
https://github.com/whamtet/template-ts-webpack
Environment
The text was updated successfully, but these errors were encountered: