From 8c670822ced84b8e36fe6b619b09542602427785 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Mon, 23 Nov 2015 16:02:17 +0100 Subject: [PATCH] chore(bundles): don't distribute sfx bundles for http Currently the main sfx bundle already contains http and router and the http sfx bundles duplicates all core. Additionally https://github.com/angular/angular/issues/5223 modifies our strategy for individual bundles Closes #5434 --- gulpfile.js | 15 ++++----------- modules/angular2/src/http/http_sfx.ts | 3 --- 2 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 modules/angular2/src/http/http_sfx.ts diff --git a/gulpfile.js b/gulpfile.js index 77def1b95b..4d1cd0e4ba 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1003,12 +1003,7 @@ gulp.task('!bundle.js.sfx.dev', ['build.js.dev'], function() { devBundleConfig.paths = merge(true, devBundleConfig.paths, {'*': 'dist/js/dev/es5/*.js'}); return bundler.bundle(devBundleConfig, 'angular2/angular2_sfx', './dist/build/angular2.sfx.dev.js', {sourceMaps: true}, - /* self-executing */ true) - .then(function() { - return bundler.bundle(devBundleConfig, 'angular2/http', './dist/build/http.sfx.dev.js', - {sourceMaps: true}, - /* self-executing */ true); - }); + /* self-executing */ true); }); gulp.task('!bundles.js.umd', ['build.js.dev'], function() { @@ -1111,11 +1106,9 @@ gulp.task('!bundle.js.dev.deps', ['!bundle.js.dev'], function() { }); gulp.task('!bundle.js.sfx.dev.deps', ['!bundle.js.sfx.dev'], function() { - return merge2( - bundler.modify(JS_DEV_DEPS.concat(['dist/build/angular2.sfx.dev.js']), 'angular2.sfx.dev.js') - .pipe(gulp.dest('dist/js/bundle')), - bundler.modify(['dist/build/http.sfx.dev.js'], 'http.sfx.dev.js') - .pipe(gulp.dest('dist/js/bundle'))); + return bundler.modify(JS_DEV_DEPS.concat(['dist/build/angular2.sfx.dev.js']), + 'angular2.sfx.dev.js') + .pipe(gulp.dest('dist/js/bundle')); }); gulp.task('!bundle.web_worker.js.dev.deps', ['!bundle.web_worker.js.dev'], function() { diff --git a/modules/angular2/src/http/http_sfx.ts b/modules/angular2/src/http/http_sfx.ts deleted file mode 100644 index 3dbf9cfc4d..0000000000 --- a/modules/angular2/src/http/http_sfx.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as ngHttp from './http'; - -(window).ngHttp = ngHttp;