Is there a way to include an external library in Hyperledger Composer? I would like to use this library for currency computations. I saw in this post (which I think is old and there might be advancements on this since the response is 9 months old
) that at the time it was not possible to include external libraries in Hyperledger
Asked
Active
Viewed 225 times
4
![](../../users/profiles/104014.webp)
Artem Barger
- 38,615
- 9
- 54
- 80
![](../../users/profiles/4200414.webp)
Mohale
- 720
- 1
- 6
- 13
1 Answers
0
If you are referring to business network Transaction Processor functions (which I think you are) then you cannot use require to include an external library. Other people have used things like Webpack to build a monolithic package of javascript to get around this limitation but I don't know the details on that or how practical it is from both an operational and supportable point of view.
![](../../users/profiles/7581078.webp)
david_k
- 4,867
- 2
- 7
- 15