fix(bundles): add explicit format: cjs for empty files.
This commit is contained in:
parent
225eab8f25
commit
ef61b81b0c
13
gulpfile.js
13
gulpfile.js
@ -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'}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user