Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

RequireJS requirement

Open acookcpxi opened this issue 11 years ago • 4 comments

We're having issues attempting to implement on a site that does not already have RequireJS implemented - could the integration example file be updated to include RequireJS and exaplin for people who do not use it regularly how to implement? As it is now our site breaks when we follow the integration example that is posted...

acookcpxi avatar Aug 18 '15 14:08 acookcpxi

Can you share your code on how you are trying to implemment it?

ialex avatar Aug 18 '15 16:08 ialex

Hey @acookcpxi, if you're trying to implement prebid.js, see the latest release as a good place to start: https://github.com/prebid/Prebid.js/releases

If you're trying to contribute to the repo, I think require() is part of the Gulp tool when you're building the Javascript. In the final prebid.js, there would be no require() call.

@mkendall07, could you also help out here?

Heray avatar Aug 18 '15 21:08 Heray

Hi @acookcpxi,

We actually don't use requireJS in this project at all. Browserify (http://browserify.org) is used to build all the modules and bundle one prebid.js file. Consuming this file should not require any additional dependencies. If you post a link to your code I'd be happy to point out more.

mkendall07 avatar Aug 19 '15 20:08 mkendall07

Thanks, I hadn’t done the gulp step as I was just including the file that was downloaded from GIT…

From: mkendall Reply-To: "prebid/Prebid.js" Date: Wednesday, August 19, 2015 at 4:52 PM To: "prebid/Prebid.js" Cc: Alex Cook Subject: Re: [Prebid.js] RequireJS requirement (#28)

Hi @acookcpxihttps://github.com/acookcpxi,

We actually don't use requireJS in this project at all. Browserify (http://browserify.org) is used to build all the modules and bundle one prebid.js file. Consuming this file should not require any additional dependencies. If you post a link to your code I'd be happy to point out more.

— Reply to this email directly or view it on GitHubhttps://github.com/prebid/Prebid.js/issues/28#issuecomment-132780349.

acookcpxi avatar Aug 19 '15 20:08 acookcpxi