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:
parent
f1a9e1e361
commit
b6abcb2500
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -15,7 +15,7 @@ const globals = {
|
||||||
'@angular/animations': 'ng.animations'
|
'@angular/animations': 'ng.animations'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/animations/esm5/browser.js',
|
entry: '../../../dist/packages-dist/animations/esm5/browser.js',
|
||||||
dest: '../../../dist/packages-dist/animations/bundles/animations-browser.umd.js',
|
dest: '../../../dist/packages-dist/animations/bundles/animations-browser.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -16,7 +16,7 @@ const globals = {
|
||||||
'rxjs/Subject': 'Rx',
|
'rxjs/Subject': 'Rx',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../../dist/packages-dist/animations/esm5/browser/testing.js',
|
entry: '../../../../dist/packages-dist/animations/esm5/browser/testing.js',
|
||||||
dest: '../../../../dist/packages-dist/animations/bundles/animations-browser-testing.umd.js',
|
dest: '../../../../dist/packages-dist/animations/bundles/animations-browser-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -16,7 +16,7 @@ const globals = {
|
||||||
'rxjs/Subject': 'Rx',
|
'rxjs/Subject': 'Rx',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/animations/esm5/animations.js',
|
entry: '../../dist/packages-dist/animations/esm5/animations.js',
|
||||||
dest: '../../dist/packages-dist/animations/bundles/animations.umd.js',
|
dest: '../../dist/packages-dist/animations/bundles/animations.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -20,7 +20,7 @@ const globals = {
|
||||||
'rxjs/operator/map': 'Rx.Observable.prototype',
|
'rxjs/operator/map': 'Rx.Observable.prototype',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/common/esm5/http.js',
|
entry: '../../../dist/packages-dist/common/esm5/http.js',
|
||||||
dest: '../../../dist/packages-dist/common/bundles/common-http.umd.js',
|
dest: '../../../dist/packages-dist/common/bundles/common-http.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -19,7 +19,7 @@ const globals = {
|
||||||
'rxjs/Subject': 'Rx',
|
'rxjs/Subject': 'Rx',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../../dist/packages-dist/common/esm5/http/testing.js',
|
entry: '../../../../dist/packages-dist/common/esm5/http/testing.js',
|
||||||
dest: '../../../../dist/packages-dist/common/bundles/common-http-testing.umd.js',
|
dest: '../../../../dist/packages-dist/common/bundles/common-http-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -15,7 +15,7 @@ const globals = {
|
||||||
'rxjs/Subject': 'Rx',
|
'rxjs/Subject': 'Rx',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/common/esm5/common.js',
|
entry: '../../dist/packages-dist/common/esm5/common.js',
|
||||||
dest: '../../dist/packages-dist/common/bundles/common.umd.js',
|
dest: '../../dist/packages-dist/common/bundles/common.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -16,7 +16,7 @@ const globals = {
|
||||||
'rxjs/Subject': 'Rx'
|
'rxjs/Subject': 'Rx'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/common/esm5/testing.js',
|
entry: '../../../dist/packages-dist/common/esm5/testing.js',
|
||||||
dest: '../../../dist/packages-dist/common/bundles/common-testing.umd.js',
|
dest: '../../../dist/packages-dist/common/bundles/common-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import commonjs from 'rollup-plugin-commonjs';
|
const commonjs = require('rollup-plugin-commonjs');
|
||||||
import * as path from 'path';
|
const path = require('path');
|
||||||
|
|
||||||
import 'reflect-metadata';
|
require('reflect-metadata');
|
||||||
|
|
||||||
var m = /^\@angular\/((\w|\-)+)(\/(\w|\d|\/|\-)+)?$/;
|
var m = /^\@angular\/((\w|\-)+)(\/(\w|\d|\/|\-)+)?$/;
|
||||||
var location = normalize('../../dist/packages-dist') + '/';
|
var location = normalize('../../dist/packages-dist') + '/';
|
||||||
|
@ -49,7 +49,7 @@ function resolve(id, from) {
|
||||||
// hack to get around issues with default exports
|
// hack to get around issues with default exports
|
||||||
var banner = `ts['default'] = ts['default'] || ts; fs['default'] = fs['default'] || fs;`;
|
var banner = `ts['default'] = ts['default'] || ts; fs['default'] = fs['default'] || fs;`;
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/compiler-cli/src/ngc.js',
|
entry: '../../dist/packages-dist/compiler-cli/src/ngc.js',
|
||||||
dest: './browser-bundle.umd.js',
|
dest: './browser-bundle.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -15,7 +15,7 @@ const globals = {
|
||||||
'rxjs/Subject': 'Rx',
|
'rxjs/Subject': 'Rx',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/compiler/esm5/compiler.js',
|
entry: '../../dist/packages-dist/compiler/esm5/compiler.js',
|
||||||
dest: '../../dist/packages-dist/compiler/bundles/compiler.umd.js',
|
dest: '../../dist/packages-dist/compiler/bundles/compiler.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -17,7 +17,7 @@ const globals = {
|
||||||
'rxjs/Subject': 'Rx'
|
'rxjs/Subject': 'Rx'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/compiler/esm5/testing.js',
|
entry: '../../../dist/packages-dist/compiler/esm5/testing.js',
|
||||||
dest: '../../../dist/packages-dist/compiler/bundles/compiler-testing.umd.js',
|
dest: '../../../dist/packages-dist/compiler/bundles/compiler-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'rxjs/Observable': 'Rx',
|
'rxjs/Observable': 'Rx',
|
||||||
|
@ -18,7 +18,7 @@ const globals = {
|
||||||
'rxjs/operator/share': 'Rx.Observable.prototype'
|
'rxjs/operator/share': 'Rx.Observable.prototype'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/core/esm5/core.js',
|
entry: '../../dist/packages-dist/core/esm5/core.js',
|
||||||
dest: '../../dist/packages-dist/core/bundles/core.umd.js',
|
dest: '../../dist/packages-dist/core/bundles/core.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -15,7 +15,7 @@ const globals = {
|
||||||
'rxjs/Subject': 'Rx',
|
'rxjs/Subject': 'Rx',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/core/esm5/testing.js',
|
entry: '../../../dist/packages-dist/core/esm5/testing.js',
|
||||||
dest: '../../../dist/packages-dist/core/bundles/core-testing.umd.js',
|
dest: '../../../dist/packages-dist/core/bundles/core-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -21,7 +21,7 @@ const globals = {
|
||||||
'rxjs/operator/map': 'Rx.Observable.prototype'
|
'rxjs/operator/map': 'Rx.Observable.prototype'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/forms/esm5/forms.js',
|
entry: '../../dist/packages-dist/forms/esm5/forms.js',
|
||||||
dest: '../../dist/packages-dist/forms/bundles/forms.umd.js',
|
dest: '../../dist/packages-dist/forms/bundles/forms.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -17,7 +17,7 @@ const globals = {
|
||||||
'rxjs/Subject': 'Rx'
|
'rxjs/Subject': 'Rx'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/http/esm5/http.js',
|
entry: '../../dist/packages-dist/http/esm5/http.js',
|
||||||
dest: '../../dist/packages-dist/http/bundles/http.umd.js',
|
dest: '../../dist/packages-dist/http/bundles/http.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -20,7 +20,7 @@ const globals = {
|
||||||
'rxjs/operator/take': 'Rx.Observable.prototype'
|
'rxjs/operator/take': 'Rx.Observable.prototype'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/http/esm5/testing.js',
|
entry: '../../../dist/packages-dist/http/esm5/testing.js',
|
||||||
dest: '../../../dist/packages-dist/http/bundles/http-testing.umd.js',
|
dest: '../../../dist/packages-dist/http/bundles/http-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import commonjs from 'rollup-plugin-commonjs';
|
const commonjs = require('rollup-plugin-commonjs');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
import * as path from 'path';
|
const path = require('path');
|
||||||
|
|
||||||
var m = /^\@angular\/((\w|\-)+)(\/(\w|\d|\/|\-)+)?$/;
|
var m = /^\@angular\/((\w|\-)+)(\/(\w|\d|\/|\-)+)?$/;
|
||||||
var location = normalize('../../dist/packages-dist') + '/';
|
var location = normalize('../../dist/packages-dist') + '/';
|
||||||
|
@ -60,7 +60,7 @@ module.exports = function(provided) {
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/language-service/esm5/language-service.js',
|
entry: '../../dist/packages-dist/language-service/esm5/language-service.js',
|
||||||
dest: '../../dist/packages-dist/language-service/bundles/language-service.umd.js',
|
dest: '../../dist/packages-dist/language-service/bundles/language-service.umd.js',
|
||||||
format: 'amd',
|
format: 'amd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -16,7 +16,7 @@ const globals = {
|
||||||
'@angular/platform-browser': 'ng.platformBrowser',
|
'@angular/platform-browser': 'ng.platformBrowser',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/platform-browser-dynamic/esm5/platform-browser-dynamic.js',
|
entry: '../../dist/packages-dist/platform-browser-dynamic/esm5/platform-browser-dynamic.js',
|
||||||
dest: '../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
|
dest: '../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -20,7 +20,7 @@ const globals = {
|
||||||
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic'
|
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/platform-browser-dynamic/esm5/testing.js',
|
entry: '../../../dist/packages-dist/platform-browser-dynamic/esm5/testing.js',
|
||||||
dest:
|
dest:
|
||||||
'../../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic-testing.umd.js',
|
'../../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic-testing.umd.js',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -17,7 +17,7 @@ const globals = {
|
||||||
'@angular/animations/browser': 'ng.animations.browser'
|
'@angular/animations/browser': 'ng.animations.browser'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/platform-browser/esm5/animations.js',
|
entry: '../../../dist/packages-dist/platform-browser/esm5/animations.js',
|
||||||
dest: '../../../dist/packages-dist/platform-browser/bundles/platform-browser-animations.umd.js',
|
dest: '../../../dist/packages-dist/platform-browser/bundles/platform-browser-animations.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,15 +6,15 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
'@angular/common': 'ng.common',
|
'@angular/common': 'ng.common',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/platform-browser/esm5/platform-browser.js',
|
entry: '../../dist/packages-dist/platform-browser/esm5/platform-browser.js',
|
||||||
dest: '../../dist/packages-dist/platform-browser/bundles/platform-browser.umd.js',
|
dest: '../../dist/packages-dist/platform-browser/bundles/platform-browser.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -15,7 +15,7 @@ const globals = {
|
||||||
'@angular/platform-browser': 'ng.platformBrowser'
|
'@angular/platform-browser': 'ng.platformBrowser'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/platform-browser/esm5/testing.js',
|
entry: '../../../dist/packages-dist/platform-browser/esm5/testing.js',
|
||||||
dest: '../../../dist/packages-dist/platform-browser/bundles/platform-browser-testing.umd.js',
|
dest: '../../../dist/packages-dist/platform-browser/bundles/platform-browser-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/animations': 'ng.animations',
|
'@angular/animations': 'ng.animations',
|
||||||
|
@ -24,7 +24,7 @@ const globals = {
|
||||||
'rxjs/operator/first': 'Rx.Observable.prototype'
|
'rxjs/operator/first': 'Rx.Observable.prototype'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/platform-server/esm5/platform-server.js',
|
entry: '../../dist/packages-dist/platform-server/esm5/platform-server.js',
|
||||||
dest: '../../dist/packages-dist/platform-server/bundles/platform-server.umd.js',
|
dest: '../../dist/packages-dist/platform-server/bundles/platform-server.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -19,7 +19,7 @@ const globals = {
|
||||||
'@angular/platform-browser-dynamic/testing': 'ng.platformBrowserDynamic.testing'
|
'@angular/platform-browser-dynamic/testing': 'ng.platformBrowserDynamic.testing'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/platform-server/esm5/testing.js',
|
entry: '../../../dist/packages-dist/platform-server/esm5/testing.js',
|
||||||
dest: '../../../dist/packages-dist/platform-server/bundles/platform-server-testing.umd.js',
|
dest: '../../../dist/packages-dist/platform-server/bundles/platform-server-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -18,7 +18,7 @@ const globals = {
|
||||||
'@angular/platform-webworker': 'ng.platformWebworker',
|
'@angular/platform-webworker': 'ng.platformWebworker',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/platform-webworker-dynamic/esm5/platform-webworker-dynamic.js',
|
entry: '../../dist/packages-dist/platform-webworker-dynamic/esm5/platform-webworker-dynamic.js',
|
||||||
dest:
|
dest:
|
||||||
'../../dist/packages-dist/platform-webworker-dynamic/bundles/platform-webworker-dynamic.umd.js',
|
'../../dist/packages-dist/platform-webworker-dynamic/bundles/platform-webworker-dynamic.umd.js',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -17,7 +17,7 @@ const globals = {
|
||||||
'rxjs/Subject': 'Rx'
|
'rxjs/Subject': 'Rx'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/platform-webworker/esm5/platform-webworker.js',
|
entry: '../../dist/packages-dist/platform-webworker/esm5/platform-webworker.js',
|
||||||
dest: '../../dist/packages-dist/platform-webworker/bundles/platform-webworker.umd.js',
|
dest: '../../dist/packages-dist/platform-webworker/bundles/platform-webworker.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
export default {plugins: [sourcemaps()]};
|
module.exports = {
|
||||||
|
plugins: [sourcemaps()]
|
||||||
|
};
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -39,7 +39,7 @@ const globals = {
|
||||||
'rxjs/operator/concatMap': 'Rx.Observable.prototype'
|
'rxjs/operator/concatMap': 'Rx.Observable.prototype'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/router/esm5/router.js',
|
entry: '../../dist/packages-dist/router/esm5/router.js',
|
||||||
dest: '../../dist/packages-dist/router/bundles/router.umd.js',
|
dest: '../../dist/packages-dist/router/bundles/router.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -17,7 +17,7 @@ const globals = {
|
||||||
'@angular/router': 'ng.router'
|
'@angular/router': 'ng.router'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/router/esm5/testing.js',
|
entry: '../../../dist/packages-dist/router/esm5/testing.js',
|
||||||
dest: '../../../dist/packages-dist/router/bundles/router-testing.umd.js',
|
dest: '../../../dist/packages-dist/router/bundles/router-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -16,7 +16,8 @@ const globals = {
|
||||||
'@angular/upgrade/static': 'ng.upgrade.static'
|
'@angular/upgrade/static': 'ng.upgrade.static'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
|
||||||
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/router/esm5/upgrade.js',
|
entry: '../../../dist/packages-dist/router/esm5/upgrade.js',
|
||||||
dest: '../../../dist/packages-dist/router/bundles/router-upgrade.umd.js',
|
dest: '../../../dist/packages-dist/router/bundles/router-upgrade.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/all/@angular/service-worker/cli-custom/main.js',
|
entry: '../../dist/all/@angular/service-worker/cli-custom/main.js',
|
||||||
dest: '../../dist/packages-dist/service-worker/ngsw-config-tmp.js',
|
dest: '../../dist/packages-dist/service-worker/ngsw-config-tmp.js',
|
||||||
format: 'iife',
|
format: 'iife',
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {};
|
const globals = {};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/service-worker/esm5/config.js',
|
entry: '../../../dist/packages-dist/service-worker/esm5/config.js',
|
||||||
dest: '../../../dist/packages-dist/service-worker/bundles/service-worker-config.umd.js',
|
dest: '../../../dist/packages-dist/service-worker/bundles/service-worker-config.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -34,7 +34,7 @@ const globals = {
|
||||||
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
|
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/service-worker/esm5/service-worker.js',
|
entry: '../../dist/packages-dist/service-worker/esm5/service-worker.js',
|
||||||
dest: '../../dist/packages-dist/service-worker/bundles/service-worker.umd.js',
|
dest: '../../dist/packages-dist/service-worker/bundles/service-worker.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
|
@ -22,7 +22,7 @@ const globals = {
|
||||||
'rxjs/Observable': 'Rx',
|
'rxjs/Observable': 'Rx',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../dist/packages-dist/upgrade/esm5/upgrade.js',
|
entry: '../../dist/packages-dist/upgrade/esm5/upgrade.js',
|
||||||
dest: '../../dist/packages-dist/upgrade/bundles/upgrade.umd.js',
|
dest: '../../dist/packages-dist/upgrade/bundles/upgrade.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -6,14 +6,14 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import resolve from 'rollup-plugin-node-resolve';
|
const resolve = require('rollup-plugin-node-resolve');
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||||
|
|
||||||
const globals = {
|
const globals = {
|
||||||
'@angular/core': 'ng.core'
|
'@angular/core': 'ng.core'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
entry: '../../../dist/packages-dist/upgrade/esm5/static.js',
|
entry: '../../../dist/packages-dist/upgrade/esm5/static.js',
|
||||||
dest: '../../../dist/packages-dist/upgrade/bundles/upgrade-static.umd.js',
|
dest: '../../../dist/packages-dist/upgrade/bundles/upgrade-static.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
Loading…
Reference in New Issue