fix(bundles): add explicit format: cjs for empty files.

This commit is contained in:
Rado Kirov 2015-09-23 17:14:25 -07:00
parent 225eab8f25
commit ef61b81b0c

View File

@ -1019,13 +1019,14 @@ gulp.task('!build.js.cjs', function() {
var bundleConfig = { var bundleConfig = {
paths: { paths: {"*": "dist/js/prod/es5/*.js"},
"*": "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: { meta: {
'angular2/src/router/route_definition': { 'angular2/src/router/route_definition': {format: 'cjs'},
format: 'cjs' 'angular2/src/core/directives/observable_list_diff': {format: 'cjs'},
} 'angular2/lifecycle_hooks': {format: 'cjs'}
} }
}; };