Skip to content

Commit

Permalink
Add splittable for prod bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
philipwalton committed Jan 22, 2017
1 parent 4baa4fe commit d475354
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/plugins/autotrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ function Autotrack() {
}


provide('autotrack', Autotrack);
module.exports = provide('autotrack', Autotrack);
2 changes: 1 addition & 1 deletion lib/plugins/clean-url-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ CleanUrlTracker.prototype.remove = function() {
};


provide('cleanUrlTracker', CleanUrlTracker);
module.exports = provide('cleanUrlTracker', CleanUrlTracker);
2 changes: 1 addition & 1 deletion lib/plugins/event-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ EventTracker.prototype.remove = function() {
};


provide('eventTracker', EventTracker);
module.exports = provide('eventTracker', EventTracker);
2 changes: 1 addition & 1 deletion lib/plugins/impression-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ ImpressionTracker.prototype.remove = function() {
};


provide('impressionTracker', ImpressionTracker);
module.exports = provide('impressionTracker', ImpressionTracker);


/**
Expand Down
6 changes: 3 additions & 3 deletions lib/plugins/media-query-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ MediaQueryTracker.prototype.changeTemplate = function(oldValue, newValue) {
};


module.exports = provide('mediaQueryTracker', MediaQueryTracker);


/**
* Accepts a media query and returns a MediaQueryListener object.
* Caches the values to avoid multiple unnecessary instances.
Expand All @@ -179,6 +182,3 @@ function getMediaListener(media) {
mediaMap[media] = window.matchMedia(media);
return mediaMap[media];
}


provide('mediaQueryTracker', MediaQueryTracker);
2 changes: 1 addition & 1 deletion lib/plugins/outbound-form-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ OutboundFormTracker.prototype.remove = function() {
};


provide('outboundFormTracker', OutboundFormTracker);
module.exports = provide('outboundFormTracker', OutboundFormTracker);
6 changes: 3 additions & 3 deletions lib/plugins/outbound-link-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ OutboundLinkTracker.prototype.remove = function() {
};


module.exports = provide('outboundLinkTracker', OutboundLinkTracker);


/**
* Determines if a link click event will cause the current page to upload.
* Note: most link clicks *will* cause the current page to unload because they
Expand Down Expand Up @@ -164,6 +167,3 @@ function linkClickWillUnloadCurrentPage(event, link) {
// a click event.
event.which > 1);
}


provide('outboundLinkTracker', OutboundLinkTracker);
2 changes: 1 addition & 1 deletion lib/plugins/page-visibility-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,4 +384,4 @@ PageVisibilityTracker.prototype.getVisibilityState = function() {
};


provide('pageVisibilityTracker', PageVisibilityTracker);
module.exports = provide('pageVisibilityTracker', PageVisibilityTracker);
2 changes: 1 addition & 1 deletion lib/plugins/social-widget-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,4 @@ SocialWidgetTracker.prototype.remove = function() {
};


provide('socialWidgetTracker', SocialWidgetTracker);
module.exports = provide('socialWidgetTracker', SocialWidgetTracker);
6 changes: 3 additions & 3 deletions lib/plugins/url-change-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ UrlChangeTracker.prototype.remove = function() {
};


module.exports = provide('urlChangeTracker', UrlChangeTracker);


/**
* @return {string} The path value of the current URL.
*/
function getPath() {
return location.pathname + location.search;
}


provide('urlChangeTracker', UrlChangeTracker);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"selenium-server-standalone-jar": "^3.0.1",
"serve-static": "^1.11.1",
"sinon": "sinonjs/sinon#v2.0.0-pre.2",
"splittable": "^4.0.0",
"through2": "^2.0.1",
"uuid": "^2.0.3",
"vinyl-buffer": "^1.0.0",
Expand Down

0 comments on commit d475354

Please sign in to comment.