Skip to content

Commit 1562bc9

Browse files
chore(build): don't use global module format in router bundle
Empty ES6 files are detected as "global" module format by default which means that we end up with 2 module formats in a bundle (es6 and global). This makes module loading more complex and make break with certain SystemJS builder / loader combinations. Fixes angular#3528 Closes angular#3561
1 parent 6bd95c1 commit 1562bc9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

gulpfile.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,9 +941,12 @@ var bundleConfig = {
941941
meta: {
942942
// auto-detection fails to detect properly here - https://github.com/systemjs/builder/issues/123
943943
'rx': {
944-
format: 'cjs'
945-
}
944+
format: 'cjs'
945+
},
946+
'angular2/src/router/route_definition': {
947+
format: 'es6'
946948
}
949+
}
947950
};
948951

949952
// production build

0 commit comments

Comments
 (0)