web/admin: fix codemirror not working on safari (#5943)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
8b4d149328
commit
cb0e776cc8
|
@ -34,6 +34,7 @@
|
||||||
"lit": "^2.7.5",
|
"lit": "^2.7.5",
|
||||||
"mermaid": "^10.2.3",
|
"mermaid": "^10.2.3",
|
||||||
"rapidoc": "^9.3.4",
|
"rapidoc": "^9.3.4",
|
||||||
|
"style-mod": "^4.0.3",
|
||||||
"webcomponent-qr-code": "^1.1.1",
|
"webcomponent-qr-code": "^1.1.1",
|
||||||
"yaml": "^2.3.1"
|
"yaml": "^2.3.1"
|
||||||
},
|
},
|
||||||
|
@ -20825,8 +20826,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/style-mod": {
|
"node_modules/style-mod": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.3",
|
||||||
"license": "MIT"
|
"resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.0.3.tgz",
|
||||||
|
"integrity": "sha512-78Jv8kYJdjbvRwwijtCevYADfsI0lGzYJe4mMFdceO8l75DFFDoqBhR1jVDicDRRaX4//g1u9wKeo+ztc2h1Rw=="
|
||||||
},
|
},
|
||||||
"node_modules/stylis": {
|
"node_modules/stylis": {
|
||||||
"version": "4.2.0",
|
"version": "4.2.0",
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"lit": "^2.7.5",
|
"lit": "^2.7.5",
|
||||||
"mermaid": "^10.2.3",
|
"mermaid": "^10.2.3",
|
||||||
"rapidoc": "^9.3.4",
|
"rapidoc": "^9.3.4",
|
||||||
|
"style-mod": "^4.0.3",
|
||||||
"webcomponent-qr-code": "^1.1.1",
|
"webcomponent-qr-code": "^1.1.1",
|
||||||
"yaml": "^2.3.1"
|
"yaml": "^2.3.1"
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,7 @@ import cssimport from "rollup-plugin-cssimport";
|
||||||
import { terser } from "rollup-plugin-terser";
|
import { terser } from "rollup-plugin-terser";
|
||||||
|
|
||||||
// https://github.com/d3/d3-interpolate/issues/58
|
// https://github.com/d3/d3-interpolate/issues/58
|
||||||
const D3_WARNING = /Circular dependency.*d3-[interpolate|selection]/;
|
const IGNORED_WARNINGS = /Circular dependency(.*d3-[interpolate|selection])|(.*@lit\/localize.*)/;
|
||||||
|
|
||||||
const extensions = [".js", ".jsx", ".ts", ".tsx"];
|
const extensions = [".js", ".jsx", ".ts", ".tsx"];
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ export const defaultOptions = {
|
||||||
cache: true,
|
cache: true,
|
||||||
context: "window",
|
context: "window",
|
||||||
onwarn: function (warning, warn) {
|
onwarn: function (warning, warn) {
|
||||||
if (D3_WARNING.test(warning)) {
|
if (IGNORED_WARNINGS.test(warning)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (warning.code === "UNRESOLVED_IMPORT") {
|
if (warning.code === "UNRESOLVED_IMPORT") {
|
||||||
|
|
Reference in New Issue