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:

committed by
Matias Niemelä

parent
f1a9e1e361
commit
b6abcb2500
@ -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',
|
||||
|
Reference in New Issue
Block a user