Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

bluebird

What is the difference between bluebird.js and bluebird.core.js?

When should I use bluebird.core.js instead of bluebird.js?

I haven't been able to find anything in the bluebird site or elsewhere.

like image 763
Jeremy Danyow Avatar asked Jan 01 '16 19:01

Jeremy Danyow


1 Answers

Bluebird has partial builds that don't include features of the library and in return result in a lower file size. It's smaller than a small image anyway - but it's still worth saving those few bytes for production sites.

So bluebird.core.js includes only the very minimal parts of the library. bluebird.js includes the full library.

At the moment, the build is kind of quirky (the library itself is super stable though) and we don't really generate .core.js files automatically. We need to fix that.

I'll edit that into the docs so it's clearer. Thanks for the question.

like image 50
Benjamin Gruenbaum Avatar answered Sep 26 '22 17:09

Benjamin Gruenbaum