File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ module.exports = class RuntimeChunkPlugin {
88 constructor ( options ) { }
99
1010 apply ( compiler ) {
11- compiler . hooks . compilation . tap ( "RuntimeChunkPlugin" , compilation => {
11+ compiler . hooks . thisCompilation . tap ( "RuntimeChunkPlugin" , compilation => {
1212 compilation . hooks . optimizeChunksAdvanced . tap ( "RuntimeChunkPlugin" , ( ) => {
1313 for ( const entrypoint of compilation . entrypoints . values ( ) ) {
1414 const chunk = entrypoint . getRuntimeChunk ( ) ;
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ module.exports = class SplitChunksPlugin {
176176 }
177177
178178 apply ( compiler ) {
179- compiler . hooks . compilation . tap ( "SplitChunksPlugin" , compilation => {
179+ compiler . hooks . thisCompilation . tap ( "SplitChunksPlugin" , compilation => {
180180 let alreadyOptimized = false ;
181181 compilation . hooks . unseal . tap ( "SplitChunksPlugin" , ( ) => {
182182 alreadyOptimized = false ;
You can’t perform that action at this time.
0 commit comments