I am using Bootbox under Node:
My project is an Ampersand Single Page App, which uses Moonboots.
__dirname + '/node_modules/jQuery/dist/jquery.js',
__dirname + '/node_modules/bootstrap/dist/js/bootstrap.js'
If I remove the require("bootbox") call, then jQuery is only included once (as expected).
I assume this has something to do with module.exports = factory(require("jquery")); in bootbox.js, but truthfully am not sure, because I am not an advanced Node and Bootstrap developer.
module.exports = factory(require("jquery"));
Possibly related to the following issues, given their proximity in bootbox.js
// @see https://github.com/makeusabrew/bootbox/issues/180
// @see https://github.com/makeusabrew/bootbox/issues/186
@LordSyntax You can reference another issue simply by using the issue number, preceded by a pound sign, like so: #180
Should be fixed by the merge of #436 - feel free to test against master, or otherwise will make it into 4.4.1
When will v4.4.1 be released? It seems like there's a few important bugfixes waiting.