refactor: make all rollup config ES5 compatible (#20028)

So they can be required by other Node scripts.

PR Close #20028
This commit is contained in:
Hans Larsen
2017-10-30 10:55:45 -07:00
committed by Matias Niemelä
parent f1a9e1e361
commit b6abcb2500
34 changed files with 103 additions and 100 deletions

View File

@ -6,8 +6,8 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
const resolve = require('rollup-plugin-node-resolve');
const sourcemaps = require('rollup-plugin-sourcemaps');
const globals = {
'@angular/core': 'ng.core',
@ -19,7 +19,7 @@ const globals = {
'@angular/platform-browser-dynamic/testing': 'ng.platformBrowserDynamic.testing'
};
export default {
module.exports = {
entry: '../../../dist/packages-dist/platform-server/esm5/testing.js',
dest: '../../../dist/packages-dist/platform-server/bundles/platform-server-testing.umd.js',
format: 'umd',