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:
parent
6bd95c1455
commit
1562bc91ba
|
@ -942,6 +942,9 @@ var bundleConfig = {
|
|||
// auto-detection fails to detect properly here - https://github.com/systemjs/builder/issues/123
|
||||
'rx': {
|
||||
format: 'cjs'
|
||||
},
|
||||
'angular2/src/router/route_definition': {
|
||||
format: 'es6'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue