38c9a9e10c
Builds are now themselves UMD modules, so they could be `require`'d like any other AMD module or they can still be used as old ES5 modules with globals. Additionally the build is now closured, so that the almond API doesn't pollute the global context with `define` or `require`. This does however mean that `require` can no longer be used outside of the build (unless requirej.s is included directly.
23 lines
620 B
JavaScript
23 lines
620 B
JavaScript
/** Converse.js
|
|
*
|
|
* An XMPP chat client that runs in the browser.
|
|
*
|
|
* Version: 3.0.0
|
|
*/
|
|
|
|
/* jshint ignore:start */
|
|
(function (root, factory) {
|
|
if (typeof define === 'function' && define.amd) {
|
|
//Allow using this built library as an AMD module
|
|
//in another project. That other project will only
|
|
//see this AMD call, not the internal modules in
|
|
//the closure below.
|
|
define([], factory);
|
|
} else {
|
|
//Browser globals case.
|
|
root.converse = factory();
|
|
}
|
|
}(this, function () {
|
|
//almond, and your modules will be inlined here
|
|
/* jshint ignore:end */
|