-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Watch Mode: Do we really need full config file read and update on package json change #48315
Comments
To restate what I said in the other thread for anyone who comes to this issue: none of the |
It still does not need config file read which is what ConfigFileProgramReloadLevel.Full does. It just needs normal program update.. Change in package.hson is not going to affect what files are root file names and options.? Even though package.json change did affect before the node12 , normally package.json is replaced by npm install. Our module resolution failed lookup watches covered those scenarios (more or less) as most of the time it meant change in files as well.. |
Ahhh, probably not, yeah. At least I don't think any package settings will affect the root files calculated by build, just because build seems to ignore the |
not setting config file reload is equivalent to creating new program with updated things. |
This seems incorrect.. Full Reload means read config file again to calculate file names.. Why do we need to do that for package.json changes.
Also changesAffectResolution seems very unoptimized way of saying resolve all modules again. Need smarter way to invalidate resolutions.. Esp when someone is not using the node12+ stuff.. looks like every npm install will be problematic? (it many times spans across multiple updates if its many packages)
Originally posted by @sheetalkamat in #44935 (comment)
The text was updated successfully, but these errors were encountered: