【发布时间】:2021-06-14 22:07:48
【问题描述】:
我只需要整个库中的 2 个函数:throttle 和 debounce。
如果我用一个函数构建它一切正常,例如这个工作
lodash include=throttle
但如果我尝试使用逗号分隔的多个函数,则会出现错误。所以这个:
lodash include=throttle,debounce
给我这个:
使用 windows 10 和 VScode(流畅的终端或 powershell,结果是一样的)。
Here 是文档:
有什么办法吗?
【问题讨论】:
-
只是为了解决这个问题,试试
lodash include=debounce plus=throttle -
感谢@GabrielePetrioli,它确实有效;)
标签: lodash custom-build