Skip to content

Commit 4e3ed1f

Browse files
committed
Correct Electron built-in module list in 1.x
Correct built-in module list for electron main and renderer process: v0.37.3 document http://electron.atom.io/docs/v0.37.3/
1 parent 8c97e62 commit 4e3ed1f

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

lib/WebpackOptionsApply.js

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,20 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
129129
"electron",
130130
"global-shortcut",
131131
"ipc",
132+
"ipc-main",
132133
"menu",
133134
"menu-item",
134135
"power-monitor",
136+
"power-save-blocker",
135137
"protocol",
138+
"session",
139+
"web-contents",
136140
"tray",
137-
"remote",
138-
"web-view",
139141
"clipboard",
140142
"crash-reporter",
143+
"native-image",
141144
"screen",
142-
"shell",
143-
"native-image"
145+
"shell"
144146
]),
145147
new LoaderTargetPlugin(options.target)
146148
);
@@ -154,22 +156,15 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
154156
new FunctionModulePlugin(options.output),
155157
new NodeTargetPlugin(),
156158
new ExternalsPlugin("commonjs", [
157-
"app",
158-
"auto-updater",
159-
"browser-window",
160-
"content-tracing",
161-
"dialog",
162-
"global-shortcut",
159+
"desktop-capturer",
160+
"electron",
163161
"ipc",
164-
"menu",
165-
"menu-item",
166-
"power-monitor",
167-
"protocol",
168-
"tray",
162+
"ipc-renderer",
169163
"remote",
170-
"web-view",
164+
"web-frame",
171165
"clipboard",
172166
"crash-reporter",
167+
"native-image",
173168
"screen",
174169
"shell"
175170
]),

0 commit comments

Comments
 (0)