Skip to content

Commit 4018f5a

Browse files
committed
backwards compatibility for atom
1 parent e43f1a4 commit 4018f5a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/WebpackOptionsApply.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
112112
new LoaderTargetPlugin("node-webkit")
113113
);
114114
break;
115+
case "atom":
115116
case "electron":
116117
var NodeTemplatePlugin = require("./node/NodeTemplatePlugin");
117118
var NodeTargetPlugin = require("./node/NodeTargetPlugin");
@@ -140,7 +141,7 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
140141
"screen",
141142
"shell"
142143
]),
143-
new LoaderTargetPlugin("electron")
144+
new LoaderTargetPlugin(options.target)
144145
);
145146
break;
146147
default:

0 commit comments

Comments
 (0)