I had need to bundle the nodejs library with Webpack for usage in the
browser. When I ran "npm i thrift" against my project, it actually added
the js (i.e. non-node) library. As far as I can tell, there isn't another
Thrift package on npm. I ended up cloning the git repository and adding a
resolve alias to my webpack.config.js. It would make more sense to me for
the npm package to be the nodejs library. The js library is much more
limited in functionality than the nodejs version. It would also be the
version you would expect if you were writing a node application. The js
version could be used with bower or downloaded and included directly in a
page via a script tag. Am I missing something or am I doing something wrong?

Thanks,
James

Reply via email to