Skip to content

Commit

Permalink
add webpack 5 comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jun 7, 2018
1 parent 5d05136 commit f28bb4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/web/JsonpMainTemplatePlugin.js
Expand Up @@ -29,6 +29,7 @@ class JsonpMainTemplatePlugin {
return false;
};

// TODO webpack 5, no adding to .hooks, use WeakMap and static methods
["jsonpScript", "linkPreload", "linkPrefetch"].forEach(hook => {
if (!mainTemplate.hooks[hook]) {
mainTemplate.hooks[hook] = new SyncWaterfallHook([
Expand Down

0 comments on commit f28bb4e

Please sign in to comment.