在Hyperledger Composer中包括外部库文件 [英] Include external library file in Hyperledger Composer

查看:44
本文介绍了在Hyperledger Composer中包括外部库文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Hyperledger Composer中包括外部库?我想使用此库进行货币计算.我在此帖子(),当时无法在Hyperledger中包含外部库

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

推荐答案

如果您指的是业务网络事务处理器功能(我认为您是这样),那么您将无法使用require来包含一个外部库.其他人已经使用Webpack之类的东西来构建JavaScript的整体软件包来解决此限制,但是从操作和可支持的角度来看,我不知道其细节或它的实用性.

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.

这篇关于在Hyperledger Composer中包括外部库文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆