如何知道用于 fabricjs 自定义构建的内容

How to know what to use for fabricjs custom build

由于 fabric js 不支持通过 es6 模块进行 tree-shaking 以减小包大小,我尝试通过网站 (http://fabricjs.com/build/) 和命令行构建自定义构建 fabricjs,但无法确定找出我需要哪些模块,因为我不断收到错误。我用

node build.js modules=text,circle,image,rect,line,image_filters

据我所知,我没有使用任何其他东西。然后我收到一个错误,表明我也需要导入 animation 模块 - 即使我不使用我的 pov 中的动画。我这样做了,错误确实消失了,现在我得到 this.drawSelectionBackground is not a function 并且不知道它属于哪个包所以我很想弄清楚 - 或者我真的必须去试错吗?

虽然我不使用交互,但我发现它是我需要导入的交互模块... 很奇怪...