[英]How to load a single AMD module in node?
I need to load a single AMD module using node.js. 我需要使用node.js加载单个AMD模块。
Basically I need to check only the presence for a property in that AMD module. 基本上,我只需要检查该AMD模块中某个属性的存在。
I would like to know if node offers this possibility directly. 我想知道节点是否直接提供了这种可能性。 If no I would like to know a npm package which could help on the tasks, which does not change the node loader (I need a very simple solution for now).
如果没有,我想知道一个可以帮助完成任务的npm软件包,它不会更改节点加载器(我现在需要一个非常简单的解决方案)。
Thanks 谢谢
It's hard to answer such a broad question in any details. 很难在任何细节上回答如此广泛的问题。
See the resources in those answers: 请参阅这些答案中的资源:
and you should find all the info you need. 您应该找到所需的所有信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.