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',
|
||||
@ -15,7 +15,7 @@ const globals = {
|
||||
'rxjs/Subject': 'Rx',
|
||||
};
|
||||
|
||||
export default {
|
||||
module.exports = {
|
||||
entry: '../../dist/packages-dist/compiler/esm5/compiler.js',
|
||||
dest: '../../dist/packages-dist/compiler/bundles/compiler.umd.js',
|
||||
format: 'umd',
|
||||
|
Reference in New Issue
Block a user