I’m not completely clear on the magical algorithm Webpack uses to find things, but it is possible you will need to try holding its hand here a bit. One thing you could try is to follow the instructions in this post to get a custom webpack configuration and try adding the following to it:
alias: {
"pubnub-angular2": "pubnub-angular2/dist/pubnub-angular2.js"
}