不好意思,我发现这不是 WebPack 造成的问题。一开始因为使用 TypeScript 直接编译成单个文件单独引用的时候没出现问题,打包后才出现的,所以误以为是 Webpack 的问题。但实际应该和引入文件的顺序有关。(Sorry, I think it's not a problem comes from Webpack. It's a structure problem. Previously I compile sourc...
Bluebird: Promise.try/Promise.attempt - takes one function, calls it with no args. Q: Q.try/Promise.prototype.fcall - Q.try takes one function, calls it with no args. Promise#fcall is deprecated, but takes a list of arguments, and invokes the given function with that list of arguments. when: when...