Can't add new module
I have some issues changing the code to the new version. I have performed the following steps:
- Open new file under modules folder with the name "marsmediaBidAdapter".
- Open new file under modules folder with the name "marsmediaAnalyticsAdapter".
- Open new file under test\spec\modules folder with the name "marsmediaBidAdapter_spec".
- Copy all adapters logic from the old version to the new ones ( mentioned above ) with some path changes.
- Running the command "gulp serve".
After running, I took the "prebid.js" file from the folder build\dev and put it in my test file (the same one that worked fine in version 0.25). When I loaded the test page, it seems that no adapter is loaded.
Then I tried to run the command "gulp serve --modules=marsmediaBidAdapter" and got this error: "Message: invalid modules: marsmediaBidAdapter"
Why all of the adapters don't load?
If you search the build/dev/prebid.js file for your marsmediaBidAdapter source code, is it in there?
"My adapter's code isn't in the bundle" and "my adapter's code in the bundle isn't working" are two very different problems.
I have found the slution in another issue, just need to replace the next line in gulpHelpers file:
var moduleName = file.split(new RegExp('[.' + path.sep + ']'))[0];
to:
var moduleName = file.split(new RegExp('[.\\' + path.sep + ']'))[0];
@dbemiller My adapter is working just not included in the bundle.
aha, ok. Yeah, that issue was also fixed in #1332.