Skip to content

Commit 5c501e5

Browse files
chore: fixed the changes requested in the PR review
1 parent 1acff22 commit 5c501e5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/groups/AdvancedGroup.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ class AdvancedGroup extends GroupHelper {
4343
// }
4444
// }
4545
resolveOptions() {
46-
const { args } = this;
47-
const options = this.opts.options;
46+
const {
47+
args,
48+
opts: { options },
49+
} = this;
50+
4851
if (args.hot) {
4952
const { HotModuleReplacementPlugin } = require('webpack');
5053
const hotModuleVal = new HotModuleReplacementPlugin();
@@ -60,7 +63,8 @@ class AdvancedGroup extends GroupHelper {
6063
if (options && options.plugins) {
6164
options.plugins.unshift(prefetchVal);
6265
} else {
63-
options.plugins = [prefetchVal];
66+
// Currently the Plugin function is not functional -> https://github.com/webpack/webpack-cli/pull/1140#discussion_r376761359
67+
// options.plugins = [prefetchVal];
6468
}
6569
}
6670
if (args.plugin) {

0 commit comments

Comments
 (0)