-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to disable integrations/plugins CDN #1938
Comments
Thanks for opening this issue! We'll get back to you shortly. If it is a bug, please make sure to add steps to reproduce the issue. |
Hi @adrianlyjak In the v3 version, we've refactored the non-essential functionalities of the SDK into plugins that can be hot-loaded based on the config and browser capabilities. If you use the NPM package, you can use a different export that bundles core and all the plugins together, You can set up custom proxies if you have connected any device mode destinations to your source. Please let us know if you need any help. |
@saikumarrs ok, thanks, I'll try that, and see what the bundle size is there, or I might self host the integrations |
@saikumarrs follow up question: is there any way to entirely disable the integrations--and is there any documentation clarifying what the integrations are? I'm mainly interested in sending to the rudderstack destination and having the heavy logic routing logic sit there, and keeping the client light. |
For reference, I tried these options, but still see the SDK making requests to the CDN:
|
Hi @adrianlyjak
Please refer to https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-javascript-sdk/filtering/#filter-destinations-while-loading-sdk for more details. |
Ah, ok, I thought that would prevent events from being sent. With that option set, I still see the client trying to load rsa-plugins from the CDN (without importing from /bundled) |
Hi @adrianlyjak If you don't want to load any plugins, set the |
I'm confused why the new v3 javascript sdk is reaching out to a CDN to load various plugins and integrations. I would like the full script to be embedded in the NPM package that I already loaded.
I understand that I could self host these, but that seems rather extreme. Would prefer to just have the loaded in my existing bundler.
I tried upgrading to v3, and am now running into rudderstack no longer working in Firefox with enhanced-track-protection, since, unsurprisingly, it marks these rudderlabs CDN urls as tracking urls.
The text was updated successfully, but these errors were encountered: