Skip to content

Commit

Permalink
Remove deprecated property usage
Browse files Browse the repository at this point in the history
The deprecation warning appears to cause build failures in some cases.
  • Loading branch information
asmundg committed Jun 25, 2017
1 parent a959fef commit 5bda245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AmdMainTemplatePlugin.js
Expand Up @@ -17,7 +17,7 @@ class AmdMainTemplatePlugin {
const mainTemplate = compilation.mainTemplate;

compilation.templatesPlugin("render-with-entry", (source, chunk, hash) => {
const externals = chunk.modules.filter((m) => m.external);
const externals = chunk.getModules().filter((m) => m.external);
const externalsDepsArray = JSON.stringify(externals.map((m) =>
typeof m.request === "object" ? m.request.amd : m.request
));
Expand Down

0 comments on commit 5bda245

Please sign in to comment.