Skip to content

Commit c1ba099

Browse files
committed
Add comment
1 parent 7569e77 commit c1ba099

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/DojoAMDMainTemplatePlugin.js

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ module.exports = class DojoAMDMainTemplatePlugin {
133133
buf.push(" window:{value:loaderScope},");
134134
buf.push(" global:{value:loaderScope}");
135135
buf.push("});");
136+
// Remove evidence of any existing AMD loader or else the Dojo loader won't initialize properly.
136137
buf.push("loaderScope.define = loaderScope.require = undefined");
137138

138139
const dojoLoaderModule = this.compilation.modules.find((module) => { return module.rawRequest === this.embeddedLoaderFilename;});

0 commit comments

Comments
 (0)