Switch element-web to ESM (#31977)

* Switch element-web to ESM

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update testcontainers imports

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix modernizr cjs

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix modernizr cjs ignore files

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Move modernizr sonar exclusion to exclude everything

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update playwright tests for esm compat

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2026-02-09 08:39:11 +00:00
committed by GitHub
parent de8ed98b53
commit c2f1793bb0
24 changed files with 34 additions and 22 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ import { shouldPolyfill as shouldPolyFillIntlSegmenter } from "@formatjs/intl-se
// These are things that can run before the skin loads - be careful not to reference the react-sdk though.
import { parseQsFromFragment } from "./url_utils";
import "./modernizr";
import "./modernizr.cjs";
// Import shared components CSS
import "@element-hq/web-shared-components/dist/element-web-shared-components.css";
@@ -1,5 +1,5 @@
/*!
* modernizr v3.13.0
* modernizr v3.13.1
* Build https://modernizr.com/download?-cors-cryptography-cssanimations-cssfilters-displaytable-es5date-es5function-es5object-es5undefined-es6array-es6collections-es6string-fetch-flexbox-json-localstorage-objectfit-promises-resizeobserver-sandbox-svg-svgasimg-svgfilters-urlparser-urlsearchparams-webaudio-dontmin
*
* Copyright (c)
@@ -35,7 +35,7 @@
* @access public
*/
var ModernizrProto = {
_version: '3.13.0',
_version: '3.13.1',
// Any settings that don't work as separate modules
// can go in here as configuration.