diff --git a/modules/javascript/package.json b/modules/javascript/package.json
index d7e883f..47ac713 100644
--- a/modules/javascript/package.json
+++ b/modules/javascript/package.json
@@ -2,7 +2,8 @@
"name": "atmosphere.js",
"version": "3.0.3",
"description": "",
- "main": "src/main/webapp/javascript/atmosphere.js",
+ "exports": "src/main/webapp/javascript/atmosphere.js",
+ "type": "module",
"registry": "npm",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
diff --git a/modules/javascript/pom.xml b/modules/javascript/pom.xml
index 8fb8c26..c18848e 100644
--- a/modules/javascript/pom.xml
+++ b/modules/javascript/pom.xml
@@ -15,19 +15,4 @@
-
-
- net.alchim31.maven
- yuicompressor-maven-plugin
- 1.1
-
-
-
- compress
-
-
-
-
-
-
diff --git a/modules/javascript/src/main/webapp/javascript/atmosphere.js b/modules/javascript/src/main/webapp/javascript/atmosphere.js
index cb44f5a..188df55 100644
--- a/modules/javascript/src/main/webapp/javascript/atmosphere.js
+++ b/modules/javascript/src/main/webapp/javascript/atmosphere.js
@@ -23,30 +23,17 @@
* Highly inspired by
* - Portal by Donghwan Kim http://flowersinthesand.github.io/portal/
*/
-(function (root, factory) {
- if (typeof define === "function" && define.amd) {
- // AMD
- define(factory);
- } else if (typeof exports !== 'undefined') {
- // CommonJS
- module.exports = factory();
- } else {
- // Browser globals, Window
- root.atmosphere = factory();
- }
-}(this, function () {
"use strict";
- var atmosphere = {},
- guid,
+ var guid,
offline = false,
requests = [],
callbacks = [],
uuid = 0,
hasOwn = Object.prototype.hasOwnProperty;
- atmosphere = {
+ export const atmosphere = {
version: "3.1.4-javascript",
onError: function (response) {
},
@@ -3486,6 +3473,5 @@
atmosphere.bindEvents();
- return atmosphere;
-}));
+
/* jshint eqnull:true, noarg:true, noempty:true, eqeqeq:true, evil:true, laxbreak:true, undef:true, browser:true, indent:false, maxerr:50 */