angular-docs-cn/packages/common/http/rollup.config.js

27 lines
714 B
JavaScript
Raw Normal View History

/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
const globals = {
'@angular/core': 'ng.core',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/common': 'ng.common',
'rxjs': 'rxjs',
'rxjs/operators': 'rxjs.operators',
};
module.exports = {
entry: '../../../dist/packages-dist/common/fesm5/http.js',
dest: '../../../dist/packages-dist/common/bundles/common-http.umd.js',
format: 'umd',
exports: 'named',
amd: {id: '@angular/common/http'},
moduleName: 'ng.common.http',
external: Object.keys(globals),
globals: globals
};