https://github.com/angular/angular
Raw File
Tip revision: 82ec02daf8858a0c2bf933bdb1c7cbe84a10f1d5 authored by Victor Berchet on 01 June 2017, 21:27:24 UTC
docs: add changelog for 4.2.0-rc.2
Tip revision: 82ec02d
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
 */

import resolve from 'rollup-plugin-node-resolve';

const globals = {
  '@angular/core': 'ng.core',
  'rxjs/Observable': 'Rx',
  'rxjs/Subject': 'Rx',
};

export default {
  entry: '../../dist/packages-dist/compiler/@angular/compiler.es5.js',
  dest: '../../dist/packages-dist/compiler/bundles/compiler.umd.js',
  format: 'umd',
  exports: 'named',
  moduleName: 'ng.compiler',
  plugins: [resolve()],
  external: Object.keys(globals),
  globals: globals
};
back to top