From 42ccff859c5549443d7f8d777116841bd4b0efa7 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 15 Dec 2015 01:11:10 -0800 Subject: [PATCH] build(gulp): remove obsolete insertRXLicense bundle transform --- gulpfile.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 8f9dac49ce..c65276755a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1227,25 +1227,12 @@ var JS_DEV_DEPS = [ 'node_modules/reflect-metadata/Reflect.js' ]; -// Splice in RX license if rx is in the bundle. -function insertRXLicense(source) { - var n = source.indexOf('System.register("rxjs/Subject"'); - if (n >= 0) { - // TODO: point this to Rx once Rx includes license in dist - // https://github.com/angular/angular/issues/5558 - var rxLicense = licenseWrap('LICENSE'); - return source.slice(0, n) + rxLicense + source.slice(n); - } else { - return source; - } -} function addDevDependencies(outputFile) { var bundler = require('./tools/build/bundle'); var insert = require('gulp-insert'); return bundler.modify(JS_DEV_DEPS.concat(['dist/build/' + outputFile]), outputFile) - .pipe(insert.transform(insertRXLicense)) .pipe(gulp.dest('dist/js/bundle')); }