From 77b7caecebaacedbe1786c4551d117d84e8141b8 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Mon, 14 Dec 2015 23:19:18 +0100 Subject: [PATCH] fix(bundles): don't include RxJS in System.register bundles BREAKING CHANGE: RxJS used to be bundled with Angular 2 code and this is not the case any more. RxJS needs to be loaded explicitly. --- gulpfile.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index ee1466927a..0ef63ddb0c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -150,14 +150,14 @@ var ANGULAR2_BUNDLE_CONFIG = [ 'angular2/platform/common_dom' ]; -var NG2_BUNDLE_CONTENT = ANGULAR2_BUNDLE_CONFIG.join(' + '); -var HTTP_BUNDLE_CONTENT = 'angular2/http - ' + ANGULAR2_BUNDLE_CONFIG.join(' - '); -var ROUTER_BUNDLE_CONTENT = - 'angular2/router + angular2/router/router_link_dsl - ' + ANGULAR2_BUNDLE_CONFIG.join(' - '); +var NG2_BUNDLE_CONTENT = ANGULAR2_BUNDLE_CONFIG.join(' + ') + ' - rxjs/*'; +var HTTP_BUNDLE_CONTENT = 'angular2/http - rxjs/* - ' + ANGULAR2_BUNDLE_CONFIG.join(' - '); +var ROUTER_BUNDLE_CONTENT = 'angular2/router + angular2/router/router_link_dsl - rxjs/* - ' + + ANGULAR2_BUNDLE_CONFIG.join(' - '); var TESTING_BUNDLE_CONTENT = - 'angular2/testing + angular2/http/testing + angular2/router/testing - ' + + 'angular2/testing + angular2/http/testing + angular2/router/testing - rxjs/* - ' + ANGULAR2_BUNDLE_CONFIG.join(' - '); -var UPGRADE_BUNDLE_CONTENT = 'angular2/upgrade - ' + ANGULAR2_BUNDLE_CONFIG.join(' - '); +var UPGRADE_BUNDLE_CONTENT = 'angular2/upgrade - rxjs/* - ' + ANGULAR2_BUNDLE_CONFIG.join(' - '); var BENCHPRESS_BUNDLE_CONFIG = { entries: ['./dist/js/cjs/benchpress/index.js'],