Now that I have successfully integration angular 2 components into our angularJS application I want to uglify them for the release. However if I make us of the SystemJS builder I get the following error:
Fatal error: ENOENT: no such file or directory, open '{webAppRoot}angular2\angular2.js'
It seems that it is trying to uglify the require('angular2/angular2') and it does not resolve it correctly. How do I correctly uglify an an angular2 app?
Note that the angularJS part of the applications is written in ES5 JS and AMD and the angular2 modules are being compiled to ES5 with SystemJS. SystemJS is then used to load the AMD as well as the CommonJS modules.