Permalink
Browse files

fix(platform-server): add missing packages to the UMD global rollup c…

…onfig

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
  • Loading branch information...
hansl authored and matsko committed Oct 27, 2017
1 parent 5542517 commit 4285b6c3e3f3882975f1e326d1214748803ee53c
Showing with 3 additions and 0 deletions.
  1. +3 −0 packages/platform-server/rollup.config.js
@@ -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',

0 comments on commit 4285b6c

Please sign in to comment.