xmpp.chapril.org-conversejs/src/strophe-shims.js
JC Brand 1f7fe4f48e Upgrade to Strophe 1.5.0 and upgrade various other dependencies
Had to add `src/strophe-shims.js` as a webpack alias to the shims.js
file in Strophe because the usage of `require` to load Node.js packags
in shims.js is causing problems with Webpack 5.

Set postcss-clean to 1.2.0 to fix the build error `node.getIterator() is
not a function`

Upgrade to latest Webpack
2022-04-28 23:53:31 +02:00

7 lines
218 B
JavaScript

export const WebSocket = window.WebSocket;
export const DOMParser = window.DOMParser;
export function getDummyXMLDOMDocument () {
return document.implementation.createDocument('jabber:client', 'strophe', null);
}