|
@@ -1,21 +1,16 @@
|
|
|
-/* * This file is used to tell require.js which components (or plugins) to load
|
|
|
- * when it generates a build of converse-headless.js (in the dist/ directory)
|
|
|
+/* START: Removable components
|
|
|
+ * --------------------
|
|
|
+ * Any of the following components may be removed if they're not needed.
|
|
|
*/
|
|
|
-if (typeof define !== 'undefined') {
|
|
|
- // The section below determines which plugins will be included in a build
|
|
|
- define([
|
|
|
- "./converse-core",
|
|
|
- /* START: Removable components
|
|
|
- * --------------------
|
|
|
- * Any of the following components may be removed if they're not needed.
|
|
|
- */
|
|
|
- "./converse-chatboxes", // Backbone Collection and Models for chat boxes
|
|
|
- "./converse-disco", // Service discovery plugin
|
|
|
- "./converse-mam", // XEP-0313 Message Archive Management
|
|
|
- "./converse-ping", // XEP-0199 XMPP Ping
|
|
|
- "./converse-vcard", // XEP-0054 VCard-temp
|
|
|
- /* END: Removable components */
|
|
|
- ], function(converse) {
|
|
|
- return converse;
|
|
|
- });
|
|
|
-}
|
|
|
+import "./converse-chatboxes"; // Backbone Collection and Models for chat boxes
|
|
|
+import "./converse-disco"; // Service discovery plugin
|
|
|
+import "./converse-mam"; // XEP-0313 Message Archive Management
|
|
|
+import "./converse-muc"; // XEP-0045 Multi-user chat
|
|
|
+import "./converse-ping"; // XEP-0199 XMPP Ping
|
|
|
+import "./converse-roster"; // Contacts Roster
|
|
|
+import "./converse-vcard"; // XEP-0054 VCard-temp
|
|
|
+/* END: Removable components */
|
|
|
+
|
|
|
+import converse from "./converse-core";
|
|
|
+
|
|
|
+export default converse;
|