https://github.com/angular/angular
Raw File
Tip revision: 9dc310eb50f022b25184e84a3a9abc016e4a2451 authored by Alex Rickabaugh on 01 December 2017, 22:40:05 UTC
docs: add changelog for 5.0.5
Tip revision: 9dc310e
rollup.config.js
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

const resolve = require('rollup-plugin-node-resolve');
const sourcemaps = require('rollup-plugin-sourcemaps');

const globals = {
  '@angular/core': 'ng.core',
  '@angular/platform-browser': 'ng.platformBrowser',
  '@angular/common': 'ng.common',
  '@angular/common/http': 'ng.common.http',
  'rxjs/Observable': 'Rx',
  'rxjs/Observer': 'Rx',
  'rxjs/ReplaySubject': 'Rx',
  'rxjs/Subject': 'Rx',

  'rxjs/operator/startWith': 'Rx.Observable.prototype',
};

module.exports = {
  entry: '../../../../dist/packages-dist/common/esm5/http/testing.js',
  dest: '../../../../dist/packages-dist/common/bundles/common-http-testing.umd.js',
  format: 'umd',
  exports: 'named',
  amd: {id: '@angular/common/http/testing'},
  moduleName: 'ng.common.http.testing',
  plugins: [resolve(), sourcemaps()],
  external: Object.keys(globals),
  globals: globals
};
back to top