fix(dashboard): set up replaceAll polyfill correctly

This commit is contained in:
spiral 2023-02-28 15:44:07 +00:00 committed by GitHub
parent e0c4b23f5e
commit 7e606ca8b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ import * as Sentry from "@sentry/browser";
import { Integrations } from "@sentry/tracing";
// polyfill for replaceAll
import * as replaceAll from 'core-js-pure/es/string/virtual/replace-all.js';
import replaceAll from 'core-js-pure/es/string/virtual/replace-all.js';
if (!String.prototype.replaceAll)
String.prototype.replaceAll = replaceAll;