Skip to content

Commit

Permalink
Merge pull request #377 from dpwatrous/dpwatrous/generate-bugfix
Browse files Browse the repository at this point in the history
Fix error in DojoAMDRuntimeModule
  • Loading branch information
chuckdumont authored Sep 29, 2023
2 parents 5324894 + 787a124 commit 37c00fc
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 37c00fc

Please sign in to comment.