X Tutup
Skip to content

Commit ef61b81

Browse files
committed
fix(bundles): add explicit format: cjs for empty files.
1 parent 225eab8 commit ef61b81

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

gulpfile.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,13 +1019,14 @@ gulp.task('!build.js.cjs', function() {
10191019

10201020

10211021
var bundleConfig = {
1022-
paths: {
1023-
"*": "dist/js/prod/es5/*.js"
1024-
},
1022+
paths: {"*": "dist/js/prod/es5/*.js"},
1023+
// Files that end up empty after transpilation confuse system-builder
1024+
// and need to be explitily listed here.
1025+
// TODO: upgrade system builder and find a way to declare all input as cjs.
10251026
meta: {
1026-
'angular2/src/router/route_definition': {
1027-
format: 'cjs'
1028-
}
1027+
'angular2/src/router/route_definition': {format: 'cjs'},
1028+
'angular2/src/core/directives/observable_list_diff': {format: 'cjs'},
1029+
'angular2/lifecycle_hooks': {format: 'cjs'}
10291030
}
10301031
};
10311032

0 commit comments

Comments
 (0)
X Tutup