Skip to content

Commit

Permalink
Merge pull request webpack#7049 from bastimeyer/bugfix/output-globalo…
Browse files Browse the repository at this point in the history
…bject-node-webkit

Fix output.globalObject value in node-webkit
  • Loading branch information
sokra authored Apr 15, 2018
2 parents 0be0d1f + 70d4825 commit 1313300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WebpackOptionsDefaulter.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
switch (options.target) {
case "web":
case "electron-renderer":
case "node-webkit":
return "window";
case "webworker":
return "self";
case "node":
case "async-node":
case "node-webkit":
case "electron-main":
return "global";
default:
Expand Down

0 comments on commit 1313300

Please sign in to comment.