typescript Rollup.js rxjs全局变量

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了typescript Rollup.js rxjs全局变量相关的知识,希望对你有一定的参考价值。

export const rollupGlobals = {
  'tslib': 'tslib',
  'moment': 'moment',

  // lodash
  'lodash': 'lodash',
  'lodash-es': 'lodash-es',
  'lodash-es/at': 'lodash-es/at',
  'lodash-es/cloneDeep': 'lodash-es/cloneDeep',
  'lodash-es/concat': 'lodash-es/concat',
  'lodash-es/difference': 'lodash-es/difference',
  'lodash-es/includes': 'lodash-es/includes',
  'lodash-es/filter': 'lodash-es/filter',
  'lodash-es/find': 'lodash-es/find',
  'lodash-es/forEach': 'lodash-es/forEach',
  'lodash-es/forIn': 'lodash-es/forIn',
  'lodash-es/get': 'lodash-es/get',
  'lodash-es/hasIn': 'lodash-es/hasIn',
  'lodash-es/isArray': 'lodash-es/isArray',
  'lodash-es/isBoolean': 'lodash-es/isBoolean',
  'lodash-es/isDate': 'lodash-es/isDate',
  'lodash-es/isEqual': 'lodash-es/isEqual',
  'lodash-es/isEmpty': 'lodash-es/isEmpty',
  'lodash-es/isFunction': 'lodash-es/isFunction',
  'lodash-es/isNumber': 'lodash-es/isNumber',
  'lodash-es/isNull': 'lodash-es/isNull',
  'lodash-es/isObject': 'lodash-es/isObject',
  'lodash-es/isPlainObject': 'lodash-es/isPlainObject',
  'lodash-es/isString': 'lodash-es/isString',
  'lodash-es/isUndefined': 'lodash-es/isUndefined',
  'lodash-es/map': 'lodash-es/map',
  'lodash-es/mergeWith': 'lodash-es/mergeWith',
  'lodash-es/reduce': 'lodash-es/reduce',
  'lodash-es/remove': 'lodash-es/remove',
  'lodash-es/reverse': 'lodash-es/reverse',
  'lodash-es/set': 'lodash-es/set',
  'lodash-es/sortBy': 'lodash-es/sortBy',
  'lodash-es/trim': 'lodash-es/trim',
  'lodash-es/uniq': 'lodash-es/uniq',
  'lodash-es/uniqBy': 'lodash-es/uniqBy',
  'lodash-es/unset': 'lodash-es/unset',

  // angular
  '@angular/animations': 'ng.animations',
  '@angular/core': 'ng.core',
  '@angular/common': 'ng.common',
  '@angular/forms': 'ng.forms',
  '@angular/common/http': 'ng.common.http',
  '@angular/router': 'ng.router',
  '@angular/platform-browser': 'ng.platformBrowser',
  '@angular/platform-server': 'ng.platformServer',
  '@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic',
  '@angular/platform-browser/animations': 'ng.platformBrowser.animations',
  '@angular/core/testing': 'ng.core.testing',
  '@angular/common/testing': 'ng.common.testing',
  '@angular/common/http/testing': 'ng.common.http.testing',

  '@angular/cdk': 'ng.cdk',
  '@angular/material': 'ng.material',
  '@angular/flex-layout': 'ng.flexLayout',

  // Angular CDK
  '@angular/cdk/a11y': 'ng.cdk.a11y',
  '@angular/cdk/bidi': 'ng.cdk.bidi',
  '@angular/cdk/coercion': 'ng.cdk.coercion',
  '@angular/cdk/collections': 'ng.cdk.collections',
  '@angular/cdk/keycodes': 'ng.cdk.keycodes',
  '@angular/cdk/platform': 'ng.cdk.platform',
  '@angular/cdk/portal': 'ng.cdk.portal',
  '@angular/cdk/scrolling': 'ng.cdk.scrolling',
  '@angular/cdk/table': 'ng.cdk.table',
  '@angular/cdk/testing': 'ng.cdk.testing',
  '@angular/cdk/overlay': 'ng.cdk.overlay',

  // Angular Material
  '@angular/material/core': 'ng.material.core',
  '@angular/material/core/common-behaviors/common-module':
    'ng.material.core.commonBehaviors/commonModule',
  '@angular/material/form-field': 'ng.material.formField',

  'rxjs-marbles': 'RxMarbles',

  'rxjs/Rx': 'Rx',
  'rxjs/BehaviorSubject': 'Rx',
  'rxjs/interfaces': 'Rx',
  'rxjs/testing/TestScheduler': 'Rx',
  'rxjs/Observable': 'Rx',
  'rxjs/Observer': 'Rx',
  'rxjs/ReplaySubject': 'Rx',
  'rxjs/Scheduler': 'Rx',
  'rxjs/Subject': 'Rx',
  'rxjs/Subscriber': 'Rx',
  'rxjs/Subscription': 'Rx',

  'rxjs/observable/combineLatest': 'Rx.Observable',
  'rxjs/observable/defer': 'Rx.Observable',
  'rxjs/observable/empty': 'Rx.Observable',
  'rxjs/observable/forkJoin': 'Rx.Observable',
  'rxjs/observable/fromEventPattern': 'Rx.Observable',
  'rxjs/observable/from': 'Rx.Observable',
  'rxjs/observable/fromEvent': 'Rx.Observable',
  'rxjs/observable/fromPromise': 'Rx.Observable',
  'rxjs/observable/interval': 'Rx.Observable',
  'rxjs/observable/merge': 'Rx.Observable',
  'rxjs/observable/of': 'Rx.Observable',
  'rxjs/observable/throw': 'Rx.Observable',
  'rxjs/observable/timer': 'Rx.Observable',

  'rxjs/operators': 'Rx.Observable',
  'rxjs/operators/auditTime': 'Rx.Observable',
  'rxjs/operators/catchError': 'Rx.Observable',
  'rxjs/operators/concat': 'Rx.Observable',
  'rxjs/operators/combineLatest': 'Rx.Observable',
  'rxjs/operators/debounceTime': 'Rx.Observable',
  'rxjs/operators/distinctUntilChanged': 'Rx.Observable',
  'rxjs/operators/delay': 'Rx.Observable',
  'rxjs/operators/filter': 'Rx.Observable',
  'rxjs/operators/finalize': 'Rx.Observable',
  'rxjs/operators/first': 'Rx.Observable',
  'rxjs/operators/map': 'Rx.Observable',
  'rxjs/operators/mergeMap': 'Rx.Observable',
  'rxjs/operators/retryWhen': 'Rx.Observable',
  'rxjs/operators/scan': 'Rx.Observable',
  'rxjs/operators/share': 'Rx.Observable',
  'rxjs/operators/startWith': 'Rx.Observable',
  'rxjs/operators/switchMap': 'Rx.Observable',
  'rxjs/operators/take': 'Rx.Observable',
  'rxjs/operators/takeUntil': 'Rx.Observable',
  'rxjs/operators/tap': 'Rx.Observable',
  'rxjs/operators/timeoutWith': 'Rx.Observable',

  'rxjs/add/observable/merge': 'Rx.Observable',
  'rxjs/add/observable/fromEvent': 'Rx.Observable',
  'rxjs/add/observable/of': 'Rx.Observable',
  'rxjs/add/observable/interval': 'Rx.Observable',
  'rxjs/add/operator/startWith': 'Rx.Observable.prototype',
  'rxjs/add/operator/map': 'Rx.Observable.prototype',
  'rxjs/add/operator/debounceTime': 'Rx.Observable.prototype',
  'rxjs/add/operator/delay': 'Rx.Observable.prototype',
  'rxjs/add/operator/distinctUntilChanged': 'Rx.Observable.prototype',
  'rxjs/add/operator/first': 'Rx.Observable.prototype',
  'rxjs/add/operator/catch': 'Rx.Observable.prototype',
  'rxjs/add/operator/switchMap': 'Rx.Observable.prototype',
};

以上是关于typescript Rollup.js rxjs全局变量的主要内容,如果未能解决你的问题,请参考以下文章

Angular,转换 JSON,Rxjs 运算符,Typescript

text Angular / Typescript / RxJs - 最佳实践

typescript rxjs订阅

typescript mergeMap Rxjs嵌套请求

typescript Rxjs并发请求

typescript 调试RXJS流