Skip to content
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

Webpack support + remove legacy compat libraries #321

Merged
merged 13 commits into from
Aug 9, 2016
Merged

Conversation

mattheworiordan
Copy link
Member

@SimonWoolf this resolves #318 and #307

I'm yet to see what impact it has on the CI build, but from testing locally it seems to be working fine so far.

cc @paddybyers

@@ -1,6 +1,6 @@
var JSONPTransport = (function() {
var noop = function() {};
var _ = window.Ably._ = {};
var _ = Ably._ = {};
Copy link
Member

Choose a reason for hiding this comment

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

This will break the jsonp transport unfortunately, it currently relies on there being a window.Ably object.

@paddybyers
Copy link
Member

single quotes for paddy

yay. Great to know I added some value there :)

@SimonWoolf
Copy link
Member

SimonWoolf commented Jul 21, 2016

Thanks Matt :)

👍 except for the jsonp issue. Not sure what the best solution is there. I've added commit 84ddef1 which fixes the issue, though is a bit ugly (it uses window._ablyjs_jsonp if we're using webpack so we don't know for sure that we control the window.Ably object). WDYT?

@@ -94,7 +105,7 @@ var JSONPTransport = (function() {
params = this.params,
self = this;

params.callback = 'Ably._._(' + id + ')';
params.callback = jsonpcb + '._(' + id + ')';
Copy link
Member Author

Choose a reason for hiding this comment

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

Nice. I had a niggling feeling the JSONP needed to be treated differently, but in the end skipped over it :/

@mattheworiordan
Copy link
Member Author

Great. @SimonWoolf do you want to merge & publish?

@mattheworiordan
Copy link
Member Author

@SimonWoolf should we merge this? can you do it?

@SimonWoolf SimonWoolf merged commit 1020e00 into master Aug 9, 2016
SimonWoolf added a commit that referenced this pull request Aug 9, 2016
@SimonWoolf
Copy link
Member

Sorry, forgot about this

SimonWoolf added a commit that referenced this pull request Aug 10, 2016
@SimonWoolf SimonWoolf deleted the webpack-support branch October 11, 2017 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Webpack support
3 participants