Skip to content

Conversation

@nettofarah
Copy link
Contributor

What does this PR do?

Change a few destinations to have the package name match the destination creation name, so ajs next is able to load the correct destination dynamically from S3.

Are there breaking changes in this PR?
N/A

Testing
Testing completed successfully using ajs-next in staging using this website: https://repl.it/@nettofarah/ajs-next-broken-integrations-qa#index.html


/* eslint-disable */
window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set._.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');$.src=scriptUrl;z.t=+new Date;$.type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');
window.$zopim || (function(d, s) { var z = (window.$zopim = function(c) { z._.push(c); }), $ = (z.s = d.createElement(s)), e = d.getElementsByTagName(s)[0]; z.set = function(o) { z.set._.push(o); }; z._ = []; z.set._ = []; $.async = !0; $.setAttribute('charset', 'utf-8'); $.src = scriptUrl; z.t = +new Date(); $.type = 'text/javascript'; e.parentNode.insertBefore($, e); })(document, 'script');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the compiled code for zopim would break because of a bad assignment.
The only real change here is $zopim= to window.$zompim=

`.trim();

const filename = file.replace('.js', '.dynamic.js');
const filename = file.replace(/\.js$/, '.dynamic.js');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes compilation/uploads more reliable in dev

@nettofarah nettofarah requested a review from pooyaj March 3, 2021 23:22
@nettofarah nettofarah merged commit df7615e into master Mar 3, 2021
@nettofarah nettofarah deleted the alias-integration branch March 3, 2021 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants