In one of my loaders, I need to know parents/dependants that the current module (handled by loader) was requested by. For this in webpack4 I used a hacky way to do this with access to this._module.reasons, but in webpack 5 reasons prop does not exist on _module object (which is a too deprecated prop). So how the actual task of getting requested parents from within loader may be accomplished in Webpack 5?
In one of my loaders, I need to know parents/dependants that the current module (handled by loader) was requested by. For this in webpack4 I used a hacky way to do this with access to
this._module.reasons, but in webpack 5reasonsprop does not exist on_moduleobject (which is a too deprecated prop). So how the actual task of getting requested parents from within loader may be accomplished in Webpack 5?