Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store hooks as property of compilation
This allows reading the hooks more reliably. Using a WeakMap in a closure causes issues if multiple versions of html-webpack-plugin are installed because it requires that plugins that tap into these hooks use the version of this package that is resolved by the webpack config. This may be a common issue in monorepos. Using a global symbol allows any version of `html-webpack-plugin` to resolve the hooks used in the compilation, allows plugins in monorepos to work more seamlessly.
- Loading branch information