Angular2 2.0.x and Rx 5 beta.12 bundle

前端 未结 2 1042
不知归路
不知归路 2020-12-22 00:19

I am currently updating the dependencies of my project which uses the Angular2 npm packages and therefore RxJs as well. I am updating to the 2.0.2 stable release of angular

2条回答
  •  半阙折子戏
    2020-12-22 01:00

    I did maybe exactly what you're looking for with Angular2 and rxjs@5.0.0-beta.12 which is now distributed as globals and the umd package is probably not supported any more (just as you said):

    See live demo: https://plnkr.co/edit/z4gg2XBoQDgYXev0Csuq

    Basically, I just updated my SystemJS config:

    paths: {
      'rxjs*': 'https://unpkg.com/@reactivex/rxjs@5.0.0-beta.12/dist/global/Rx.js'
    },
    

    Then I removed rxjs from map list. Now it loads a single Rx.js file.

提交回复
热议问题