Fix modernizr cjs

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2026-02-05 11:35:05 +00:00
parent e34fc3b828
commit 4e3b685c1b
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D
3 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@
"build-stats": "yarn clean && yarn build:genfiles && yarn build:bundle-stats",
"build:res": "node scripts/copy-res.ts",
"build:genfiles": "yarn build:res && yarn build:module_system",
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js && mv src/vector/modernizr.js src/vector/modernizr.cjs",
"build:bundle": "webpack --progress --mode production",
"build:bundle-stats": "webpack --progress --mode production --json > webpack-stats.json",
"build:module_system": "node module_system/scripts/install.ts",

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";

View File

@ -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.