Skip to content

Commit

Permalink
Prebid Core: add filename to pbjsGlobals module append (#7969)
Browse files Browse the repository at this point in the history
* fix: add filename to pbjsGlobals module append

* lint

* update filename
  • Loading branch information
miguelpeixe authored Feb 10, 2022
1 parent 393a3c0 commit 40ebe8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/pbjsGlobals.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = function(api, options) {
const modName = getModuleName(state.filename);
if (modName != null) {
// append "registration" of module file to $$PREBID_GLOBAL$$.installedModules
path.node.body.push(...api.parse(`window.${pbGlobal}.installedModules.push('${modName}');`).program.body);
path.node.body.push(...api.parse(`window.${pbGlobal}.installedModules.push('${modName}');`, {filename: state.filename}).program.body);
}
},
StringLiteral(path) {
Expand Down

0 comments on commit 40ebe8d

Please sign in to comment.