I tried the simple require statement adding twitter to systemjs like this
'twitter': 'npm:twitter/lib/twitter.js',
Then in typescript
const Twitter = require('twitter');
The twitter library itself loads but I instantly face problems with sub require statements, I'm not sure I am getting this right, isn't the require statement supposed to find the file on its own? do I need to add all sub libraries explicitly to my systemjs configuration? Any pointers would be appreciated.
I tried the simple require statement adding twitter to systemjs like this
'twitter': 'npm:twitter/lib/twitter.js',
Then in typescript
const Twitter = require('twitter');
The twitter library itself loads but I instantly face problems with sub require statements, I'm not sure I am getting this right, isn't the require statement supposed to find the file on its own? do I need to add all sub libraries explicitly to my systemjs configuration? Any pointers would be appreciated.