Skip to content

Commit

Permalink
Fix an error in DojoAMDRuntimeModule
Browse files Browse the repository at this point in the history
Fixes #376
  • Loading branch information
dpwatrous committed Sep 25, 2023
1 parent 5324894 commit 787a124
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/DojoAMDRuntimeModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class DojoAMDRuntimeModule extends RuntimeModule {
*/
generate() {
const pluginProps = getPluginProps(this.compilation.compiler);
if (!pluginProps) {
return;
}
const djProp = `__webpack_require__.${this.options.requireFnPropName}`;
const [runtimeSource, asyncSource] = ['main', 'async'].map(type => Template.getFunctionContent(runtime[type])
.replace(/__async__/g, (!!this.options.async).toString())
Expand Down

0 comments on commit 787a124

Please sign in to comment.