https://github.com/angular/angular
Raw File
Tip revision: 7c3b95b4abab2a88ab077d00e2f44a1b0ce5e9bd authored by Victor Berchet on 22 February 2018, 00:42:54 UTC
docs: add changelog for 5.2.6
Tip revision: 7c3b95b
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/common': 'ng.common',
  '@angular/platform-browser': 'ng.platformBrowser',
  'rxjs/Observable': 'Rx',
  'rxjs/Subject': 'Rx'
};

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