I am writing a webpack plugin that includes an additional file in the kit (using a child compiler). This works great, but now I want to add watch support. The problem is that the included file is potentially dependent on all the files in the main compiler instance, because I am extracting functions from there. Usually this breaks down only into a small subset of files, which actually use some functions provided by the plugin. My idea was to implement clock support using the version flag, which increases every time my plugin needs to compile resources again ... However, the version only changes after all the files from the parent compiler have been compiled. Is there a way to force recovery of the module AFTER the parent files are compiled,but before the assets are released (emit an event in order if I am allowed to request a rebuild of the module there)?
source
share