Skip to content

Commit dd0cea7

Browse files
committed
Merge pull request webpack#2273 from chentsulin/patch-2
Correct Electron built-in module list
2 parents 20bfc2e + 7a8743b commit dd0cea7

1 file changed

Lines changed: 8 additions & 17 deletions

File tree

lib/WebpackOptionsApply.js

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,16 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
133133
"menu",
134134
"menu-item",
135135
"power-monitor",
136+
"power-save-blocker",
136137
"protocol",
138+
"session",
139+
"web-contents",
137140
"tray",
138-
"remote",
139-
"web-view",
140-
"web-frame",
141141
"clipboard",
142142
"crash-reporter",
143+
"native-image",
143144
"screen",
144-
"shell",
145-
"native-image"
145+
"shell"
146146
]),
147147
new LoaderTargetPlugin(options.target)
148148
);
@@ -156,24 +156,15 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
156156
new FunctionModulePlugin(options.output),
157157
new NodeTargetPlugin(),
158158
new ExternalsPlugin("commonjs", [
159-
"app",
160-
"auto-updater",
161-
"browser-window",
162-
"content-tracing",
163-
"dialog",
159+
"desktop-capturer",
164160
"electron",
165-
"global-shortcut",
166161
"ipc",
167162
"ipc-renderer",
168-
"menu",
169-
"menu-item",
170-
"power-monitor",
171-
"protocol",
172-
"tray",
173163
"remote",
174-
"web-view",
164+
"web-frame",
175165
"clipboard",
176166
"crash-reporter",
167+
"native-image",
177168
"screen",
178169
"shell"
179170
]),

0 commit comments

Comments
 (0)