From ef61b81b0c254c750c90029a9af4b0908ceeaf1a Mon Sep 17 00:00:00 2001 From: Rado Kirov Date: Wed, 23 Sep 2015 17:14:25 -0700 Subject: [PATCH] fix(bundles): add explicit format: cjs for empty files. --- gulpfile.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 60a33c45ab..50b5cb59eb 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1019,13 +1019,14 @@ gulp.task('!build.js.cjs', function() { var bundleConfig = { - paths: { - "*": "dist/js/prod/es5/*.js" - }, + paths: {"*": "dist/js/prod/es5/*.js"}, + // Files that end up empty after transpilation confuse system-builder + // and need to be explitily listed here. + // TODO: upgrade system builder and find a way to declare all input as cjs. meta: { - 'angular2/src/router/route_definition': { - format: 'cjs' - } + 'angular2/src/router/route_definition': {format: 'cjs'}, + 'angular2/src/core/directives/observable_list_diff': {format: 'cjs'}, + 'angular2/lifecycle_hooks': {format: 'cjs'} } };