1 parent a959fef commit 5bda245Copy full SHA for 5bda245
1 file changed
lib/AmdMainTemplatePlugin.js
@@ -17,7 +17,7 @@ class AmdMainTemplatePlugin {
17
const mainTemplate = compilation.mainTemplate;
18
19
compilation.templatesPlugin("render-with-entry", (source, chunk, hash) => {
20
- const externals = chunk.modules.filter((m) => m.external);
+ const externals = chunk.getModules().filter((m) => m.external);
21
const externalsDepsArray = JSON.stringify(externals.map((m) =>
22
typeof m.request === "object" ? m.request.amd : m.request
23
));
0 commit comments