From 1562bc91bae75bd0b8ac58114ba56908400ac99b Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Mon, 10 Aug 2015 15:34:20 +0200 Subject: [PATCH] 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 --- gulpfile.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 83ed749770..f20bc2afaf 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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