bluebird.js vs bluebird.core.js 有什么区别?

bluebird.js vs bluebird.core.js what is the difference?

bluebird.js 和 bluebird.core.js 有什么区别?

什么时候应该使用 bluebird.core.js 而不是 bluebird.js?

我在 bluebird site 或其他地方找不到任何东西。

Bluebird 的部分构建不包含库的功能,return 导致文件较小。它无论如何都比小图像小 - 但仍然值得为生产站点节省这几个字节。

因此 bluebird.core.js 仅包含库中非常少的部分。 bluebird.js 包括完整的库。

目前,构建有点古怪(虽然库本身非常稳定),我们并没有真正自动生成 .core.js 文件。我们需要解决这个问题。

我会将其编辑到文档中,使其更清晰。谢谢提问。

我真的来晚了,但只是想把我的两分钱投入到讨论中:

如您在 bluebird.core.js

的源代码中所见

Features disabled:

race, call_get, generators, map, nodeify,

promisify, props, reduce, settle, some,

using, timers, filter, any, each

我完全使用 mapmapSerieseachreduce,所以我想核心构建不适合我。