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 #3528

Closes #3561
This commit is contained in:
Pawel Kozlowski 2015-08-10 15:34:20 +02:00
parent 6bd95c1455
commit 1562bc91ba
1 changed files with 5 additions and 2 deletions

View File

@ -941,9 +941,12 @@ var bundleConfig = {
meta: {
// auto-detection fails to detect properly here - https://github.com/systemjs/builder/issues/123
'rx': {
format: 'cjs'
}
format: 'cjs'
},
'angular2/src/router/route_definition': {
format: 'es6'
}
}
};
// production build