Finally I got a not-so-perfect solution, just make
rxjs an external dependency, and bundle whole lib into
import * as rxjs from 'rxjs/Rx'. This really works, but not elegant enough (even feel dirty)…. However, providing
vendor was just a temp tool for speeding up our development process, this could be acceptable… Thanks to the author…
If anyone has a more elegant solution, please do tell us, I love rollup & angular.