File tree 2 files changed +2
-2
lines changed
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 {
8
8
constructor ( options ) { }
9
9
10
10
apply ( compiler ) {
11
- compiler . hooks . compilation . tap ( "RuntimeChunkPlugin" , compilation => {
11
+ compiler . hooks . thisCompilation . tap ( "RuntimeChunkPlugin" , compilation => {
12
12
compilation . hooks . optimizeChunksAdvanced . tap ( "RuntimeChunkPlugin" , ( ) => {
13
13
for ( const entrypoint of compilation . entrypoints . values ( ) ) {
14
14
const chunk = entrypoint . getRuntimeChunk ( ) ;
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ module.exports = class SplitChunksPlugin {
176
176
}
177
177
178
178
apply ( compiler ) {
179
- compiler . hooks . compilation . tap ( "SplitChunksPlugin" , compilation => {
179
+ compiler . hooks . thisCompilation . tap ( "SplitChunksPlugin" , compilation => {
180
180
let alreadyOptimized = false ;
181
181
compilation . hooks . unseal . tap ( "SplitChunksPlugin" , ( ) => {
182
182
alreadyOptimized = false ;
You can’t perform that action at this time.
0 commit comments