build: update zone.js to use the new rollup_bundle (#33329)

PR Close #33329
This commit is contained in:
Greg Magolan
2019-10-27 16:28:03 -07:00
committed by Alex Rickabaugh
parent 430293abe2
commit 502fa906cd
8 changed files with 163 additions and 79 deletions

View File

@ -0,0 +1,19 @@
const node = require('rollup-plugin-node-resolve');
const commonjs = require('rollup-plugin-commonjs');
const banner = `/**
* @license Angular v0.0.0-PLACEHOLDER
* (c) 2010-2019 Google LLC. https://angular.io/
* License: MIT
*/`;
module.exports = {
plugins: [
node({
mainFields: ['es2015', 'module', 'jsnext:main', 'main'],
}),
commonjs(),
],
external: ['electron'],
output: {globals: {electron: 'electron'}, banner},
}