This repository has been archived by the owner on Feb 13, 2021. It is now read-only.
forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 in AOLP_ADS_JS/prebid.js from feature/build-wit…
…h-delimiters to master * commit '3a11e72cf5fc3149ec41b42a8f924ff076556603': Removed delimiters around base adapter classes in the build output Modified build to include delimiters for adapters
- Loading branch information
Showing
4 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2016 AOL Platforms. | ||
|
||
/** | ||
* @author Marian Rusnak <[email protected]> | ||
*/ | ||
|
||
module.exports = function(content) { | ||
var adapterName = this.resourcePath.slice(this.resourcePath.lastIndexOf('/') + 1, -3); | ||
// Intentionally added 'window=window;' after the comment so it is not removed. | ||
// It is probably a bug in UglifyJS that the comment is not recognized as comment node. | ||
// I will look at it later. | ||
// TODO(marian.rusnak): Investigate and fix Uglify comments recognition and removal. | ||
return `/*!ADAPTER BEGIN ${adapterName}*/window=window;${content}/*!ADAPTER END ${adapterName}*/window=window;`; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters