fix(platform-server): add missing packages to the UMD global rollup config
This adds the proper bindings for calling angular packages from platform-server in the UMD. This was not a problem for universal apps that dont use UMD. Fixes 19899
This commit is contained in:
parent
394d951883
commit
00bc80bb37
|
@ -10,10 +10,13 @@ import resolve from 'rollup-plugin-node-resolve';
|
|||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
||||
|
||||
const globals = {
|
||||
'@angular/animations': 'ng.animations',
|
||||
'@angular/core': 'ng.core',
|
||||
'@angular/common': 'ng.common',
|
||||
'@angular/compiler': 'ng.compiler',
|
||||
'@angular/http': 'ng.http',
|
||||
'@angular/platform-browser': 'ng.platformBrowser',
|
||||
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic',
|
||||
'rxjs/Observable': 'Rx',
|
||||
'rxjs/Subject': 'Rx',
|
||||
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
|
||||
|
|
Loading…
Reference in New Issue