Skip to content

Commit 027135e

Browse files
committed
Update comments to indicate it works with webpack 4 and 5
1 parent bb7cd85 commit 027135e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ module.exports = function (options, wp, done) {
222222
const fs = compiler.outputFileSystem = cache.mfs;
223223

224224
const assetEmittedPlugin = compiler.hooks
225-
// Webpack 4
225+
// Webpack 4/5
226226
? function (callback) { compiler.hooks.assetEmitted.tapAsync('WebpackStream', callback); }
227227
// Webpack 2/3
228228
: function (callback) { compiler.plugin('asset-emitted', callback); };
@@ -244,7 +244,7 @@ module.exports = function (options, wp, done) {
244244

245245
if (options.watch && !isSilent) {
246246
const watchRunPlugin = compiler.hooks
247-
// Webpack 4
247+
// Webpack 4/5
248248
? callback => compiler.hooks.watchRun.tapAsync('WebpackInfo', callback)
249249
// Webpack 2/3
250250
: callback => compiler.plugin('watch-run', callback);

0 commit comments

Comments
 (0)