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
1 changed files with 7 additions and 6 deletions

View File

@ -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'}
}
};