Skip to content

Commit

Permalink
Add webpack reference to the onBundle() callback
Browse files Browse the repository at this point in the history
  • Loading branch information
j-devel committed Mar 19, 2022
1 parent 94a5040 commit 69b1f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/task-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class BundleTask {

static applyCustom(onBundle, wpConfig) {
const { filename: filenameOrig, library: libraryOrig } = wpConfig.output;
onBundle(wpConfig);
onBundle(wpConfig, webpack);
const { filename, library } = wpConfig.output;

// Update the `Var2EsmPlugin` instance if necessary
Expand Down

0 comments on commit 69b1f5a

Please sign in to comment.