From 70d48256d7031e5cd557f4238a2ee9abbbab32b3 Mon Sep 17 00:00:00 2001 From: bastimeyer Date: Sat, 14 Apr 2018 21:27:24 +0200 Subject: [PATCH] Fix output.globalObject value in node-webkit --- lib/WebpackOptionsDefaulter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebpackOptionsDefaulter.js b/lib/WebpackOptionsDefaulter.js index 6559d125076..1cd910011af 100644 --- a/lib/WebpackOptionsDefaulter.js +++ b/lib/WebpackOptionsDefaulter.js @@ -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: