Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: memory leak in TransformNormalModuleFactoryPlugin (#414)
Problem: plugin wraps createLoaderContext without checking if it was already done before. As a result, in a watch mode more and more wrappers get added on top of the function and eat more and more memory. Fixed by saving original function on module instance itself and wrapping saved function instead.
- Loading branch information