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',
@ -15,7 +15,7 @@ const globals = {
'rxjs/Subject': 'Rx',
};
export default {
module.exports = {
entry: '../../../dist/packages-dist/core/esm5/testing.js',
dest: '../../../dist/packages-dist/core/bundles/core-testing.umd.js',
format: 'umd',